summary import { QueryInboundNatRulePortMappingRequest , NetworkManagementClient } from "@msinternal/network-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function queryInboundNatRulePortMapping ( ) { const subscriptionId = "subid" ; const groupName = "rg1" ; const loadBalancerName = "lb1" ; const backendPoolName = "bp1" ; const parameters = { ipAddress : "10.0.0.4" } ; const credential = new DefaultAzureCredential ( ) ; const client = new NetworkManagementClient ( credential , subscriptionId ) ; const result = await client . loadBalancers . beginListInboundNatRulePortMappingsAndWait ( groupName , loadBalancerName , backendPoolName , parameters ) ; console . log ( result ) ; } queryInboundNatRulePortMapping ( ) . catch ( console . error ) ;