summary import { NetworkManagementClient } from "@msinternal/network-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function getCloudServiceNetworkInterface ( ) { const subscriptionId = "subid" ; const resourceGroupName = "rg1" ; const cloudServiceName = "cs1" ; const roleInstanceName = "TestVMRole_IN_0" ; const networkInterfaceName = "nic1" ; const credential = new DefaultAzureCredential ( ) ; const client = new NetworkManagementClient ( credential , subscriptionId ) ; const result = await client . networkInterfaces . getCloudServiceNetworkInterface ( resourceGroupName , cloudServiceName , roleInstanceName , networkInterfaceName ) ; console . log ( result ) ; } getCloudServiceNetworkInterface ( ) . catch ( console . error ) ;