AccountsOperationsExtensions.RegenerateKey(IAccountsOperations, String, String, KeyName) Method

Definition

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

public static Microsoft.Azure.Management.CognitiveServices.Models.CognitiveServicesAccountKeys 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.CognitiveServicesAccountKeys
<Extension()>
Public Function RegenerateKey (operations As IAccountsOperations, resourceGroupName As String, accountName As String, keyName As KeyName) As CognitiveServicesAccountKeys

Parameters

operations
IAccountsOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group within the user's subscription.

accountName
String

The name of Cognitive Services account.

keyName
KeyName

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

Returns

CognitiveServicesAccountKeys

Applies to