summary import { IpGroup , NetworkManagementClient } from "@msinternal/network-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function createOrUpdateIPGroups ( ) { const subscriptionId = "subId" ; const resourceGroupName = "myResourceGroup" ; const ipGroupsName = "ipGroups1" ; const parameters = { ipAddresses : [ "13.64.39.16/32" , "40.74.146.80/31" , "40.74.147.32/28" ] , location : "West US" , tags : { key1 : "value1" } } ; const credential = new DefaultAzureCredential ( ) ; const client = new NetworkManagementClient ( credential , subscriptionId ) ; const result = await client . ipGroups . beginCreateOrUpdateAndWait ( resourceGroupName , ipGroupsName , parameters ) ; console . log ( result ) ; } createOrUpdateIPGroups ( ) . catch ( console . error ) ;