summary import { ComputeManagementClient } from "@msinternal/compute-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function getAnSshPublicKey ( ) { const subscriptionId = "{subscriptionId}" ; const resourceGroupName = "myResourceGroup" ; const sshPublicKeyName = "mySshPublicKeyName" ; const credential = new DefaultAzureCredential ( ) ; const client = new ComputeManagementClient ( credential , subscriptionId ) ; const result = await client . sshPublicKeys . get ( resourceGroupName , sshPublicKeyName ) ; console . log ( result ) ; } getAnSshPublicKey ( ) . catch ( console . error ) ;