summary import { PublicIPAddress , NetworkManagementClient } from "@msinternal/network-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function createPublicIPAddressAllocationMethod ( ) { const subscriptionId = "subid" ; const resourceGroupName = "rg1" ; const publicIpAddressName = "test-ip" ; const parameters = { idleTimeoutInMinutes : 10 , location : "eastus" , publicIPAddressVersion : "IPv4" , publicIPAllocationMethod : "Static" , sku : { name : "Standard" , tier : "Global" } } ; const credential = new DefaultAzureCredential ( ) ; const client = new NetworkManagementClient ( credential , subscriptionId ) ; const result = await client . publicIPAddresses . beginCreateOrUpdateAndWait ( resourceGroupName , publicIpAddressName , parameters ) ; console . log ( result ) ; } createPublicIPAddressAllocationMethod ( ) . catch ( console . error ) ;