Skip to content

Commit 1a76b20

Browse files
author
AbhishekMallick01
committed
addressed Dev inputs
1 parent 22e485f commit 1a76b20

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

articles/backup/tutorial-restore-disk.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -277,12 +277,7 @@ So, the template name from the above example will be ```azuredeploy1fc2d55d-f0dc
277277
Now get the SAS token for this container and template as detailed [here](../azure-resource-manager/templates/secure-template-with-sas-token.md?tabs=azure-cli#provide-sas-token-during-deployment)
278278

279279
```azurecli-interactive
280-
$expiryDate=$(date -u -d '30 minutes' +%Y-%m-%dT%H:%MZ)
281-
$sasToken=$(az storage blob generate-sas --account-name
282-
$storageAccountName --container-name
283-
$containerName --name
284-
$templateName --permissions r --expiry
285-
$expiryDate --auth-mode login --as-user --https-only --output tsv)
280+
expiretime=$(date -u -d '30 minutes' +%Y-%m-%dT%H:%MZ)token=$(az storage blob generate-sas --account-name $storageAccountName --container-name $containerName --name $templateName --permissions r --expiry $expiretime --auth-mode login --as-user --https-only --output tsv)url=$(az storage blob url --account-name $storageAccountName --container-name $containerName --name $templateName --output tsv --auth-mode login)
286281
```
287282

288283
### Deploy the template to create the VM

0 commit comments

Comments
 (0)