Aracılığıyla paylaş


BatchAccountOperationsExtensions.RegenerateKey Yöntem

Tanım

Batch hesabı için belirtilen hesap anahtarını yeniden oluşturur.

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

Parametreler

operations
IBatchAccountOperations

Bu uzantı yöntemi için işlem grubu.

resourceGroupName
String

Batch hesabını içeren kaynak grubunun adı.

accountName
String

Batch hesabının adı.

keyName
AccountKeyType

Yeniden oluşturulacak hesap anahtarının türü. Olası değerler şunlardır: 'Birincil', 'İkincil'

Döndürülenler

Açıklamalar

Bu işlem yalnızca 'SharedKey' içeren allowedAuthenticationModes içeren Batch hesapları için geçerlidir. Batch hesabı allowedAuthenticationMode içinde 'SharedKey' içermiyorsa, istemciler kimlik doğrulaması için paylaşılan anahtarları kullanamaz ve bunun yerine başka bir allowedAuthenticationModes kullanmalıdır. Bu durumda anahtarları yeniden oluşturma işlemi başarısız olur.

Şunlara uygulanır