summary import { HubIpConfiguration , NetworkManagementClient } from "@msinternal/network-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function virtualHubIPConfigurationPut ( ) { const subscriptionId = "subid" ; const resourceGroupName = "rg1" ; const virtualHubName = "hub1" ; const ipConfigName = "ipconfig1" ; const parameters = { subnet : { id : "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1" } } ; const credential = new DefaultAzureCredential ( ) ; const client = new NetworkManagementClient ( credential , subscriptionId ) ; const result = await client . virtualHubIpConfiguration . beginCreateOrUpdateAndWait ( resourceGroupName , virtualHubName , ipConfigName , parameters ) ; console . log ( result ) ; } virtualHubIPConfigurationPut ( ) . catch ( console . error ) ;