How to Get All the Containers From a Specific Azure Storage Account using Azure CLI? How to set context in azure cli like we set context in Powershell? $ctx = $storageAccount.Context
How can we achieve this using 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