Delen via


BatchAccountOperationsExtensions.GetKeys Methode

Definitie

Hiermee haalt u de accountsleutels voor het opgegeven Batch-account op.

public static Microsoft.Azure.Management.Batch.Models.BatchAccountKeys GetKeys (this Microsoft.Azure.Management.Batch.IBatchAccountOperations operations, string resourceGroupName, string accountName);
static member GetKeys : Microsoft.Azure.Management.Batch.IBatchAccountOperations * string * string -> Microsoft.Azure.Management.Batch.Models.BatchAccountKeys
<Extension()>
Public Function GetKeys (operations As IBatchAccountOperations, resourceGroupName As String, accountName As String) As 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.

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 ze in plaats daarvan een andere allowedAuthenticationModes gebruiken. In dit geval mislukt het ophalen van de sleutels.

Van toepassing op