summary import { ProximityPlacementGroup , ComputeManagementClient } from "@msinternal/compute-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function createOrUpdateAProximityPlacementGroup ( ) { const subscriptionId = "{subscription-id}" ; const resourceGroupName = "myResourceGroup" ; const proximityPlacementGroupName = "myProximityPlacementGroup" ; const parameters = { location : "westus" , proximityPlacementGroupType : "Standard" } ; const credential = new DefaultAzureCredential ( ) ; const client = new ComputeManagementClient ( credential , subscriptionId ) ; const result = await client . proximityPlacementGroups . createOrUpdate ( resourceGroupName , proximityPlacementGroupName , parameters ) ; console . log ( result ) ; } createOrUpdateAProximityPlacementGroup ( ) . catch ( console . error ) ;