summary import { RestorePoint , ComputeManagementClient } from "@msinternal/compute-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function createARestorePoint ( ) { const subscriptionId = "{subscription-id}" ; const resourceGroupName = "myResourceGroup" ; const restorePointCollectionName = "rpcName" ; const restorePointName = "rpName" ; const parameters = { excludeDisks : [ { id : "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/disk123" } ] } ; const credential = new DefaultAzureCredential ( ) ; const client = new ComputeManagementClient ( credential , subscriptionId ) ; const result = await client . restorePoints . beginCreateAndWait ( resourceGroupName , restorePointCollectionName , restorePointName , parameters ) ; console . log ( result ) ; } createARestorePoint ( ) . catch ( console . error ) ;