CmdID / az / az storage / az storage share-rm
az storage share-rm list
List all shares. Azure CLI reference
5 examples 3 options Its page in the Azure CLI reference
Examples
List the Azure file shares under the storage account 'mystorageaccount' (account name) in resource group 'MyResourceGroup'.
az storage share-rm list -g MyResourceGroup --storage-account mystorageaccountIdentify-gName of resource group.--storage-accountThe name of the storage account within the specified resource group.List the Azure file shares under the storage account 'mystorageaccount' (account id).
az storage share-rm list --storage-account mystorageaccountIdentify--storage-accountThe name of the storage account within the specified resource group.List all file shares include deleted under the storage account 'mystorageaccount' .
az storage share-rm list --storage-account mystorageaccount --include-deletedIdentify--storage-accountThe name of the storage account within the specified resource group.List all file shares include its all snapshots under the storage account 'mystorageaccount'
az storage share-rm list --storage-account mystorageaccount --include-snapshotIdentify--storage-accountThe name of the storage account within the specified resource group.List all file shares include its all snapshots and deleted file shares under the storage account 'mystorageaccount'
az storage share-rm list --storage-account mystorageaccount --include-deleted --include-snapshotIdentify--storage-accountThe name of the storage account within the specified resource group.Options
--expandOptional, used to expand the properties within share's properties.--maxpagesize, --filterOptional.--storage-account, --account-nameThe name of the storage account within the specified resource group.