summary import { NetworkManagementClient } from "@msinternal/network-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function getAzureWebCategoryByName ( ) { const subscriptionId = "4de8428a-4a92-4cea-90ff-b47128b8cab8" ; const name = "Arts" ; const credential = new DefaultAzureCredential ( ) ; const client = new NetworkManagementClient ( credential , subscriptionId ) ; const result = await client . webCategories . get ( name ) ; console . log ( result ) ; } getAzureWebCategoryByName ( ) . catch ( console . error ) ;