summary import { KeyVaultManagementClient } from "@msinternal/keyvault-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function getAKey ( ) { const subscriptionId = "00000000-0000-0000-0000-000000000000" ; const resourceGroupName = "sample-group" ; const vaultName = "sample-vault-name" ; const keyName = "sample-key-name" ; const credential = new DefaultAzureCredential ( ) ; const client = new KeyVaultManagementClient ( credential , subscriptionId ) ; const result = await client . keys . get ( resourceGroupName , vaultName , keyName ) ; console . log ( result ) ; } getAKey ( ) . catch ( console . error ) ;