IAgentRegistrationOperation.RegenerateKeyAsync(String, String, AgentRegistrationRegenerateKeyParameter, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.