Skip to content

Commit fdcb6db

Browse files
Merge pull request #261710 from GitHubber17/183368-7
Freshness | Microsoft Dev Box procedures
2 parents deec3af + 22602d7 commit fdcb6db

File tree

2 files changed

+48
-44
lines changed

2 files changed

+48
-44
lines changed

articles/dev-box/how-to-configure-azure-compute-gallery.md

Lines changed: 48 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services: dev-box
66
ms.service: dev-box
77
author: RoseHJM
88
ms.author: rosemalcolm
9-
ms.date: 04/25/2023
9+
ms.date: 12/20/2023
1010
ms.topic: how-to
1111
---
1212

@@ -16,12 +16,12 @@ In this article, you learn how to configure and attach an Azure compute gallery
1616

1717
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.
1818

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

2121
Advantages of using a gallery include:
2222

2323
- 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.
2525
- Development teams can standardize on a supported image version until a newer version is validated.
2626

2727
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:
4141

4242
A gallery used to configure dev box definitions must have at least [one image definition and one image version](../virtual-machines/image-version.md).
4343

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:
4545
- [Visual Studio 2019](https://azuremarketplace.microsoft.com/marketplace/apps/microsoftvisualstudio.visualstudio2019plustools?tab=Overview)
4646
- [Visual Studio 2022](https://azuremarketplace.microsoft.com/marketplace/apps/microsoftvisualstudio.visualstudioplustools?tab=Overview)
4747

4848
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.
61-
- Single-session virtual machine (VM) images. (Multiple-session VM images aren't supported.)
62-
- No recovery partition.
63-
- 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.
6564
- 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.
6665

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

6968
> [!NOTE]
7069
> - 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.
7271
7372
## Provide permissions for services to access a gallery
7473

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

7776
To allow the services to perform these actions, you must provide permissions to your gallery as follows.
7877

7978
### Add a user-assigned identity to the dev center
8079

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+
8282
1. Sign in to the [Azure portal](https://portal.azure.com).
83+
8384
1. In the search box, enter **dev box**. In the list of results, select **Dev centers**.
85+
8486
1. Open your dev center. On the left menu, select **Identity**.
87+
8588
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**.
8791

8892
:::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.":::
8993

@@ -130,60 +134,60 @@ Use the following steps to manually assign each role.
130134
| **Assign access to** | Select **Managed Identity**. |
131135
| **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). |
132136

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

135139
## Attach a gallery to a dev center
136140

137141
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:
138142

139143
1. Sign in to the [Azure portal](https://portal.azure.com).
140144

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**.
142146

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

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

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

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

151-
5. Select **+ Add** to select a gallery to attach.
155+
1. Select **+ Add** to select a gallery to attach.
152156

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

155159
:::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.":::
156160

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

159-
8. Select **Add**.
163+
1. Select **Add**.
160164

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

163167
:::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.":::
164168

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

167171
## Remove a gallery from a dev center
168172

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

171175
> [!NOTE]
172176
> 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.
173177
174178
1. Sign in to the [Azure portal](https://portal.azure.com).
175179

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**.
177181

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

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

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**.
183187

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

186-
6. In the confirmation dialog, select **Continue**.
190+
1. In the confirmation dialog, select **Continue**.
187191

188192
The gallery is detached from the dev center. The gallery and its images aren't deleted, and you can reattach it if necessary.
189193

9.85 KB
Loading

0 commit comments

Comments
 (0)