You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/marketplace/azure-vm-get-sas-uri.md
+9-7Lines changed: 9 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ To extract the VHD from your VM, you need to first take a snapshot of your VM di
30
30
31
31
Take a snapshot of your VM disk:
32
32
33
-
1. Sign in to the [Azure portal](http://www.portal.azure.com/).
33
+
1. Sign in to the [Azure portal](https://www.portal.azure.com/).
34
34
1. Select **Create a resource**, then search for and select **Snapshot**.
35
35
1. In the Snapshot blade, select **Create**.
36
36
1. Select the **Subscription**. Select an existing resource group within the selected subscription or **Create new** and enter the name for a new resource group to be created. This is the resource group the snapshot will be associated to.
@@ -83,7 +83,7 @@ This script about uses the following commands to generate the SAS URI for a snap
83
83
|Command |Notes |
84
84
|---------|---------|
85
85
| az disk grant-access | Generates read-only SAS that is used to copy the underlying VHD file to a storage account or download it to on-premises. |
86
-
| az storage blob copy start | Copies a blob asynchronously from one storage account to another. Use [az storage blob show](/cli/azure/storage/blob?view=azure-cli-latest#az-storage-blob-show) to check the status of the new blob. |
86
+
| az storage blob copy start | Copies a blob asynchronously from one storage account to another. Use [az storage blob show](/cli/azure/storage/blob#az-storage-blob-show) to check the status of the new blob. |
87
87
88
88
## Generate the SAS URI
89
89
@@ -117,11 +117,13 @@ There are two common tools used to create a SAS address (URI):
117
117
118
118
Before running the command above, remember to insert the following parameter values.
119
119
120
-
- account-name – Your Azure storage account name.
121
-
- account-key – Your Azure storage account key.
122
-
- container-name – Your blob container that hosts the VHD file.
123
-
- start-date – This is the permission start date for VHD access. Provide a date one day before the current date. For example, if the current date is July 15, 2022, set the date as 07/14/2022. Provide dates in UTC date/time format (YYYY-MM-DDT00:00:00Z), such as 2022-04-01T00:00:00Z.
124
-
- expiry-date – This is the permission expiration date for VHD access. Provide a date at least three weeks after the current date. Provide dates in UTC date/time format (YYYY-MM-DDT00:00:00Z), such as 2022-04-01T00:00:00Z.
120
+
| Parameter value | Description |
121
+
| --------------- | ----------- |
122
+
| account-name | Your Azure storage account name. |
123
+
| account-key | Your Azure storage account key. |
124
+
| container-name | Your blob container that hosts the VHD file. |
125
+
| start-date | This is the permission start date for VHD access. Provide a date one day before the current date. For example, if the current date is July 15, 2022, set the date as 07/14/2022. Provide dates in UTC date/time format (YYYY-MM-DDT00:00:00Z), such as 2022-04-01T00:00:00Z. |
126
+
| expiry-date | This is the permission expiration date for VHD access. Provide a date at least three weeks after the current date. Provide dates in UTC date/time format (YYYY-MM-DDT00:00:00Z), such as 2022-04-01T00:00:00Z. |
125
127
126
128
[](media/vm/create-sas-uri-power-shell-ise.png#lightbox)
0 commit comments