[英]How to Get All the Containers From a Specific Azure Storage Account using Azure CLI?
How to Get All the Containers From a Specific Azure Storage Account using Azure CLI?如何使用 Azure CLI 从特定的 Azure 存储帐户获取所有容器? How to set context in azure cli like we set context in Powershell?
如何像我们在 Powershell 中设置上下文一样在 azure cli 中设置上下文? $ctx = $storageAccount.Context
$ctx = $storageAccount.Context
How can we achieve this using Azure CLI?我们如何使用 Azure CLI 实现这一目标?
az storage container list --account-name <Storage Account Name> --account-key <Storage Account Key> --query "[].{Name:name}" --output table
# example to set the Az context
Set-AzContext -Subscription "XXXX-XXXX-XXXX-XXXX"
Refer Set AzContext & Get AzContext请参阅设置 AzContext和获取 AzContext
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.