CmdID / az / az storage / az storage share-rm
az storage share-rm exists
Check for the existence of an Azure file share. Azure CLI reference
3 examples Its page in the Azure CLI reference
Examples
Check for the existence of an Azure file share 'myfileshare' under the storage account 'mystorageaccount' (account name) in resource group 'MyResourceGroup'.
az storage share-rm exists -g MyResourceGroup --storage-account mystorageaccount --name myfileshareIdentify-gName of resource group.--storage-accountThe name or ID of the storage account.--nameThe file share name.Check for the existence of an Azure file share 'myfileshare' under the storage account 'mystorageaccount' (account id).
az storage share-rm exists --storage-account mystorageaccount --name myfileshareIdentify--storage-accountThe name or ID of the storage account.--nameThe file share name.Check for the existence of an Azure file share by resource id.
az storage share-rm exists --ids file-share-idIdentify--idsOne or more resource IDs (space-delimited).