"az mysql flexible-server import create" - InvalidImportSourceDetails from Azure blob

Jeremy Buisson 0 Reputation points
2025-04-08T14:10:27.44+00:00

I need to migrate multiple onprem mysql databases to Azure Database for MySQL flexible server. The dumps (corresponding to .sql script files) are then stored in an Azure Storage account.

The storage account allows public access without any restriction. Regarding authentication, the command is run with my personal account, granted as "Storage Blob Data Contributor".

I got 'Import source storage is not accessible.' error during provisioning using following az cli command:

az mysql flexible-server import create -g rsg-test -n mysql02 --version 8.0.21 --sku-name Standard_D4ds_v4 --tier GeneralPurpose --location francecentral --public-access 0.0.0.0 --storage-size 200 --storage-auto-grow Enabled --data-source-type azure_blob --data-source https://storagemysql.blob.core.windows.net/dumps --admin-user "username" --admin-password "password"


Detailed error:

(InvalidImportSourceDetails) Import source details provided are not valid for import from storage. Error details: 'Import source storage is not accessible.'. Code: InvalidImportSourceDetails Message: Import source details provided are not valid for import from storage. Error details: 'Import source storage is not accessible.'.

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
3,141 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.