【问题标题】:Exception exporting Azure ResourceGroup template导出 Azure ResourceGroup 模板时出现异常
【发布时间】:2016-08-09 08:07:28
【问题描述】:

我正在尝试使用以下 cmdlet(Windows 10 x64,模块版本 2.0)将 Azure ResourceGroup 导出到模板文件,但它会引发异常 PS> Export-AzureRmResourceGroup -ResourceGroupName 'service-env-rg' -Path .\resourcegroup.json -ErrorAction SilentlyContinue Export-AzureRmResourceGroup:InternalServerError:遇到内部服务器错误。诊断信息:时间戳'20160809T072241Z',订阅id'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',跟踪id'eed95646-d845-4852-8971-a353bab65db2',请求关联id'eed95646-d845-4852-8971-a353bab65db2' .在 line:1 char:1 + Export-AzureRmResourceGroup -ResourceGroupName 'service -e ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : CloseError: (:) [Export-AzureRmResourceGroup], ErrorResponseMessageException + FullyQualifiedErrorId : InternalServerError, Microsoft。 Azure.Commands.ResourceManager.Cmdlets.Implementation.ExportAzureResourceGroupCmdlet

如果我在没有 -ErrorAction 的情况下运行它,我也会得到一个辅助异常,并且管道被停止。还有人看到这个吗?我在使用以前版本的 cmdlet 时遇到了同样的错误。

【问题讨论】:

    标签: powershell azure azure-powershell azure-resource-group


    【解决方案1】:

    我想知道这是否与 Azure 门户中的“模板导出”功能似乎也无法正常工作有关......请参阅这个最近的论坛帖子:

    https://social.msdn.microsoft.com/Forums/en-US/3200b7a1-768c-4714-a474-ac02df22e729/problem-with-exporting-current-state-arm-template-for-a-resource-group?forum=windowsazuremanagement

    【讨论】:

    • 我有一个具有相同电子邮件地址的工作帐户和一个 Microsoft 帐户,以前在使用门户网站时,当我选择要使用的帐户时,它运行良好。但似乎由于门户中从“导出模板”到“自动化脚本”的更新,这也不起作用。
    【解决方案2】:

    重命名我的 Microsoft 帐户后,它现在可以在 Powershell 和门户中使用。即,似乎 ARM 更新引入了身份验证更改,因此即使我选择了类型,登录也无法正确区分帐户。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-07-04
      • 1970-01-01
      • 2012-12-29
      • 2023-03-19
      • 2019-05-30
      • 1970-01-01
      • 1970-01-01
      • 2023-03-23
      相关资源
      最近更新 更多