CmdID

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

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

Examples

from the Azure CLI, each command read by CmdID

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

3 in the Azure CLI reference
--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.