summary import { IpAllocation , NetworkManagementClient } from "@msinternal/network-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function createIPAllocation ( ) { const subscriptionId = "subid" ; const resourceGroupName = "rg1" ; const ipAllocationName = "test-ipallocation" ; const parameters = { typePropertiesType : "Hypernet" , allocationTags : { vNetID : "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/HypernetVnet1" } , location : "centraluseuap" , prefix : "3.2.5.0/24" } ; const credential = new DefaultAzureCredential ( ) ; const client = new NetworkManagementClient ( credential , subscriptionId ) ; const result = await client . ipAllocations . beginCreateOrUpdateAndWait ( resourceGroupName , ipAllocationName , parameters ) ; console . log ( result ) ; } createIPAllocation ( ) . catch ( console . error ) ;