Share via


BatchClient.RegenerateKeys(String, String, AccountKeyType) Method

Definition

Generates new key for the Batch account

public virtual Microsoft.Azure.Commands.Batch.BatchAccountContext RegenerateKeys (string resourceGroupName, string accountName, Microsoft.Azure.Management.Batch.Models.AccountKeyType keyType);
abstract member RegenerateKeys : string * string * Microsoft.Azure.Management.Batch.Models.AccountKeyType -> Microsoft.Azure.Commands.Batch.BatchAccountContext
override this.RegenerateKeys : string * string * Microsoft.Azure.Management.Batch.Models.AccountKeyType -> Microsoft.Azure.Commands.Batch.BatchAccountContext
Public Overridable Function RegenerateKeys (resourceGroupName As String, accountName As String, keyType As AccountKeyType) As BatchAccountContext

Parameters

resourceGroupName
String

The name of the resource group the account is under. If unspecified, it will be looked up.

accountName
String

The account name

keyType
AccountKeyType

The type of key to regenerate

Returns

The BatchAccountContext object with the regenerated keys

Applies to