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/virtual-desktop/create-custom-image-templates.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ This article shows you how to create a custom image template, then create a cust
19
19
20
20
## Prerequisites
21
21
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:
23
23
24
24
- 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).
25
25
@@ -34,9 +34,9 @@ Before you can create a custom image template, you need to meet the following pr
34
34
35
35
- 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.
36
36
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*:
@@ -45,7 +45,9 @@ Before you can create a custom image template, you need to meet the following pr
45
45
"Microsoft.Compute/images/read",
46
46
"Microsoft.Compute/images/delete"
47
47
```
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
+
49
51
-*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.
50
52
51
53
-*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