azure - Blob 不可写

标签 azure azure-sql-database azure-storage

当我尝试使用 azure rm 命令 (New-AzureRmSqlDatabaseExport) 进行 azure db 备份时,我面临以下问题

Error encountered during the service operation. Blob https://XXXXXXXXXX.blob.core.windows.net/XXXXX-container/ABC.bacpacklj1234klj12l3k4jl2k34jl2k3j4lk23j4l12k34jlk23j4lk23lk4j234A8i3t1GAs4Tvx2wjQRf7nTi/fM0+v7o7SWuUTU6WpRwO2SM0w== is not writeable. The remote server returned an error: (404) Not Found. The remote server returned an error: (404) Not Found.

但是通过使用相同的容器,我可以使用 New-AzureRmWebAppBackup 命令备份 Web 应用程序。

Note: The public access level of the contianer is blob. I also tried for container.

如果有解决此问题的方法,请告诉我。

最佳答案

我没有看到您的命令的凭据,请尝试以下命令的语法:

New-AzureRmSqlDatabaseExport -ResourceGroupName "RG01" -ServerName "Server01" -DatabaseName "Database01" -StorageKeyType "StorageAccessKey" -StorageKey "StorageKey01" -StorageUri "http://account01.blob.core.contoso.net/bacpacs/database01.bacpac" -AdministratorLogin "User" -AdministratorLoginPassword "secure password"
ResourceGroupName          : RG01
ServerName                 : Server01
DatabaseName               : Database01
StorageKeyType             : StorageAccessKey
StorageKey                 : 
StorageUri                 : http://account01.blob.core.contoso.net/bacpacs/database01.bacpac
AdministratorLogin         : User
AdministratorLoginPassword : 
AuthenticationType         : None
OperationStatusLink        : https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resource01/providers/Microsoft.Sql/servers/server01/databases/database01/importExportOperationResults/00000000-00
                             0-0000-0000-000000000000?api-version=2014-04-01
Status                     : InProgress
ErrorMessage               :

这应该可以解决您的问题。可以在此处找到该命令的完整语法: https://learn.microsoft.com/en-us/powershell/module/azurerm.sql/new-azurermsqldatabaseexport?view=azurermps-5.7.0

关于azure - Blob 不可写,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49809232/

相关文章:

c# - 使用 C# 在 Azure 存储中创建容器

azure - 如何升级Azure Data Explorer Python插件沙箱Anaconda和Python版本?

sql - 在 SQL Server 上仅显示一个数据库

performance - 对非常大的 SQL 表进行简单的 UPDATE 查询

python - 无法创建 Blob 容器 : This request is not authorized to perform this operation

c# - 如何从azure表存储查询中获取超过1000个实体?

c# - 如何在 Azure 应用程序见解上忽略 localhost

azure - 在 Azure Blob 容器中创建三个文件时,如何在 Azure 数据工厂中创建事件触发器?

node.js - azuregenerateAccountSAS 与generateBlobSAS

Azure Web 服务 - 在运行时更改数据库连接字符串