【问题标题】:Azure Export ARM Template: Microsoft.KeyVault/vaults/accessPolicies cannot be exported yet and is not included in the templateAzure 导出 ARM 模板:Microsoft.KeyVault/vaults/accessPolicies 尚无法导出且未包含在模板中
【发布时间】:2020-07-16 15:06:12
【问题描述】:

我们正在将 Azure Key 保管库导出到 ARM 模板。但是我们收到一条警告:

Microsoft.KeyVault/vaults/accessPolicies 还不能导出,并且是 不包含在模板中。查看错误详情。

原始错误:

{
  "code": "ExportTemplateCompletedWithErrors",
  "message": "Export template operation completed with errors. Some resources were not exported. Please see details for more information.",
  "details": [
    {
      "code": "ExportTemplateProviderError",
      "target": "Microsoft.KeyVault/vaults/accessPolicies",
      "message": "Could not get resources of the type 'Microsoft.KeyVault/vaults/accessPolicies'. Resources of this type will not be exported."
    }
  ]
}

奇怪的是,模板中有一个完整的accessPolicies 部分与Access policies 选项卡下的当前设置相匹配。究竟是什么没有导出?

【问题讨论】:

  • 对此问题还有其他顾虑吗?
  • @JoyWang 是的 - 如果导出访问策略,为什么会出现警告?
  • 不确定,您可能需要向 MSFT 发送支持票证。我只能告诉你,模板不影响使用。
  • @JoyWang 模板是什么意思,不影响使用。导出模板的原因是为了使用它们来创建资源。模板是正在使用的所有内容。

标签: azure azure-keyvault


【解决方案1】:

好吧,我也可以重现您的问题,但不确定是什么原因造成的。

根据我的测试,如果你点击Download按钮导出模板,你会发现模板是完全正确的,包括accessPolicies

另外,我测试使用这个导出的模板来部署一个新的密钥库,一切正常,包括accessPolicies

因此,如果您想导出模板并使用它,请不要关心这个问题,随意这样做。

【讨论】:

    【解决方案2】:

    最终创建了一个新的 Key Vault,然后使用了 Download a template for automation。没有警告,一切都按预期工作。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-11-15
      • 2021-07-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多