AccountOperationsExtensions.RegenerateKeyAsync Method (IAccountOperations, String, String, BatchAccountRegenerateKeyParameters, CancellationToken)
Regenerates the specified account key for the specified Batch account.
Namespace: Microsoft.Azure.Management.Batch
Assembly: Microsoft.Azure.Management.Batch (in Microsoft.Azure.Management.Batch.dll)
Syntax
public static Task<BatchAccountRegenerateKeyResult> RegenerateKeyAsync(
this IAccountOperations operations,
string resourceGroupName,
string accountName,
BatchAccountRegenerateKeyParameters parameters,
CancellationToken cancellationToken = null
)
public:
[ExtensionAttribute]
static Task<BatchAccountRegenerateKeyResult^>^ RegenerateKeyAsync(
IAccountOperations^ operations,
String^ resourceGroupName,
String^ accountName,
BatchAccountRegenerateKeyParameters^ parameters,
CancellationToken cancellationToken = null
)
static member RegenerateKeyAsync :
operations:IAccountOperations *
resourceGroupName:string *
accountName:string *
parameters:BatchAccountRegenerateKeyParameters *
cancellationToken:CancellationToken = null -> Task<BatchAccountRegenerateKeyResult>
<ExtensionAttribute>
Public Shared Function RegenerateKeyAsync (
operations As IAccountOperations,
resourceGroupName As String,
accountName As String,
parameters As BatchAccountRegenerateKeyParameters,
cancellationToken As CancellationToken
) As Task(Of BatchAccountRegenerateKeyResult)
Parameters
operations
Type: Microsoft.Azure.Management.Batch.IAccountOperationsThe operations group for this extension method.
resourceGroupName
Type: System.StringThe name of the resource group that contains the Batch account.
accountName
Type: System.StringThe name of the account.
parameters
Type: Microsoft.Azure.Management.Batch.Models.BatchAccountRegenerateKeyParametersThe type of key to regenerate.
cancellationToken
Type: System.Threading.CancellationTokenThe cancellation token.
Return Value
Type: System.Threading.Tasks.Task<BatchAccountRegenerateKeyResult>
See Also
AccountOperationsExtensions Class
Microsoft.Azure.Management.Batch Namespace
Return to top