summary import { ComputeManagementClient } from "@msinternal/compute-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function getCloudServiceOSVersion ( ) { const subscriptionId = "{subscription-id}" ; const location = "westus2" ; const osVersionName = "WA-GUEST-OS-3.90_202010-02" ; const credential = new DefaultAzureCredential ( ) ; const client = new ComputeManagementClient ( credential , subscriptionId ) ; const result = await client . cloudServiceOperatingSystems . getOSVersion ( location , osVersionName ) ; console . log ( result ) ; } getCloudServiceOSVersion ( ) . catch ( console . error ) ;