共用方式為


ContainerServiceManagedClusterResource.ResetServicePrincipalProfileAsync Method

Definition

This action cannot be performed on a cluster that is not using a service principal

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/resetServicePrincipalProfile
  • Operation Id: ManagedClusters_ResetServicePrincipalProfile
  • Default Api Version: 2023-10-01
  • Resource: ContainerServiceManagedClusterResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation> ResetServicePrincipalProfileAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.ContainerService.Models.ManagedClusterServicePrincipalProfile managedClusterServicePrincipalProfile, System.Threading.CancellationToken cancellationToken = default);
abstract member ResetServicePrincipalProfileAsync : Azure.WaitUntil * Azure.ResourceManager.ContainerService.Models.ManagedClusterServicePrincipalProfile * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation>
override this.ResetServicePrincipalProfileAsync : Azure.WaitUntil * Azure.ResourceManager.ContainerService.Models.ManagedClusterServicePrincipalProfile * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation>
Public Overridable Function ResetServicePrincipalProfileAsync (waitUntil As WaitUntil, managedClusterServicePrincipalProfile As ManagedClusterServicePrincipalProfile, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation)

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

managedClusterServicePrincipalProfile
ManagedClusterServicePrincipalProfile

The service principal profile to set on the managed cluster.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

managedClusterServicePrincipalProfile is null.

Applies to