/// <summary>
 /// Updates a service principal in 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>
 /// <param name='parameters'>
 /// Parameters to update a service principal.
 /// </param>
 public static void Update(this IServicePrincipalsOperations operations, string objectId, ServicePrincipalUpdateParameters parameters)
 {
     operations.UpdateAsync(objectId, parameters).GetAwaiter().GetResult();
 }