如何使用 PowerShell 中的 Azure CLI 连接到 Azure 订阅?
要使用 Az CLI 连接到特定的 Azure 订阅,我们需要使用 “Az account set” 命令,但在此之前请确保使用 “az login” 账户连接 Azure 云。
az account set --subscription 'subscription name or id'
你还可以使用 -s 代替 --subscription.
az account set -s 'subscription name or id'
要检查订阅是否设置正确,请使用以下命令。
PS C:\> az account show -otable
广告
数据结构
网络
关系数据库管理系统
操作系统
Java
iOS
HTML
CSS
Android
Python
C 程序设计
C++
C#
MongoDB
MySQL
Javascript
PHP