summary import { GalleryApplicationUpdate , ComputeManagementClient } from "@msinternal/compute-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function updateASimpleGalleryApplication ( ) { const subscriptionId = "{subscription-id}" ; const resourceGroupName = "myResourceGroup" ; const galleryName = "myGalleryName" ; const galleryApplicationName = "myGalleryApplicationName" ; const galleryApplication = { description : "This is the gallery application description." , eula : "This is the gallery application EULA." , privacyStatementUri : "myPrivacyStatementUri}" , releaseNoteUri : "myReleaseNoteUri" , supportedOSType : "Windows" } ; const credential = new DefaultAzureCredential ( ) ; const client = new ComputeManagementClient ( credential , subscriptionId ) ; const result = await client . galleryApplications . beginUpdateAndWait ( resourceGroupName , galleryName , galleryApplicationName , galleryApplication ) ; console . log ( result ) ; } updateASimpleGalleryApplication ( ) . catch ( console . error ) ;