由于存储帐户防火墙,Azure Runbook失败

时间:2018-04-11 15:10:30

标签: azure azure-runbook

我每天早上都有一个Azure Runbook。

Runbook执行'Get-AzureStorageBlob'但是由于我们在存储帐户上启用了防火墙,它现在失败并出现错误:

  

Get-AzureStorageBlob:远程服务器返回错误:(403)   故宫。 HTTP状态码:403 - HTTP错误消息:此请求   无权执行此操作。在行:8 char:17   + ... ldBackups = Get-AzureStorageBlob -Context $ BackupCtx -Container $ Back ...   + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~       + CategoryInfo:CloseError:(:) [Get-AzureStorageBlob],StorageException       + FullyQualifiedErrorId:StorageException,Microsoft.WindowsAzure.Commands.Storage.Blob.Cmdlet.GetAzureStorageBlobCommand

我已在存储帐户防火墙上启用了“允许受信任的Microsoft服务访问此存储帐户”,但它仍然失败。

有谁知道如何让它成功运行?

1 个答案:

答案 0 :(得分:0)

目前,解决方法是部署Hybrid Runbook Worker,然后将该公共IP地址添加到存储帐户的防火墙,这样,Azure存储就不会阻止您的Runbook。

关于受信任的Microsoft服务:

enter image description here

受信任的Microsoft服务不包含Runbook。

希望这有帮助。