summary import { Disk , ComputeManagementClient } from "@msinternal/compute-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function createAnEmptyManagedDisk ( ) { const subscriptionId = "{subscription-id}" ; const resourceGroupName = "myResourceGroup" ; const diskName = "myDisk" ; const disk = { creationData : { createOption : "Empty" } , diskSizeGB : 200 , location : "West US" } ; const credential = new DefaultAzureCredential ( ) ; const client = new ComputeManagementClient ( credential , subscriptionId ) ; const result = await client . disks . beginCreateOrUpdateAndWait ( resourceGroupName , diskName , disk ) ; console . log ( result ) ; } createAnEmptyManagedDisk ( ) . catch ( console . error ) ;