summary import { NetworkManagementClient } from "@msinternal/network-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function deleteTapConfiguration ( ) { const subscriptionId = "subid" ; const resourceGroupName = "rg1" ; const networkInterfaceName = "test-networkinterface" ; const tapConfigurationName = "test-tapconfiguration" ; const credential = new DefaultAzureCredential ( ) ; const client = new NetworkManagementClient ( credential , subscriptionId ) ; const result = await client . networkInterfaceTapConfigurations . beginDeleteAndWait ( resourceGroupName , networkInterfaceName , tapConfigurationName ) ; console . log ( result ) ; } deleteTapConfiguration ( ) . catch ( console . error ) ;