I also faced this same issue while integrating Azure Blob storage with the Media Library.
The problem is the configuration which is added in the ./config/plugins.js file
// ./config/plugins.js
module.exports = ({ env }) => ({
upload: {
config: {
provider: "strapi-provider-upload-azure-storage",
providerOptions: {
account: env("STORAGE_ACCOUNT"),
accountKey: env("STORAGE_ACCOUNT_KEY"),
containerName: env("STORAGE_CONTAINER_NAME"),
defaultPath: "assets",
},
},
},
});
Strapi will always use the most specific one and has default configurations, so if you do not specify a production environment directory Strapi Cloud will override your configuration when creating it.
The production configuration should be added to the config/env/production/plugins.js file.
// ./config/env/production/plugins.js
module.exports = ({ env }) => ({
upload: {
config: {
provider: "strapi-provider-upload-azure-storage",
providerOptions: {
account: env("STORAGE_ACCOUNT"),
accountKey: env("STORAGE_ACCOUNT_KEY"),
containerName: env("STORAGE_CONTAINER_NAME"),
defaultPath: "assets",
},
},
},
});
Even if you make the changes and deploy. It took some time to reflect in the Strapi Cloud(don’t know the reason)