summary import { NetworkProfile , NetworkManagementClient } from "@msinternal/network-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function createNetworkProfileDefaults ( ) { const subscriptionId = "subid" ; const resourceGroupName = "rg1" ; const networkProfileName = "networkProfile1" ; const parameters = { containerNetworkInterfaceConfigurations : [ { name : "eth1" , ipConfigurations : [ { name : "ipconfig1" , subnet : { id : "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/networkProfileVnet/subnets/networkProfileSubnet1" } } ] } ] , location : "westus" } ; const credential = new DefaultAzureCredential ( ) ; const client = new NetworkManagementClient ( credential , subscriptionId ) ; const result = await client . networkProfiles . createOrUpdate ( resourceGroupName , networkProfileName , parameters ) ; console . log ( result ) ; } createNetworkProfileDefaults ( ) . catch ( console . error ) ;