summary import { GalleryImageVersionUpdate , ComputeManagementClient } from "@msinternal/compute-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function updateASimpleGalleryImageVersionWithoutSourceId ( ) { const subscriptionId = "{subscription-id}" ; const resourceGroupName = "myResourceGroup" ; const galleryName = "myGalleryName" ; const galleryImageName = "myGalleryImageName" ; const galleryImageVersionName = "1.0.0" ; const galleryImageVersion = { publishingProfile : { targetRegions : [ { name : "West US" , regionalReplicaCount : 1 } , { name : "East US" , regionalReplicaCount : 2 , storageAccountType : "Standard_ZRS" } ] } , storageProfile : { } } ; const credential = new DefaultAzureCredential ( ) ; const client = new ComputeManagementClient ( credential , subscriptionId ) ; const result = await client . galleryImageVersions . beginUpdateAndWait ( resourceGroupName , galleryName , galleryImageName , galleryImageVersionName , galleryImageVersion ) ; console . log ( result ) ; } updateASimpleGalleryImageVersionWithoutSourceId ( ) . catch ( console . error ) ;