/// <summary> /// Gets the passwordCredentials associated with a service principal. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='objectId'> /// The object ID of the service principal. /// </param> public static IEnumerable <PasswordCredential> ListPasswordCredentials(this IServicePrincipalsOperations operations, string objectId) { return(operations.ListPasswordCredentialsAsync(objectId).GetAwaiter().GetResult()); }