summary import { ComputeManagementClient } from "@msinternal/compute-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function getAGallery ( ) { const subscriptionId = "{subscription-id}" ; const location = "myLocation" ; const publicGalleryName = "publicGalleryName" ; const galleryImageName = "myGalleryImageName" ; const galleryImageVersionName = "myGalleryImageVersionName" ; const credential = new DefaultAzureCredential ( ) ; const client = new ComputeManagementClient ( credential , subscriptionId ) ; const result = await client . communityGalleryImageVersions . get ( location , publicGalleryName , galleryImageName , galleryImageVersionName ) ; console . log ( result ) ; } getAGallery ( ) . catch ( console . error ) ;