Azure Image Builder - Create and Deploy an Image Template

preview_player
Показать описание
This is part two of a three-part series on Azure Image Builder. In this video, we create and deploy and Azure Image Builder template that adds AzCopy to the using PoweShell. After that, we build an image from the template and use it to create a new Azure Virtual Machine. This example uses Windows 10 Multi-user as the source of the image build.

Zero to Hero with Windows Virtual Desktop
GitHub Page
ARM JSON formatting
Рекомендации по теме
Комментарии
Автор

3:21 Well, if ultimately Image Builder will run sysprep, then what is the advantage ? Windows like you said has a limitation on running limited number of sysprep on images. Imagine i start with a marketplace image, use image builder to add customization and create a managed image . After few months i pick the managed image, do more customization and use image builder to create a second version of that image. If i keep on doing this at some point i will not be able to sysprep the image anymore. ??

lionheart
Автор

can we start using winget in these scripts to install apps?

alanyousif
Автор

20h1-evd is no longer available. I'm using 20h2-evd instead.

rayhallquist
Автор

Adding info - if you deploy the image builder template...An image Template is created in your portal.

simplymanoj
Автор

Hi Travis! Are the double backslashes only required when using inline script or also in the script files provided using script uri?

tommi-hovi
Автор

The newer version of AzureRM module introduced a problem that the version used in the video did not have.

The command

New-AzVM -ResourceGroupName $imageResourceGroup -Image $imageId -Name dwsWinVM01 -Credential $Cred -size Standard_D2_v2 -PublicIpSku Standard

creates a VM without a public IP address, which is worthless.

The az cli will create a VM from the previously created image with

az vm create \
--resource-group $aibResourceGroup \
--name WinVM01 \
--admin-username admin_user \
--admin-password Admin_1234567890 \
--image $imageId \
--location $location

deanschulze
Автор

I'm getting this error (Powershell 7.3)

8 | $ArtifactId = (Get-AzImageBuilderRunOutput -ImageTemplateName $imageT …
|
| The term 'Get-AzImageBuilderRunOutput' is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling of the name, or if a path was

I've tried

Install-Module AzureRM

But still get the same error.

Edit:

I was able to fix this by manually giving the imageId:



Edit:

The new command is



The New-AzVM creates a vm without a public IP address, though. See the az cli create example in my other comment for a work around.

deanschulze
Автор

Great video, but you could take yourself out of the video and put the focus on what you do, and not what you look like with your hand gestures.

benjamingerber