我正在尝试通过 azure devops 管道中的 Az cli 命令将 AzureFileshare 添加到恢复服务保管库备份策略。但我没能成功。下面是cli命令
az backup protection enable-for-azurefileshare --resource-group vaultresourcegroup --
vault-name rsvault --policy-name filesharepolicy --storage-account sasample --azure-file-
share fileshare1
下面是我遇到的错误
ERROR: Storage not found or not Supported.
我在这里错过了什么吗?
错误:未找到或不支持存储。
根据此MS-Document,当存储帐户可能已在不同地区(例如法国或德国)删除或创建时,会发生上述错误。
当我尝试使用不同的区域(例如(法国))作为存储帐户时,我也遇到了相同的错误:
当我尝试使用相同的区域(例如美国东部)作为存储帐户时,它为文件共享创建了备份策略。
命令与输出:
az backup protection enable-for-azurefileshare --policy-name policy1 --resource-group xxx --vault-name azurefilesvault --storage-account "venkat789" --azure-file-share "share3" --output table
Name ResourceGroup
------------------------------------ ---------------------
6b9c06e7-4277-xxxxxx xxxx
传送门: