Skip to content

Commit 0789a48

Browse files
author
RoseHJM
committed
DTL - UUF fixes
1 parent 0fb0644 commit 0789a48

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

articles/devtest-labs/add-vm-use-shared-image.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ description: Learn how to add a virtual machine (VM) using an image from the att
44
ms.topic: how-to
55
ms.author: rosemalcolm
66
author: RoseHJM
7-
ms.date: 06/26/2020
7+
ms.date: 02/28/2025
88
ms.custom: UpdateFrequency2
9+
10+
#customer intent: As a customer, I want to know how to add a VM using an image from the attached shared image gallery in Azure DevTest Labs.
911
---
1012

1113
# Add a VM using an image from the attached shared image gallery
@@ -25,14 +27,14 @@ Then, on the **Advanced settings** tab of the **Create lab resource** page, you
2527
You can switch to using a different version of the image after the VM is created.
2628

2729
## Resource Manager template
28-
If you're using an Azure Resource Manager template to create a virtual machine using a shared image gallery image, specify a value for the **sharedImageId** in the **Properties** section. See the following example:
30+
If you're using an Azure Resource Manager template to create a virtual machine using a shared image gallery image, specify a value for the **sharedGalleryImageId** in the **Properties** section. See the following example:
2931

3032
```json
3133
"resources": [
3234
{
3335
...
3436
"properties": {
35-
"sharedImageId": "/subscriptions/111111111-1111-1111-1111-111111111111/resourcegroups/mydtlrg/providers/microsoft.devtestlab/labs/mydtllab/sharedgalleries/spsig/sharedimages/myimagefromgallery",
37+
"sharedGalleryImageId": "/subscriptions/111111111-1111-1111-1111-111111111111/resourcegroups/mydtlrg/providers/microsoft.devtestlab/labs/mydtllab/sharedgalleries/spsig/sharedimages/myimagefromgallery",
3638
"sharedImageVersion": "1.0.1",
3739
...
3840
}
@@ -50,7 +52,7 @@ For a complete Resource Manager template example, see
5052
```rest
5153
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/sharedgalleries/{name}/sharedimages?api-version= 2018-10-15-preview
5254
```
53-
2. Invoke the PUT method on virtual machines by passing the ID of the shared image you received from the previous call to the `properties.SharedImageId`.
55+
2. Invoke the PUT method on virtual machines by passing the ID of the shared image you received from the previous call to the `properties.sharedGalleryImageId`.
5456
5557
## Next steps
5658
To learn how to attach a shared image gallery to a lab and configure it, see [Configure shared image gallery](configure-shared-image-gallery.md).
-5.94 KB
Loading

0 commit comments

Comments
 (0)