Azure 门户和 shell 之间的不同结果
Different results between Azure portal and shell
如果我 运行 CLI 命令
az storage account list
从 https://shell.azure.com 我得到结果 [] 即没有找到存储帐户
但是,如果我切换到 https://portal.azure.com,我可以看到列出了 22 个存储帐户。
任何人都可以解释为什么同一个经过身份验证的帐户会得到不同的结果。
如果你的存储账户是ARM(Azure Resource Manager)模型,这两个结果应该是一样的。
1.Make确定你已经在同一个subscription
中检查过,在云端shell,你可以使用az account show
来获取它。
2.The az storage account list
只是为了ARM
,如果你的存储账户是classic
,就不会return了。
如果我 运行 CLI 命令
az storage account list
从 https://shell.azure.com 我得到结果 [] 即没有找到存储帐户
但是,如果我切换到 https://portal.azure.com,我可以看到列出了 22 个存储帐户。
任何人都可以解释为什么同一个经过身份验证的帐户会得到不同的结果。
如果你的存储账户是ARM(Azure Resource Manager)模型,这两个结果应该是一样的。
1.Make确定你已经在同一个subscription
中检查过,在云端shell,你可以使用az account show
来获取它。
2.The az storage account list
只是为了ARM
,如果你的存储账户是classic
,就不会return了。