Azure 导出 ARM 模板:Microsoft.KeyVault/vaults/accessPolicies 尚无法导出且未包含在模板中
Azure Export ARM Template: Microsoft.KeyVault/vaults/accessPolicies cannot be exported yet and is not included in the template
我们正在将 Azure Key vault 导出到 ARM 模板。但是我们收到一条警告:
Microsoft.KeyVault/vaults/accessPolicies cannot be exported yet and is
not included in the template. See error details.
原始错误:
{
"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
下的当前设置匹配。到底什么东西没有导出?
嗯,我也可以重现你的问题,不知道是什么原因造成的。
根据我的测试,如果您点击 Download
按钮导出模板,您会发现模板是完全正确的,包括 accessPolicies
.
此外,我测试使用这个导出的模板来部署一个新的 keyvault,一切正常,包括 accessPolicies
。
所以如果您想导出模板并使用它,请不要关心这个问题,尽管这样做。
最终创建了一个新的 Key Vault,然后使用了 Download a template for automation
。没有警告,一切都按预期工作。
我们正在将 Azure Key vault 导出到 ARM 模板。但是我们收到一条警告:
Microsoft.KeyVault/vaults/accessPolicies cannot be exported yet and is not included in the template. See error details.
原始错误:
{
"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
下的当前设置匹配。到底什么东西没有导出?
嗯,我也可以重现你的问题,不知道是什么原因造成的。
根据我的测试,如果您点击 Download
按钮导出模板,您会发现模板是完全正确的,包括 accessPolicies
.
此外,我测试使用这个导出的模板来部署一个新的 keyvault,一切正常,包括 accessPolicies
。
所以如果您想导出模板并使用它,请不要关心这个问题,尽管这样做。
最终创建了一个新的 Key Vault,然后使用了 Download a template for automation
。没有警告,一切都按预期工作。