question

SenhorDolas-2197 avatar image
0 Votes"
SenhorDolas-2197 asked Prrudram-MSFT commented

How to use json files and Azure Image builder

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

azure-virtual-machines-imagesazure-dev-tool-integrations
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers