BatchAccountOperationsExtensions.RegenerateKeyAsync 메서드

정의

Batch 계정에 대해 지정된 계정 키를 다시 생성합니다.

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)

매개 변수

operations
IBatchAccountOperations

이 확장 메서드에 대한 작업 그룹입니다.

resourceGroupName
String

Batch 계정을 포함하는 리소스 그룹의 이름입니다.

accountName
String

Batch 계정의 이름입니다.

keyName
AccountKeyType

다시 생성할 계정 키의 유형입니다. 가능한 값은 'Primary', 'Secondary'입니다.

cancellationToken
CancellationToken

취소 토큰입니다.

반환

설명

이 작업은 'SharedKey'를 포함하는 allowedAuthenticationModes가 있는 Batch 계정에만 적용됩니다. Batch 계정에 allowedAuthenticationMode에 'SharedKey'가 없는 경우 클라이언트는 공유 키를 사용하여 인증할 수 없으며 대신 다른 allowedAuthenticationModes를 사용해야 합니다. 이 경우 키를 다시 생성하지 못합니다.

적용 대상