Skip to content

Commit 7cf3131

Browse files
authored
Merge pull request #229094 from ntrogh/als-compute-gallery-permissions
[Azure Lab Services] Add compute gallery permissions as prerequisite
2 parents 4c90731 + 204321e commit 7cf3131

File tree

4 files changed

+33
-28
lines changed

4 files changed

+33
-28
lines changed

articles/lab-services/how-to-attach-detach-shared-image-gallery.md

Lines changed: 33 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
---
2-
title: Attach or detach an Azure Compute Gallery in Azure Lab Services | Microsoft Docs
2+
title: Attach or detach a compute gallery to a lab plan
3+
titleSuffix: Azure Lab Services
34
description: This article describes how to attach an Azure Compute Gallery to a lab in Azure Lab Services.
5+
services: lab-services
6+
ms.service: lab-services
7+
author: ntrogh
8+
ms.author: nicktrog
49
ms.topic: how-to
5-
ms.date: 07/04/2022
6-
ms.custom: devdivchpfy22
10+
ms.date: 03/01/2023
711
---
812

9-
# Attach or detach a compute gallery in Azure Lab Services
13+
# Attach or detach an Azure compute gallery to a lab plan in Azure Lab Services
1014

1115
[!INCLUDE [preview note](./includes/lab-services-new-update-focused-article.md)]
1216

@@ -20,6 +24,15 @@ This article shows you how to attach or detach an Azure Compute Gallery to a lab
2024
2125
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).
2226

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+
2336
## Scenarios
2437

2538
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
3649
3750
## Create and attach a compute gallery
3851

39-
> [!IMPORTANT]
40-
> Your user account must have permission to create a new Azure Compute Gallery.
41-
4252
1. Open your lab plan in the [Azure portal](https://portal.azure.com).
53+
4354
1. Select **Azure compute gallery** on the menu.
55+
4456
1. Select the **Create Azure compute gallery** button.
4557

4658
:::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.":::
4759

4860
1. In the **Create Azure compute gallery** window, enter a **name** for the gallery, and then select **Create**.
4961

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":::
5163

5264
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.
5365

5466
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.
5567

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":::
5769

5870
## Attach an existing compute gallery
5971

6072
The following procedure shows you how to attach an existing compute gallery to a lab plan.
6173

6274
1. Open your lab plan in the [Azure portal](https://portal.azure.com).
75+
6376
1. Select **Azure compute gallery** on the menu.
77+
6478
1. Select the **Attach existing gallery** button.
6579

6680
:::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.":::
6781

6882
1. On the **Attach an existing compute gallery** page, select your compute gallery, and then select the **Select** button.
6983

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.":::
7485

7586
All labs created using this lab plan can now use images from the attached compute gallery.
7687

7788
## Enable and disable images
7889

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.
8091

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:
8493

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.
8695

87-
To disable selected images:
96+
1. Select **Enable image** or **Disable image**, to enable or disable the images.
8897

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.":::
92101

93102
## Detach a compute gallery
94103

95104
To detach a compute gallery from your lab, select **Detach** on the toolbar. Confirm the detach operation.
96105

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.":::
102107

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).
104109

105110
## Next steps
106111

208 Bytes
Loading
-14.7 KB
Loading
-14.7 KB
Loading

0 commit comments

Comments
 (0)