summary import { SharingUpdate , ComputeManagementClient } from "@msinternal/compute-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function resetSharingProfileOfAGallery ( ) { const subscriptionId = "{subscription-id}" ; const resourceGroupName = "myResourceGroup" ; const galleryName = "myGalleryName" ; const sharingUpdate = { operationType : "Reset" } ; const credential = new DefaultAzureCredential ( ) ; const client = new ComputeManagementClient ( credential , subscriptionId ) ; const result = await client . gallerySharingProfile . beginUpdateAndWait ( resourceGroupName , galleryName , sharingUpdate ) ; console . log ( result ) ; } resetSharingProfileOfAGallery ( ) . catch ( console . error ) ;