小编Big*_*ert的帖子

没有指定默认订阅.使用Select-AzureSubscription -Default <subscriptionName>设置默认订阅

尝试执行Start-AzureService时,我一直收到上述错误.

执行Get-AzureAccount时提示以下信息:

Id                    Type Subscriptions                        Tenants                               
--                    ---- -------------                        -------                               
Me@outlook.com User   12345678-1234-5678-9012-345678901235 {12345678-1234-5678-9012-345678901235} 
Run Code Online (Sandbox Code Playgroud)

执行Get-AzureSubscription时会提示以下信息:

SubscriptionId            : 12345678-1234-5678-9012-345678901235
SubscriptionName          : My Production (Pay-As-You-Go)
Environment               : MyCloud
DefaultAccount            : Me@outlook.com
IsDefault                 : True
IsCurrent                 : True
TenantId                  : 12345678-1234-5678-9012-345678901235
CurrentStorageAccountName :  


Select-AzureSubscription : Parameter set cannot be resolved using the specified named parameters.
Run Code Online (Sandbox Code Playgroud)

当我尝试按照建议的命令时提示:

Select-AzureSubscription -Default "My Production (Pay-As-You-Go)"
Run Code Online (Sandbox Code Playgroud)

azure azure-powershell

10
推荐指数
2
解决办法
2万
查看次数

标签 统计

azure ×1

azure-powershell ×1