这个Azure错误究竟是什么意思?

时间:2017-09-11 15:06:40

标签: powershell azure azure-devops azure-web-sites cleardb

我有一个PowerShell脚本,可以将一个ARM模板部署到Azure,但是我遇到了一个错误,我似乎无法解决这个问题。在PowerShell中运行时,我收到以下错误:

  

New-AzureRmResourceGroupDeployment:7:46:01 AM - 错误:   代码= CannotUpdatePlan;消息=无法更改资源计划。

错误描述看起来并不复杂,但我不确定为什么会出现这种情况。我没有对资源组,资源或订阅进行任何锁定,因此理论上它应该能够正常工作,对吗?

在VSTS中测试后,我得到了上面提到的错误以及之前的错误消息:

  

所选订阅已停用'状态。

我不确定这是否与另一方有关,但我知道订阅是有效的,因为我可以手动为其部署资源。此外,它清楚地说" Active"从门户网站查看订阅时。

1 个答案:

答案 0 :(得分:1)

根据您的描述,我建议您检查以下步骤。

1.确保您的订阅已启用。对于测试,您可以创建一个Web应用程序。如果您的订阅确实已停用,请参阅此link重新启用您的订阅。

2.您最好检查一下您的订阅连接。请确保订阅是正确的。验证连接时,应显示[h1] Who Am I? My name is Billy. I am a senior CS major. [h1] What are my interests? I would like to develop my skillset in software and web development and possibly start a career in it. [h1] Why am I taking this class? I am taking this class because I'd like to enhance my web development skills. [h1] What is my five year plan? My five year plan is to graduate with my CS major and earn a great job that I enjoy.

enter image description here

注意:我使用代理Verified并使用Azure PowerShell脚本部署模板。