Azure PowerShell - 选择订阅
Azure PowerShell - Selecting Subscription
我需要在 Azure PowerShell 中 select 我的 Azure 订阅。
我 copy/paste 来自 Azure Management Portal
的订阅 ID(以确保没有拼写错误),它是一个十六进制字符串:
当我运行:
Select-AzureSubscription -SubscriptionId '0300...'
我收到一条错误消息:
Select-AzureSubscription : The subscription id 0300... doesn't exist.
我知道我的订阅 ID 是从 Azure Management Portal
中的设置正确复制的,我什至做了一个 BeyondCompare 来确保。
我想知道安全问题……我是不是漏掉了什么?我是否需要以某种方式提供我的 Azure 凭据?只允许任何人 select 任何 Azure 订阅是没有意义的,除非订阅 ID 应该是超级机密的,例如 SSN。
您需要先登录您的 Azure 帐户:
To start working with the Azure Service Management cmdlets, first log
on to your Azure account. To log on to your account, run the following
command:
Add-AzureAccount
After logging into Azure, Azure PowerShell creates a context for the
given session. That context contains the Azure PowerShell environment,
account, tenant, and subscription that will be used for all cmdlets
within that session. Now you are ready to use the modules below.
我需要在 Azure PowerShell 中 select 我的 Azure 订阅。
我 copy/paste 来自 Azure Management Portal
的订阅 ID(以确保没有拼写错误),它是一个十六进制字符串:
当我运行:
Select-AzureSubscription -SubscriptionId '0300...'
我收到一条错误消息:
Select-AzureSubscription : The subscription id 0300... doesn't exist.
我知道我的订阅 ID 是从 Azure Management Portal
中的设置正确复制的,我什至做了一个 BeyondCompare 来确保。
我想知道安全问题……我是不是漏掉了什么?我是否需要以某种方式提供我的 Azure 凭据?只允许任何人 select 任何 Azure 订阅是没有意义的,除非订阅 ID 应该是超级机密的,例如 SSN。
您需要先登录您的 Azure 帐户:
To start working with the Azure Service Management cmdlets, first log on to your Azure account. To log on to your account, run the following command:
Add-AzureAccount
After logging into Azure, Azure PowerShell creates a context for the given session. That context contains the Azure PowerShell environment, account, tenant, and subscription that will be used for all cmdlets within that session. Now you are ready to use the modules below.