/// <summary> /// Deletes a service principal from the directory. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='objectId'> /// The object ID of the service principal to delete. /// </param> public static void Delete(this IServicePrincipalsOperations operations, string objectId) { operations.DeleteAsync(objectId).GetAwaiter().GetResult(); }