Skip to content

Commit c2f4fe5

Browse files
Merge pull request #237424 from dknappettmsft/avd-custom-image-templates-prereq-tweak
AVD custom image templates separate prerequisite
2 parents ab1dd4b + 74a2d61 commit c2f4fe5

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

articles/virtual-desktop/create-custom-image-templates.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This article shows you how to create a custom image template, then create a cust
1919

2020
## Prerequisites
2121

22-
Before you can create a custom image template, you need to meet the following prerequisites.
22+
Before you can create a custom image template, you need to meet the following prerequisites:
2323

2424
- The following resource providers registered on your subscription. For information on how you can check their registration status and how to register them if needed, see [Azure resource providers and types](../azure-resource-manager/management/resource-providers-and-types.md).
2525

@@ -34,9 +34,9 @@ Before you can create a custom image template, you need to meet the following pr
3434

3535
- A [user-assigned Managed Identity](../active-directory/managed-identities-azure-resources/how-manage-user-assigned-managed-identities.md). We recommend you create one specifically to use with custom image templates.
3636

37-
- [Create a custom role-based access control (RBAC) role definition](../role-based-access-control/custom-roles.md) with the following permissions as *actions*. Assign this role definition to the Managed Identity, scoped appropriately for your deployment, ideally to the resource group you use store custom image templates.
37+
- [Create a custom role](../role-based-access-control/custom-roles.md) in Azure role-based access control (RBAC) with the following permissions as *actions*:
3838

39-
```json/
39+
```json
4040
"Microsoft.Compute/galleries/read",
4141
"Microsoft.Compute/galleries/images/read",
4242
"Microsoft.Compute/galleries/images/versions/read",
@@ -45,7 +45,9 @@ Before you can create a custom image template, you need to meet the following pr
4545
"Microsoft.Compute/images/read",
4646
"Microsoft.Compute/images/delete"
4747
```
48-
48+
49+
- [Assign the custom role to the Managed Identity](../role-based-access-control/role-assignments-portal-managed-identity.md#user-assigned-managed-identity). This should be scoped appropriately for your deployment, ideally to the resource group you use store custom image templates.
50+
4951
- *Optional*: If you want to distribute your image to Azure Compute Gallery, [create an Azure Compute Gallery](../virtual-machines/create-gallery.md), then [create a VM image definition](../virtual-machines/image-version.md). When you create a VM image definition in the gallery you need to specify the *generation* of the image you intend to create, either *generation 1* or *generation 2*. The generation of the image you want to use as the source image needs to match the generation specified in the VM image definition. Don't create a *VM image version* at this stage. This will be done by Azure Virtual Desktop.
5052

5153
- *Optional*: You can use an existing virtual network when building an image. If you do, the managed identity you're using needs access to the virtual network, or the resource group it's contained within. For more information, see [Permission to customize images on your virtual networks](../virtual-machines/linux/image-builder-permissions-powershell.md#permission-to-customize-images-on-your-virtual-networks).

0 commit comments

Comments
 (0)