Medusa Azure Storage File Plugin
Medusa Website|Plugin Repository
Store uploaded files to your Medusa backend on Azure Blob Storage
How to Install
1. Run the following command in the directory of the Medusa backend:
1npm install medusa-file-azure-blob
2. Set the following environment variables in Copy to clipboard
.env
:123ACCOUNT_NAME=<YOUR_ACCOUNT_NAME>ACCOUNT_KEY=<YOUR_ACCOUNT_KEY>CONTAINER=<YOUR_CONTAINER_NAME>
3. In Copy to clipboard
medusa-config.js
add the following at the end of the Copy to clipboardplugins
array:1234567891011const plugins = [// ...{resolve: `medusa-file-azure-blob',options: {account_name: process.env.ACCOUNT_NAME,account_key: process.env.ACCOUNT_KEY,container: process.env.CONTAINER},},]
Account Name & Key
You can get your storage account Name & Key from Access keys menu section on Azure Portal
Test the Plugin
1. Run the following command in the directory of the Medusa backend to start the backend:
1npm run start
2. Upload an image for a product using the admin dashboard or using the Admin APIs.
License
The Plugin is licensed under the MIT License.