summary import { PublicIPPrefix , NetworkManagementClient } from "@msinternal/network-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function createPublicIPPrefixDefaults ( ) { const subscriptionId = "subid" ; const resourceGroupName = "rg1" ; const publicIpPrefixName = "test-ipprefix" ; const parameters = { location : "westus" , prefixLength : 30 , sku : { name : "Standard" } } ; const credential = new DefaultAzureCredential ( ) ; const client = new NetworkManagementClient ( credential , subscriptionId ) ; const result = await client . publicIPPrefixes . beginCreateOrUpdateAndWait ( resourceGroupName , publicIpPrefixName , parameters ) ; console . log ( result ) ; } createPublicIPPrefixDefaults ( ) . catch ( console . error ) ;