summary import { ComputeManagementClient } from "@msinternal/compute-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function getADedicatedHost ( ) { const subscriptionId = "{subscriptionId}" ; const resourceGroupName = "myResourceGroup" ; const hostGroupName = "myDedicatedHostGroup" ; const hostName = "myHost" ; const credential = new DefaultAzureCredential ( ) ; const client = new ComputeManagementClient ( credential , subscriptionId ) ; const result = await client . dedicatedHosts . get ( resourceGroupName , hostGroupName , hostName ) ; console . log ( result ) ; } getADedicatedHost ( ) . catch ( console . error ) ;