Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,196 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi
I have been using Azure Image Builder agent from DevOps to deploy my images however my region UKSouth is not available on the agent and this delays the process as it has to copy from NorthEurope into UKsouth region.
I know I can use azimagebuilder commands and the scripts that Jason made a long time agon but is there a way to reproduce my sets from the agent gui builder into json?
I cannot figure out a way
This is my yaml:
> steps:
- task: AzureImageBuilder.devOps-task-for-azure-image-builder.custom-build-release-task.AzureImageBuilderTask@1
displayName: 'Azure VM Image Builder Task'
inputs:
managedIdentity: '/subscriptions/cxxx/resourceGroups/wvdImageDemoRg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/aibIdentity1xxx'
imageSource: marketplace
baseImagePubOfferSku: 'MicrosoftWindowsDesktop:office-365:win10-21h2-avd-m365'
provisioner: powershell
windowsUpdateProvisioner: true
runElevated: true
runAsSystem: true
packagePath: '$(System.DefaultWorkingDirectory)/_xGEN_Repo'
inlineScript: |
& 'C:\buildartifacts\_xGEN_Repo\Main_Script.ps1'
& 'C:\buildartifacts\__xGEN_Repo\CS_Install_Choco.ps1'
& 'C:\buildartifacts\__xGEN_Repo\CS_Install_Chocolatey_Apps.ps1'
& 'C:\buildartifacts\__xGEN_Repo\CS_Install_LanguagePack.ps1'
& 'C:\buildartifacts\__xGEN_Repo\CS_Install_MSTeams.ps1'
& 'C:\buildartifacts\__xGEN_Repo\CS_Install_Sophos.ps1'
& 'C:\buildartifacts\__xGEN_Repo\CS_Virtual-Desktop-Optimization-Tool-main_v3.ps1'
storageAccountName: xxwvdimagedemostoracc
distributeType: sig
galleryImageId: '/subscriptions/cxxx/resourceGroups/wvdImageDemoRg/providers/Microsoft.Compute/galleries/myaibsig01/images/win10wvd'
replicationRegions: uksouth
ibSubscription: 'my subs (cxxx)'
ibAzureResourceGroup: wvdImageDemoRg
ibLocation: northeurope
vmSize: 'Standard_D2_v5'
Any help is appreciated.
Thanks M