powershell - Azure 运行手册 : The subscription named 'xxx' cannot be found

标签 powershell azure azure-automation

我正在尝试编写 Azure Runbook 来启动 Azure 网站,但不断收到以下两个错误

Select-AzureSubscription : The subscription named 'vslaazuresubscription' cannot be found. Use Set-AzureSubscription to initialize the subscription data.

Start-AzureWebsite : No current subscription has been designated. Use Select-AzureSubscription -Current to set the current subscription.

我的运行手册如下

enter image description here

我的 Assets 如下

enter image description here

我试图遵循SO答案here无济于事。我已经查过了

  1. 我有一个以该名称订阅的内容
  2. [email protected]存在于为订阅配置的 Active Directory 中。

请帮忙。提前致谢。

最佳答案

您确定“vslaazuresubscription”是您的 Azure 订阅的名称吗?[email protected]是否配置为 vslaazuresubscription 订阅的管理员?

如果在 Add-AzureAccount 之后运行 Get-AzureSubscription,它是否将 vslaazuresubscription 输出为可用订阅之一?

关于powershell - Azure 运行手册 : The subscription named 'xxx' cannot be found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27587515/

相关文章:

xml - Powershell XML : Attributes present, 与否,更改获取值的方式

azure - Marathon 提供错误缩放应用程序,称 "please specify data in JSON format"

powershell - 从 Azure 自动化通过 Powershell 远程访问 azure vm

azure - 使用 Azure 自动化使用 Powershell 创建云服务实例

powershell - 在 Runbook 中包含 runbook.ps1 脚本

powershell - IIS 7.5 powershell 模块使用问题

powershell - 使用参数从 powershell 中调用 powershell 脚本时遇到问题

powershell - 如何使用 PowerShell 别名 cd 一个规范目录?

azure - Azure 上以文档为中心的事件调度

Azure DevOps 管道卡住