When attempting to import or export BACPAC from Azure SQL Database, you might encounter the error “The ImportExport operation failed because the storage blob already exists.” with PowerShell or Azure CLI or “Failed to export the database: DB_name. ErrorCode: undefined ErrorMessage: undefined” with Azure Portal.
Don’t worry about it. This usually indicates that public access was disabled for your Azure Storage Account.
There are two solutions for you:
- Enable access from all network on Azure Storage Account side.
- Using the export with private link feature. Refer to Import or export an Azure SQL Database using private link
NOTES
Do not forget to approve the private link for both Azure SQL logical server and Azure Storage Account. Or the import/export operation will be stuck.
Import/Export Private Link should not be used when the user Database or the Azure Storage account are protected by Resource locks. Azure SQL Database needs to drop the private endpoint when it finishes the import/export operation. If there are resource locks, it will get stuck.
文档信息
- 本文作者:Robin Chen
- 本文链接:https://crushonme.github.io/2025/04/30/ImportExport-operation-failed-because-the-storage-blob-already-exists/
- 版权声明:自由转载-非商用-非衍生-保持署名(创意共享4.0许可证)
Document Information
- Author :Robin Chen
- Link : https://crushonme.github.io/2025/04/30/ImportExport-operation-failed-because-the-storage-blob-already-exists/
- Copyright:Attribution-NonCommercial-NoDerivatives-No additional restrictions(CC BY-NC-ND 4.0)
Related Issues not found
Please contact @crushonme to initialize the comment