gpt4 book ai didi

AZURE - 将 VM ARM 模板保存到模板

转载 作者:行者123 更新时间:2023-12-03 03:47:15 24 4
gpt4 key购买 nike

我尝试将 VM 的 ARM 模板保存到 Azure 中的模板中,但收到以下错误:

The client '[email protected]' with object id '1550f813-ee2g-492e-b353-8885c1f85746' does not have authorization to perform action 'Microsoft.Gallery/register/action' over scope '/providers/Microsoft.Gallery' or the scope is invalid. If access was recently granted, please refresh your credentials.

最佳答案

针对上述问题有两种可能的解决方案:

  • 您可以使用模板规范功能代替模板功能。

  • 您可以要求您的Azure Active Directory 租户管理员创建第一个图库模板可启用为所有用户创建模板的功能同一个租户。

创建模板规范的步骤:

  1. 转到门户中的模板规范。

  2. 选择“创建模板规范”。

enter image description here

  • 填写表格并创建。
  • 注意:同名模板将被最新版本覆盖。

    引用:

    Convert portal template to template spec - Azure Resource Manager | Microsoft Docs

    Azure Templates - Failed to save template - Microsoft Q&A

    关于AZURE - 将 VM ARM 模板保存到模板,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68654293/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com