summary import { NetworkManagementClient } from "@msinternal/network-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function defaultSecurityRuleGet ( ) { const subscriptionId = "subid" ; const resourceGroupName = "testrg" ; const networkSecurityGroupName = "nsg1" ; const defaultSecurityRuleName = "AllowVnetInBound" ; const credential = new DefaultAzureCredential ( ) ; const client = new NetworkManagementClient ( credential , subscriptionId ) ; const result = await client . defaultSecurityRules . get ( resourceGroupName , networkSecurityGroupName , defaultSecurityRuleName ) ; console . log ( result ) ; } defaultSecurityRuleGet ( ) . catch ( console . error ) ;