【问题标题】:Azure terraform storage account permissionAzure terraform 存储帐户权限
【发布时间】:2021-10-29 08:29:25
【问题描述】:

我想了解有关 azure open vpn 配置及其工作原理的更多信息。于是环顾四周,我在 GitHub 上找到了一个开源项目,链接如下:

https://github.com/terraform-azurerm-examples/example-hub.git(感谢您的代码)

我设置了我想要的所有变量,并从 azure provider 中删除了版本。

但是当我运行 terraform apply 时,我在 azure Storage 帐户上遇到了错误。

错误是这个:

Error: reading queue properties for AzureRM Storage Account "examplehubw6sr1wyncn": queues.Client#GetServiceProperties: Failure responding to request: StatusCode=403 -- Original Error: autorest/azure: Service returned an error. Status=403 Code="AuthorizationPermissionMismatch" Message="This request is not authorized to perform this operation using this permission.\nRequestId:cce5a313-b003-005c-2bb2-9d8a2f000000\nTime:2021-08-30T15:19:07.9036073Z"

据我了解,错误是由于设置了秘密权限,我确实更新了 GetListSet,但错误不断出现。

我使用的是 terraform 版本 0.14.5 我的 azurerm 版本是 2.74.0

我从未遇到过此类错误,在我的订阅中我具有管理员角色。

有没有人遇到这个错误并知道如何解决,非常感谢您的帮助

【问题讨论】:

    标签: terraform terraform-provider-azure


    【解决方案1】:

    该错误可能是因为您的用户对您的存储帐户没有数据平面权限 - 这是 Terraform 想要放置状态文件的位置。给你的用户Storage Blob Data Contributor 角色:https://docs.microsoft.com/en-us/azure/storage/blobs/assign-azure-role-data-access?tabs=portal

    【讨论】:

    • 感谢您的回复,我确实将角色添加到我的用户,但仍然遇到同样的错误
    猜你喜欢
    • 1970-01-01
    • 2019-12-24
    • 2020-06-14
    • 2020-05-19
    • 1970-01-01
    • 2019-07-28
    • 2018-10-24
    • 2020-04-30
    • 2011-08-14
    相关资源
    最近更新 更多