summary import { ComputeManagementClient } from "@msinternal/compute-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function getCloudServiceUpdateDomain ( ) { const subscriptionId = "{subscription-id}" ; const resourceGroupName = "ConstosoRG" ; const cloudServiceName = "{cs-name}" ; const updateDomain = 1 ; const credential = new DefaultAzureCredential ( ) ; const client = new ComputeManagementClient ( credential , subscriptionId ) ; const result = await client . cloudServicesUpdateDomain . getUpdateDomain ( resourceGroupName , cloudServiceName , updateDomain ) ; console . log ( result ) ; } getCloudServiceUpdateDomain ( ) . catch ( console . error ) ;