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
+16-16Lines changed: 16 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -115,22 +115,22 @@ There are two common tools used to create a SAS address (URI):
115
115
az storage container generate-sas --connection-string 'DefaultEndpointsProtocol=https;AccountName=<account-name>;AccountKey=<account-key>;EndpointSuffix=core.windows.net' --name <container-name> --permissions r --start '<start-date>' --expiry '<expiry-date>'
116
116
```
117
117
118
-
Before running the command above, remember to insert the following parameter values.
119
-
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. |
127
-
128
-
[](media/vm/create-sas-uri-power-shell-ise.png#lightbox)
129
-
130
-
6. Copy the SAS connection string and save it to a text file in a secure location. Edit this string to add the VHD location information to create the final SAS URI.
131
-
7. In the Azure portal, go to the blob container that includes the VHD associated with the new URI.
132
-
8. Copy the URL of the blob service endpoint.
133
-
9. Edit the text file with the SAS connection string from step 2. Create the complete SAS URI using this format. Be sure to insert a “?” between the endpoint URL and the connection string.
118
+
Before running the command above, remember to insert the following parameter values.
119
+
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. |
127
+
128
+
[](./media/vm/create-sas-uri-power-shell-ise.png#lightbox)
129
+
130
+
1. Copy the SAS connection string and save it to a text file in a secure location. Edit this string to add the VHD location information to create the final SAS URI.
131
+
1. In the Azure portal, go to the blob container that includes the VHD associated with the new URI.
132
+
1. Copy the URL of the blob service endpoint.
133
+
1. Edit the text file with the SAS connection string from step 2. Create the complete SAS URI using this format. Be sure to insert a “?” between the endpoint URL and the connection string.
0 commit comments