CmdID

CmdID / az / az storage / az storage share-rm

az storage share-rm show

Show the properties for a specified Azure file share or share snapshot. Azure CLI reference

4 examples 4 options Its page in the Azure CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from the Azure CLI, each command read by CmdID

Show the properties for an Azure file share 'myfileshare' under the storage account 'mystorageaccount' (account name) in resource group 'MyResourceGroup'.

az storage share-rm show -g MyResourceGroup --storage-account mystorageaccount --name myfileshareIdentify
-gName of resource group.
--storage-accountThe name of the storage account within the specified resource group.
--nameThe name of the file share within the specified storage account.

Show the properties for an Azure file share 'myfileshare' under the storage account 'mystorageaccount' (account id).

az storage share-rm show --storage-account mystorageaccount --name myfileshareIdentify
--storage-accountThe name of the storage account within the specified resource group.
--nameThe name of the file share within the specified storage account.

Show the properties of an Azure file share by resource id.

az storage share-rm show --ids file-share-idIdentify
--idsOne or more resource IDs (space-delimited).

Show the properties of an Azure file share snapshot

az storage share-rm show --ids file-share-id --snapshot "2021-03-25T05:29:56.0000000Z"Identify
--idsOne or more resource IDs (space-delimited).
--snapshotOptional, used to delete a snapshot.The DateTime value that specifies the share snapshot to retrieve.

Options

4 in the Azure CLI reference
--expandOptional, used to expand the properties within share's properties.
--share-name, --name, -nThe name of the file share within the specified storage account.
--snapshotOptional, used to delete a snapshot.The DateTime value that specifies the share snapshot to retrieve.
--storage-account, --account-nameThe name of the storage account within the specified resource group.