summary import { NetworkManagementClient } from "@msinternal/network-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function getApplicationGateway ( ) { const subscriptionId = "subid" ; const resourceGroupName = "rg1" ; const applicationGatewayName = "appgw" ; const credential = new DefaultAzureCredential ( ) ; const client = new NetworkManagementClient ( credential , subscriptionId ) ; const result = await client . applicationGateways . get ( resourceGroupName , applicationGatewayName ) ; console . log ( result ) ; } getApplicationGateway ( ) . catch ( console . error ) ;