This solution will deploy the prerequisites for AVD Custom Image Templates as described in the following article:
Use custom image templates to create custom images in Azure Virtual Desktop | Microsoft Learn
The following resources are deployed with this solution. The storage account used for storing scripts or other build artifacts is optional. If chosen, a container will be created called artifacts.
- Azure Compute Gallery
- Resource Providers on the Subscription
- Role Definitions
- Role Assignments
- User-Assigned Managed Identity
- VM Image Definition
Optional:
- Storage Account and artifacts container
- Storage Account Role Assignment for User-Assigned Managed Identity
This solution assumes certain resources have already been deployed to your Azure environment:
Required:
- Subscription
- Virtual Network
To deploy this solution, the principal must have Owner privileges on the Azure subscription.
New-AzDeployment `
-Location '<Azure location>' `
-TemplateFile 'https://raw.githubusercontent.com/jamasten/AVD-CIT-Prereqs/main/solution.json' `
-Verbose
az deployment sub create \
--location '<Azure location>' \
--template-uri 'https://raw.githubusercontent.com/jamasten/AVD-CIT-Prereqs/main/solution.json'
The following will provide you a quick walk-through with a deployment.
Under Instance details:
- Select the appropriate
Subscription
. - Select the appropriate
Region
. - Select
Use existing resource group
if applicable. If not chosen, a resource group will be created for you. - Select
Deploy a storage account for build artifiacts
if you need a storage account created to host custom scripts. The solution will create a container calledartifacts
and set the appropriate permissions for the managed identity.
Under Resource Names:
- Select the name for the
Compute Gallery
that will be created. - Select the name for the
Deployment Script
that will be created. The deployment script is used to help support the deployment of the solution. - Select the name for the
Image Definition
that will be created. - If
Deploy a storage account for build artifacts
was selected, select the name of theStorage Account
that will be created. - Select the name of the
User assigned identity
that will be created.
Click Next.
- Select
Enable custom virtual network
. This is to setup the Virtual Network setup for AIB/CIT Build VMs. - Select the
Virtual Network
. - Select the
Subnet
.
Click Next.
- If desired, select
Supports network acceleration
. - If desired, select
Supports hibernation
. - Under
Security Type
, select the appropriate security features for the VM Image Definition. NOTE: Most environments may requireTrusted Launch
if they are deploying the latest versions of Windows. - Under
Publisher
, select if you're deploying aMicrosoft Windows Desktop
orMicrosoft Windows Server
Operating System. - Under
Offer
, the drop down will differ based on what you chose forPublisher
. As an example, if you're targeting a Windows 11 Multi-Session Operating System with M365 Applications, you will want to useoffice-365
. - Under
SKU
, the drop down will differ based on what you chose forOffer
. As an example, if you're targeting a Windows 11 23H2 Multi-Session Operating System with M365 Applications, you will want to usewin11-23h2-avd-m365
.
Click Next.
Enter the appropriate Tags
for the environment.
Click Next.
Review the options you have selected and click Create
.