我正在尝试编写 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.
我的运行手册如下
我的 Assets 如下
我试图遵循SO答案here无济于事。我已经查过了
- 我有一个以该名称订阅的内容
- [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/