【发布时间】:2021-01-26 17:41:18
【问题描述】:
我尝试通过 Azuer 门户将 azure Sql 数据库导出到 azure blob 存储,但出现错误:
Error encountered during the service operation. ;
Exception Microsoft.SqlServer.Management.Dac.Services.ServiceException:Unexpected exception encountered while retrieving metadata for blob https://<blobstoragename>.blob.core.windows.net/databases/<databaseName>_12.10.2020-11:13:24.bacpac;.; Inner exception Microsoft.WindowsAzure.Storage.StorageException:The remote server returned an error: (403) Forbidden.;
Inner exception System.Net.WebException:The remote server returned an error: (403) Forbidden.
在 blob 存储帐户的防火墙设置中,所有网络访问都被拒绝。只能连接选定的网络,我激活了“允许受信任的 Microsoft 服务访问此存储帐户”选项。 Sql Server 和存储具有到同一网络的专用终结点连接。
我在同一网络中设置了一个能够访问 blob 存储的虚拟机。
公网访问被拒绝时,是否可以将sql数据库导出到azure存储?如果是,我缺少哪个设置?
【问题讨论】:
-
你能告诉我你是怎么做到的吗?
-
在 Azure 门户中选择任何 SQL 数据库,然后在顶部的菜单中您会看到一个导出按钮
-
嗨@MartinAy,这个答案对你有帮助吗?
-
您好,很抱歉回复晚了。是的,这很有帮助。谢谢,我错过了它不受支持的事实。我们在没有静态公共 ip 的环境中使用 azure cli docs.microsoft.com/en-us/cli/azure/sql/…。我们的解决方法是将 sql 数据库导出到公共 blob 存储,然后将其复制到私有存储。
标签: azure azure-sql-database azure-blob-storage azure-sql-server