BatchAccountOperationsExtensions.RegenerateKeyAsync Methode

Definitie

Hiermee wordt de opgegeven accountsleutel voor het Batch-account opnieuw gegenereerd.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Batch.Models.BatchAccountKeys> RegenerateKeyAsync (this Microsoft.Azure.Management.Batch.IBatchAccountOperations operations, string resourceGroupName, string accountName, Microsoft.Azure.Management.Batch.Models.AccountKeyType keyName, System.Threading.CancellationToken cancellationToken = default);
static member RegenerateKeyAsync : Microsoft.Azure.Management.Batch.IBatchAccountOperations * string * string * Microsoft.Azure.Management.Batch.Models.AccountKeyType * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Batch.Models.BatchAccountKeys>
<Extension()>
Public Function RegenerateKeyAsync (operations As IBatchAccountOperations, resourceGroupName As String, accountName As String, keyName As AccountKeyType, Optional cancellationToken As CancellationToken = Nothing) As Task(Of BatchAccountKeys)

Parameters

operations
IBatchAccountOperations

De bewerkingsgroep voor deze extensiemethode.

resourceGroupName
String

De naam van de resourcegroep die het Batch-account bevat.

accountName
String

De naam van het Batch-account.

keyName
AccountKeyType

Het type accountsleutel dat opnieuw moet worden gegenereerd. Mogelijke waarden zijn: 'Primair', 'Secundair'

cancellationToken
CancellationToken

Het annuleringstoken.

Retouren

Opmerkingen

Deze bewerking is alleen van toepassing op Batch-accounts met allowedAuthenticationModes die 'SharedKey' bevatten. Als het Batch-account geen SharedKey bevat in de allowedAuthenticationMode, kunnen clients geen gedeelde sleutels gebruiken om te verifiëren en moeten in plaats daarvan een andere allowedAuthenticationModes gebruiken. In dit geval mislukt het opnieuw genereren van de sleutels.

Van toepassing op