IAgentRegistrationOperation.RegenerateKeyAsync(String, String, AgentRegistrationRegenerateKeyParameter, CancellationToken) Method

Definition

Regenerate a primary or secondary agent registration key (see http://aka.ms/azureautomationsdk/agentregistrationoperations for more information)

public System.Threading.Tasks.Task<Microsoft.Azure.Management.Automation.Models.AgentRegistrationRegenerateKeyResponse> RegenerateKeyAsync (string resourceGroupName, string automationAccount, Microsoft.Azure.Management.Automation.Models.AgentRegistrationRegenerateKeyParameter keyName, System.Threading.CancellationToken cancellationToken);
abstract member RegenerateKeyAsync : string * string * Microsoft.Azure.Management.Automation.Models.AgentRegistrationRegenerateKeyParameter * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Automation.Models.AgentRegistrationRegenerateKeyResponse>

Parameters

resourceGroupName
System.String

The name of the resource group

automationAccount
System.String

The automation account name.

keyName
AgentRegistrationRegenerateKeyParameter

The name of the agent registration key to be regenerated

cancellationToken
System.Threading.CancellationToken

Cancellation token.

Returns

System.Threading.Tasks.Task<AgentRegistrationRegenerateKeyResponse>

The response model for the agent registration key regenerate operation.

Applies to