public virtual async Task <Response> UpdateAsync(string objectId, ServicePrincipalBase parameters, CancellationToken cancellationToken = default)
 {
     using var scope = _clientDiagnostics.CreateScope("ServicePrincipalsOperations.Update");
     scope.Start();
     try
     {
         return(await RestClient.UpdateAsync(objectId, parameters, cancellationToken).ConfigureAwait(false));
     }
     catch (Exception e)
     {
         scope.Failed(e);
         throw;
     }
 }
 public virtual Response Update(string objectId, ServicePrincipalBase parameters, CancellationToken cancellationToken = default)
 {
     using var scope = _clientDiagnostics.CreateScope("ServicePrincipalsOperations.Update");
     scope.Start();
     try
     {
         return(RestClient.Update(objectId, parameters, cancellationToken));
     }
     catch (Exception e)
     {
         scope.Failed(e);
         throw;
     }
 }