Category

Other

Version

1.0.2

Last updated

Sep 3, 2023, 09:30:29 AMa year ago
 

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:
npm install medusa-file-azure-blob
2. Set the following environment variables in Copy to clipboard.env:
ACCOUNT_NAME=<YOUR_ACCOUNT_NAME>
ACCOUNT_KEY=<YOUR_ACCOUNT_KEY>
CONTAINER=<YOUR_CONTAINER_NAME>
3. In Copy to clipboardmedusa-config.js add the following at the end of the Copy to clipboardplugins array:
const 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:
npm 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.

Build your own plugins

Develop your own plugins with our API to speed up your processes.

Make your plugin available via npm for it to be shared in our Plugin Library with the broader Medusa community.