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
+10-11Lines changed: 10 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,23 +12,22 @@ ms.date: 08/17/2022
12
12
# Generate a SAS URI for a VM image
13
13
14
14
> [!NOTE]
15
-
> A Shared access signature (SAS) URI can be used to publish your virtual machine (VM). Alternatively, you can share an image in Partner Center via Azure compute gallery. Refer to [Create a virtual machine using an approved base](azure-vm-use-approved-base.md) or [Create a virtual machine using your own image](azure-vm-use-own-image.md) instructions.
15
+
> A Shared access signature (SAS) URI can be used to publish your virtual machine (VM). Alternatively, you can share an image in Partner Center via Azure compute gallery. Refer to [Create a virtual machine using an approved base](azure-vm-use-approved-base.md) or [Create a virtual machine using your own image](azure-vm-use-own-image.md)for further instructions.
16
16
17
17
Before getting started, you will need the following:
18
18
19
-
• a virtual machine
20
-
• a[storage account](/azure/storage/common/storage-account-create?tabs=azure-portal) with a container for storing the virtual hard drive (VHD)
> You can skip this step if you already have a VHD uploaded to a storage account.
28
27
29
28
To extract the VHD from your VM, you need to first take a snapshot of your VM disk and then extract the VHD from the snapshot into your storage account.
30
29
31
-
Take a snapshot of your VM disk:
30
+
### Take a snapshot of your VM disk
32
31
33
32
1. Sign in to the [Azure portal](https://www.portal.azure.com/).
34
33
1. Select **Create a resource**, then search for and select **Snapshot**.
This script about uses the following commands to generate the SAS URI for a snapshot and copies the underlying VHD to a storage account using the SAS URI. Each command in the table links to command specific documentation.
80
+
This script about uses the following commands to generate the SAS URI for a snapshot and copies the underlying VHD to a storage account using the SAS URI.
82
81
83
82
|Command |Notes |
84
83
|---------|---------|
@@ -89,8 +88,8 @@ This script about uses the following commands to generate the SAS URI for a snap
89
88
90
89
There are two common tools used to create a SAS address (URI):
91
90
92
-
1.**Azure Storage browser** – Available on the Azure portal.
93
-
2.**Azure CLI** – Recommended for non-Windows operating systems and automated or continuous integration environments.
91
+
-**Azure Storage browser** – Available on the Azure portal.
92
+
-**Azure CLI** – Recommended for non-Windows operating systems and automated or continuous integration environments.
94
93
95
94
### Using Tool 1: Azure Storage browser
96
95
@@ -142,7 +141,7 @@ This table shows the common errors encountered when providing a shared access si
142
141
| --- | --- | --- |
143
142
| "?" is not found in SAS URI | `Must be a valid Azure shared access signature URI.` | Ensure that the SAS URI provided uses the proper syntax and includes the “?”character.<br>Syntax: `<blob-service-endpoint-url>?<sas-connection-string>` |
144
143
| "st" parameter not in SAS URI | `Specified SAS URL cannot be reached.` | Update the SAS URI with proper **Start Date** ("st") value. |
145
-
| "se" parameter not in SAS URI | `The end date parameter (se) is required.` | Update the SAS URI with proper End Date (“se”) value. |
144
+
| "se" parameter not in SAS URI | `The end date parameter (se) is required.` | Update the SAS URI with proper **End Date** (“se”) value. |
146
145
| "sp=r" not in SAS URI | `Missing Permissions (sp) must include 'read' (r).` | Update the SAS URI with permissions set as `Read` (“sp=r”). |
147
146
| SAS URI Authorization error | `Failure: Copying Images. Not able to download blob due to authorization error.` | Review and correct the SAS URI format. Regenerate if necessary. |
148
147
| SAS URI "st" and "se" parameters do not have full date-time specification | `The start time parameter (st) is not a valid date string.`<br>OR<br>`The end date parameter (se) is not a valid date string.` | SAS URI **Start Date** and **End Date** parameters (“st” and “se” substrings) must have full date-time format (YYYY-MM-DDT00:00:00Z), such as 11-02-2017T00:00:00Z. Shortened versions are invalid (some commands in Azure CLI may generate shortened values by default). |
0 commit comments