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
@@ -20,6 +24,15 @@ This article shows you how to attach or detach an Azure Compute Gallery to a lab
20
24
21
25
Saving images to a compute gallery and replicating those images incurs additional cost. This cost is separate from the Azure Lab Services usage cost. For more information about Azure Compute Gallery pricing, see [Azure Compute Gallery – Billing](../virtual-machines/azure-compute-gallery.md#billing).
22
26
27
+
## Prerequisites
28
+
29
+
- To change settings for the lab plan, your Azure account needs the [Owner](/azure/role-based-access-control/built-in-roles#owner), [Contributor](/azure/role-based-access-control/built-in-roles#contributor), or [Lab Services Contributor](/azure/role-based-access-control/built-in-roles#lab-services-contributor) role on the lab plan. Learn more about the [Azure Lab Services built-in roles](./administrator-guide.md#rbac-roles).
30
+
31
+
- To attach an Azure compute gallery to a lab plan, your Azure account needs the following permissions:
32
+
33
+
-[Owner](/azure/role-based-access-control/built-in-roles#owner) role on the Azure compute gallery resource, if you're using an existing compute gallery
34
+
-[Owner](/azure/role-based-access-control/built-in-roles#owner) role on the resource group, if you're creating a new compute gallery
35
+
23
36
## Scenarios
24
37
25
38
Here are a couple of scenarios supported by attaching a compute gallery.
@@ -36,71 +49,63 @@ A lab creator can create a template VM based on both generalized and specialized
36
49
37
50
## Create and attach a compute gallery
38
51
39
-
> [!IMPORTANT]
40
-
> Your user account must have permission to create a new Azure Compute Gallery.
41
-
42
52
1. Open your lab plan in the [Azure portal](https://portal.azure.com).
53
+
43
54
1. Select **Azure compute gallery** on the menu.
55
+
44
56
1. Select the **Create Azure compute gallery** button.
45
57
46
58
:::image type="content" source="./media/how-to-attach-detach-shared-image-gallery/no-gallery-create-new.png" alt-text="Screenshot of the Create Azure compute gallery button.":::
47
59
48
60
1. In the **Create Azure compute gallery** window, enter a **name** for the gallery, and then select **Create**.
49
61
50
-
:::image type="content" source="./media/how-to-attach-detach-shared-image-gallery/create-azure-compute-gallery-window.png" alt-text="Screenshot of the Create compute gallery window.":::
62
+
:::image type="content" source="./media/how-to-attach-detach-shared-image-gallery/create-azure-compute-gallery-window.png" alt-text="Screenshot of the Create compute gallery window." lightbox="./media/how-to-attach-detach-shared-image-gallery/create-azure-compute-gallery-window.png":::
51
63
52
64
Azure Lab Services creates the compute gallery and attaches it to the lab plan. All labs created using this lab plan can now use images from the attached compute gallery.
53
65
54
66
In the bottom pane, you see images in the compute gallery. There are no images in this new gallery. When you upload images to the gallery, you see them on this page.
55
67
56
-
:::image type="content" source="./media/how-to-attach-detach-shared-image-gallery/attached-gallery-empty-list.png" alt-text="Attached image gallery list of images.":::
68
+
:::image type="content" source="./media/how-to-attach-detach-shared-image-gallery/attached-gallery-empty-list.png" alt-text="Screenshot of the attached image gallery list of images." lightbox="./media/how-to-attach-detach-shared-image-gallery/attached-gallery-empty-list.png":::
57
69
58
70
## Attach an existing compute gallery
59
71
60
72
The following procedure shows you how to attach an existing compute gallery to a lab plan.
61
73
62
74
1. Open your lab plan in the [Azure portal](https://portal.azure.com).
75
+
63
76
1. Select **Azure compute gallery** on the menu.
77
+
64
78
1. Select the **Attach existing gallery** button.
65
79
66
80
:::image type="content" source="./media/how-to-attach-detach-shared-image-gallery/no-gallery-attach-existing.png" alt-text="Screenshot of the Attach existing gallery button.":::
67
81
68
82
1. On the **Attach an existing compute gallery** page, select your compute gallery, and then select the **Select** button.
69
83
70
-
:::image type="content" source="./media/how-to-attach-detach-shared-image-gallery/attach-existing-compute-gallery.png" alt-text="Azure compute gallery page for lab plan when gallery has been attached.":::
71
-
72
-
> [!NOTE]
73
-
> The **Azure Lab Services** app must be assigned the **Owner** role on the compute gallery to show in the list.
84
+
:::image type="content" source="./media/how-to-attach-detach-shared-image-gallery/attach-existing-compute-gallery.png" alt-text="Screenshot of the Azure compute gallery page for a lab plan when the gallery is attached.":::
74
85
75
86
All labs created using this lab plan can now use images from the attached compute gallery.
76
87
77
88
## Enable and disable images
78
89
79
-
All images in the attached compute gallery are disabled by default. To enable selected images:
90
+
All images in the attached compute gallery are disabled by default.
80
91
81
-
1. Check images you want to enable.
82
-
1. Select **Enable image** button.
83
-
1. Select **Apply**.
92
+
To enable or disable images from a compute gallery:
84
93
85
-
:::image type="content" source="./media/how-to-attach-detach-shared-image-gallery/enable-attached-gallery-image.png" alt-text="Enable an imaged for an attached compute gallery.":::
94
+
1. Check the VM images in the list.
86
95
87
-
To disable selected images:
96
+
1. Select **Enable image** or **Disable image**, to enable or disable the images.
88
97
89
-
1.Check images you want to disable.
90
-
1. Select **Disable image** button.
91
-
1. Select **Apply**.
98
+
1.Select **Apply** to confirm the action.
99
+
100
+
:::image type="content" source="./media/how-to-attach-detach-shared-image-gallery/enable-attached-gallery-image.png" alt-text="Screenshot that shows how to enable an image for an attached compute gallery.":::
92
101
93
102
## Detach a compute gallery
94
103
95
104
To detach a compute gallery from your lab, select **Detach** on the toolbar. Confirm the detach operation.
96
105
97
-
Only one Azure Compute Gallery can be attached to a lab. To attach another compute gallery, follow the below steps:
98
-
99
-
1. Select **Change gallery** on the toolbar.
100
-
1. Confirm the change operation.
101
-
1. On the **Attach an existing compute gallery** page, select your compute gallery, and then select the **Select** button.
106
+
:::image type="content" source="./media/how-to-attach-detach-shared-image-gallery/attached-gallery-detach.png" alt-text="Screenshot of how to detach the compute gallery from the lab plan.":::
102
107
103
-
:::image type="content" source="./media/how-to-attach-detach-shared-image-gallery/attached-gallery-detach.png" alt-text="Detach the compute gallery from the lab plan":::
108
+
Only one Azure compute gallery can be attached to a lab plan. To attach another compute gallery, follow the steps to [attach an existing compute gallery](#attach-an-existing-compute-gallery).
0 commit comments