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/dev-box/how-to-configure-azure-compute-gallery.md
+48-44Lines changed: 48 additions & 44 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ services: dev-box
6
6
ms.service: dev-box
7
7
author: RoseHJM
8
8
ms.author: rosemalcolm
9
-
ms.date: 04/25/2023
9
+
ms.date: 12/20/2023
10
10
ms.topic: how-to
11
11
---
12
12
@@ -16,12 +16,12 @@ In this article, you learn how to configure and attach an Azure compute gallery
16
16
17
17
Azure Compute Gallery is a service for managing and sharing images. A gallery is a repository that's stored in your Azure subscription and helps you build structure and organization around your image resources.
18
18
19
-
After you attach a compute gallery to a dev center in Microsoft Dev Box, you can create dev box definition based on images stored in the compute gallery.
19
+
After you attach a compute gallery to a dev center in Microsoft Dev Box, you can create dev box definitions based on images stored in the compute gallery.
20
20
21
21
Advantages of using a gallery include:
22
22
23
23
- You maintain the images in a single location and use them across dev centers, projects, and pools.
24
-
- Development teams can use the latest version of an image definition to ensure that they always receive the most recent image when creating dev boxes.
24
+
- Development teams can use the latest version of an image definition to ensure they always receive the most recent image when creating dev boxes.
25
25
- Development teams can standardize on a supported image version until a newer version is validated.
26
26
27
27
To learn more about Azure Compute Gallery and how to create galleries, see:
@@ -41,49 +41,53 @@ To learn more about Azure Compute Gallery and how to create galleries, see:
41
41
42
42
A gallery used to configure dev box definitions must have at least [one image definition and one image version](../virtual-machines/image-version.md).
43
43
44
-
When you create a virtual machine image, select an image from the Azure Marketplace that is compatible with Microsoft Dev Box. The following are examples of compatible images:
44
+
When you create a virtual machine (VM) image, select an image from the Azure Marketplace that's compatible with Microsoft Dev Box. The following are examples of compatible images:
45
45
-[Visual Studio 2019](https://azuremarketplace.microsoft.com/marketplace/apps/microsoftvisualstudio.visualstudio2019plustools?tab=Overview)
46
46
-[Visual Studio 2022](https://azuremarketplace.microsoft.com/marketplace/apps/microsoftvisualstudio.visualstudioplustools?tab=Overview)
47
47
48
48
The image version must meet the following requirements:
49
-
- Generation 2.
50
-
- Hyper-V v2.
51
-
- Windows OS.
52
-
- Windows 10 Enterprise version 20H2 or later.
53
-
- Windows 11 Enterprise 21H2 or later.
54
-
- Generalized VM image.
55
-
- You must create the image using these three sysprep options: `/generalize /oobe /mode:vm`. </br>
56
-
For more information, see: [Sysprep Command-Line Options](/windows-hardware/manufacture/desktop/sysprep-command-line-options?view=windows-11#modevm&preserve-view=true).
57
-
- To speed up the Dev Box creation time:
58
-
- Disable the reserved storage state feature in the image by using the following command: `DISM.exe /Online /Set-ReservedStorageState /State:Disabled`. </br>
59
-
For more information, see: [DISM Storage reserve command-line options](/windows-hardware/manufacture/desktop/dism-storage-reserve?view=windows-11#set-reservedstoragestate&preserve-view=true).
60
-
- Run `defrag` and `chkdsk` during image creation, wait for them to finish. And disable `chkdisk` and `defrag` scheduled task.
- For information about how to remove a recovery partition, see the [Windows Server command: delete partition](/windows-server/administration/windows-commands/delete-partition).
64
-
- Default 64-GB OS disk size. The OS disk size is automatically adjusted to the size specified in the SKU description of the Windows 365 license.
49
+
- Generation 2
50
+
- Hyper-V v2
51
+
- Windows OS
52
+
- Windows 10 Enterprise version 20H2 or later
53
+
- Windows 11 Enterprise 21H2 or later
54
+
- Generalized VM image
55
+
- You must create the image by using these three sysprep options: `/generalize /oobe /mode:vm`. For more information, see [Sysprep Command-Line Options](/windows-hardware/manufacture/desktop/sysprep-command-line-options?view=windows-11#modevm&preserve-view=true).
56
+
- To speed up the dev box creation time:
57
+
- Disable the reserved storage state feature in the image by using the following command: `DISM.exe /Online /Set-ReservedStorageState /State:Disabled`. For more information, see [DISM Storage reserve command-line options](/windows-hardware/manufacture/desktop/dism-storage-reserve?view=windows-11#set-reservedstoragestate&preserve-view=true).
58
+
- Run `defrag` and `chkdsk` during image creation, wait for them to finish. And disable `chkdisk` and `defrag` scheduled task.
59
+
- Single-session VM images (Multiple-session VM images aren't supported.)
60
+
- No recovery partition
61
+
For information about how to remove a recovery partition, see the [Windows Server command: delete partition](/windows-server/administration/windows-commands/delete-partition).
62
+
- Default 64-GB OS disk size
63
+
The OS disk size is automatically adjusted to the size specified in the SKU description of the Windows 365 license.
65
64
- The image definition must have [trusted launch enabled as the security type](../virtual-machines/trusted-launch.md). You configure the security type when you create the image definition.
66
65
67
-
:::image type="content" source="media/how-to-configure-azure-compute-gallery/image-definition.png" alt-text="Screenshot that shows Windows 365 image requirement settings.":::
66
+
:::image type="content" source="media/how-to-configure-azure-compute-gallery/image-definition.png" alt-text="Screenshot that shows Windows 365 image requirement settings.":::
68
67
69
68
> [!NOTE]
70
69
> - Microsoft Dev Box image requirements exceed [Windows 365 image requirements](/windows-365/enterprise/device-images) and include settings to optimize dev box creation time and performance.
71
-
> -Images that do not meet Windows 365 requirements will not be listed for creation.
70
+
> -Any image that doesn't meet Windows 365 requirements isn't shown in the list of images that are available for creation.
72
71
73
72
## Provide permissions for services to access a gallery
74
73
75
-
When you use an Azure Compute Gallery image to create a dev box definition, the Windows 365 service validates the image to ensure that it meets the requirements to be provisioned for a dev box. Microsoft Dev Box replicates the image to the regions specified in the attached network connections, so the images are present in the region that's required for dev box creation.
74
+
When you use an Azure Compute Gallery image to create a dev box definition, the Windows 365 service validates the image to ensure that it meets the requirements to be provisioned for a dev box. Microsoft Dev Box replicates the image to the regions specified in the attached network connections, so the images are present in the region required for dev box creation.
76
75
77
76
To allow the services to perform these actions, you must provide permissions to your gallery as follows.
78
77
79
78
### Add a user-assigned identity to the dev center
80
79
81
-
1.[Follow the steps to create a user-assigned managed identity](../active-directory/managed-identities-azure-resources/how-manage-user-assigned-managed-identities.md?pivots=identity-mi-methods-azp#create-a-user-assigned-managed-identity).
80
+
1.[Follow the steps to create a user-assigned managed identity](../active-directory/managed-identities-azure-resources/how-manage-user-assigned-managed-identities.md?pivots=identity-mi-methods-azp#create-a-user-assigned-managed-identity).
81
+
82
82
1. Sign in to the [Azure portal](https://portal.azure.com).
83
+
83
84
1. In the search box, enter **dev box**. In the list of results, select **Dev centers**.
85
+
84
86
1. Open your dev center. On the left menu, select **Identity**.
87
+
85
88
1. On the **User assigned** tab, select **+ Add**.
86
-
1. In **Add user assigned managed identity**, select the user-assigned managed identity that you created in step 1, and then select **Add**.
89
+
90
+
1. In the **Add user assigned managed identity** pane, select the user-assigned managed identity that you created in step 1, and then select **Add**.
87
91
88
92
:::image type="content" source="media/how-to-configure-azure-compute-gallery/assign-managed-id.png" alt-text="Screenshot that shows the pane for adding a user-assigned managed identity.":::
89
93
@@ -130,60 +134,60 @@ Use the following steps to manually assign each role.
|**Members**| Search for and select the user-assigned managed identity that you created when you [added a user-assigned identity to the dev center](#add-a-user-assigned-identity-to-the-dev-center). |
132
136
133
-
You can use the same managed identity in multiple dev centers and compute galleries. Any dev center with the managed identity added has the necessary permissions to the images in the gallery that you've added the Owner role assignment to.
137
+
You can use the same managed identity in multiple dev centers and compute galleries. Any dev center with the managed identity added has the necessary permissions to the images in the gallery that has the Owner role assignment added.
134
138
135
139
## Attach a gallery to a dev center
136
140
137
141
To use the images from a compute gallery in dev box definitions, you must first associate the gallery with the dev center by attaching it:
138
142
139
143
1. Sign in to the [Azure portal](https://portal.azure.com).
140
144
141
-
2. In the search box, enter **dev box**. In the list of results, select **Dev centers**.
145
+
1. In the search box, enter **dev box**. In the list of results, select **Dev centers**.
142
146
143
-
3. Select the dev center that you want to attach the gallery to.
147
+
1. Select the dev center that you want to attach the gallery to.
144
148
145
-
:::image type="content" source="media/how-to-configure-azure-compute-gallery/devcenter-grid.png" alt-text="Screenshot that shows a list of existing dev centers.":::
149
+
:::image type="content" source="media/how-to-configure-azure-compute-gallery/devcenter-grid.png" alt-text="Screenshot that shows a list of existing dev centers." lightbox="media/how-to-configure-azure-compute-gallery/devcenter-grid.png":::
146
150
147
-
4. On the left menu, select **Azure compute galleries** to list the galleries that are attached to this dev center.
151
+
1. On the left menu, select **Azure compute galleries** to list the galleries that are attached to this dev center.
148
152
149
-
:::image type="content" source="media/how-to-configure-azure-compute-gallery/gallery-grid-empty.png" alt-text="Screenshot that shows the page for compute galleries, with no galleries listed.":::
153
+
:::image type="content" source="media/how-to-configure-azure-compute-gallery/gallery-grid-empty.png" alt-text="Screenshot that shows the page for compute galleries, with no galleries listed." lightbox="media/how-to-configure-azure-compute-gallery/gallery-grid-empty.png":::
150
154
151
-
5. Select **+ Add** to select a gallery to attach.
155
+
1. Select **+ Add** to select a gallery to attach.
152
156
153
-
6. In **Add Azure compute gallery**, select your gallery. If you have access to more than one gallery that has the same name, the subscription name appears in parentheses.
157
+
1. In **Add Azure compute gallery**, select your gallery. If you have access to more than one gallery that has the same name, the subscription name appears in parentheses.
154
158
155
159
:::image type="content" source="media/how-to-configure-azure-compute-gallery/gallery-add.png" alt-text="Screenshot that shows the area for selecting a gallery.":::
156
160
157
-
7. If there's a name conflict in the dev center, you must provide a unique name to use for this gallery.
161
+
1. If there's a name conflict in the dev center, you must provide a unique name to use for this gallery.
158
162
159
-
8. Select **Add**.
163
+
1. Select **Add**.
160
164
161
-
9. Confirm that your gallery now appears on the **Azure compute galleries** page.
165
+
1. Confirm your gallery now appears on the **Azure compute galleries** page.
162
166
163
167
:::image type="content" source="media/how-to-configure-azure-compute-gallery/gallery-grid.png" alt-text="Screenshot that shows the page for compute galleries page with example galleries listed.":::
164
168
165
-
After you successfully add a gallery, the images in it will be available to select from when you're creating and updating dev box definitions.
169
+
After you successfully add a gallery, the images in the gallery are available to select when you create and update dev box definitions.
166
170
167
171
## Remove a gallery from a dev center
168
172
169
-
You can detach galleries from dev centers so that their images can no longer be used to create dev box definitions.
173
+
You can detach galleries from dev centers so their images can no longer be used to create dev box definitions.
170
174
171
175
> [!NOTE]
172
176
> You can't remove galleries that are being actively used in dev box definitions. Before you can remove such a gallery, you must delete the associated dev box definition or update the definition to use an image from a different gallery.
173
177
174
178
1. Sign in to the [Azure portal](https://portal.azure.com).
175
179
176
-
2. In the search box, enter **dev box**. In the list of results, select **Dev centers**.
180
+
1. In the search box, enter **dev box**. In the list of results, select **Dev centers**.
177
181
178
-
3. Select the dev center that you want to remove the gallery from.
182
+
1. Select the dev center that you want to remove the gallery from.
179
183
180
-
4. On the left menu, select **Azure compute galleries** to list the galleries that are attached to this dev center.
184
+
1. On the left menu, select **Azure compute galleries** to list the galleries that are attached to this dev center.
181
185
182
-
5. Select the gallery that you want to remove, and then select **Remove**.
186
+
1. Select the gallery that you want to remove, and then select **Remove**.
183
187
184
-
:::image type="content" source="media/how-to-configure-azure-compute-gallery/remove-gallery-from-devcenter.png" alt-text="Screenshot that shows the page for compute galleries, a selected gallery, and the Remove button.":::
188
+
:::image type="content" source="media/how-to-configure-azure-compute-gallery/remove-gallery-from-devcenter.png" alt-text="Screenshot that shows the page for compute galleries, a selected gallery, and the Remove button." lightbox="media/how-to-configure-azure-compute-gallery/remove-gallery-from-devcenter.png":::
185
189
186
-
6. In the confirmation dialog, select **Continue**.
190
+
1. In the confirmation dialog, select **Continue**.
187
191
188
192
The gallery is detached from the dev center. The gallery and its images aren't deleted, and you can reattach it if necessary.
0 commit comments