summary import { WebSiteManagementClient } from "@msinternal/web-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function getsAnOperationInASubscriptionAndGivenRegion ( ) { const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345" ; const location = "West US" ; const operationId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab5d5" ; const credential = new DefaultAzureCredential ( ) ; const client = new WebSiteManagementClient ( credential , subscriptionId ) ; const result = await client . global . getSubscriptionOperationWithAsyncResponse ( location , operationId ) ; console . log ( result ) ; } getsAnOperationInASubscriptionAndGivenRegion ( ) . catch ( console . error ) ;