"az mysql flexible-server import create" - InvalidImportSourceDetails from Azure blob
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.'.