/// <summary> /// Update the keyCredentials associated with a service principal. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='objectId'> /// The object ID for which to get service principal information. /// </param> /// <param name='parameters'> /// Parameters to update the keyCredentials of an existing service principal. /// </param> public static void UpdateKeyCredentials(this IServicePrincipalsOperations operations, string objectId, KeyCredentialsUpdateParameters parameters) { operations.UpdateKeyCredentialsAsync(objectId, parameters).GetAwaiter().GetResult(); }