CmdID / az / az storage / az storage share-rm
az storage share-rm restore
Restore a file share within a valid retention days if share soft delete is enabled. Azure CLI reference
2 examples 3 options Its page in the Azure CLI reference
Examples
Restore a file share within a valid retention days if share soft delete is enabled.
az storage share-rm restore -n deletedshare --deleted-version 01D64EB9886F00C4 -g MyResourceGroup --storage-account mystorageaccountIdentify-nThe file share name.--deleted-versionIdentify the version of the deleted share that will be restored.-gName of resource group.--storage-accountThe name or ID of the storage account.Restore a file share within a valid retention days if share soft delete is enabled to a new name.
az storage share-rm restore -n deletedshare --deleted-version 01D64EB9886F00C4 --restored-name newname -g MyResourceGroup --storage-account mystorageaccountIdentify-nThe file share name.--deleted-versionIdentify the version of the deleted share that will be restored.--restored-nameA new file share name to be restored.-gName of resource group.--storage-accountThe name or ID of the storage account.Options
--deleted-versionIdentify the version of the deleted share that will be restored.--restored-nameA new file share name to be restored.--share-nameThe file share name.