다음을 통해 공유


BatchAccountOperationsExtensions.RegenerateKey 메서드

정의

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

public static Microsoft.Azure.Management.Batch.Models.BatchAccountKeys RegenerateKey (this Microsoft.Azure.Management.Batch.IBatchAccountOperations operations, string resourceGroupName, string accountName, Microsoft.Azure.Management.Batch.Models.AccountKeyType keyName);
static member RegenerateKey : Microsoft.Azure.Management.Batch.IBatchAccountOperations * string * string * Microsoft.Azure.Management.Batch.Models.AccountKeyType -> Microsoft.Azure.Management.Batch.Models.BatchAccountKeys
<Extension()>
Public Function RegenerateKey (operations As IBatchAccountOperations, resourceGroupName As String, accountName As String, keyName As AccountKeyType) As BatchAccountKeys

매개 변수

operations
IBatchAccountOperations

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

resourceGroupName
String

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

accountName
String

Batch 계정의 이름입니다.

keyName
AccountKeyType

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

반환

설명

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

적용 대상