다음을 통해 공유


AccountsOperationsExtensions.RegenerateKey Method

Definition

Regenerates the specified account key for the specified Cognitive Services account.

public static Microsoft.Azure.Management.CognitiveServices.Models.ApiKeys RegenerateKey (this Microsoft.Azure.Management.CognitiveServices.IAccountsOperations operations, string resourceGroupName, string accountName, Microsoft.Azure.Management.CognitiveServices.Models.KeyName keyName);
static member RegenerateKey : Microsoft.Azure.Management.CognitiveServices.IAccountsOperations * string * string * Microsoft.Azure.Management.CognitiveServices.Models.KeyName -> Microsoft.Azure.Management.CognitiveServices.Models.ApiKeys
<Extension()>
Public Function RegenerateKey (operations As IAccountsOperations, resourceGroupName As String, accountName As String, keyName As KeyName) As ApiKeys

Parameters

operations
IAccountsOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group. The name is case insensitive.

accountName
String

The name of Cognitive Services account.

keyName
KeyName

key name to generate (Key1|Key2). Possible values include: 'Key1', 'Key2'

Returns

Applies to