Get-AzCognitiveServicesAccountKey
Hämtar API-nycklarna för ett konto.
Syntax
Get-AzCognitiveServicesAccountKey
[-ResourceGroupName] <String>
[-Name] <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Cmdleten Get-AzCognitiveServicesAccountKey hämtar API-nycklarna för ett etablerat Cognitive Services-konto. Ett Cognitive Services-konto har två API-nycklar: Key1 och Key2. Nycklarna aktiverar interaktion med Cognitive Services-kontoslutpunkten. Använd New-AzCognitiveServicesAccountKey för att återskapa en nyckel.
Exempel
Exempel 1
Get-AzCognitiveServicesAccountKey -ResourceGroupName cognitive-services-resource-group -name myluis
Key1 Key2
---- ----
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Parametrar
-DefaultProfile
Autentiseringsuppgifter, konto, klientorganisation och prenumeration som används för kommunikation med Azure
Typ: | IAzureContextContainer |
Alias: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-Name
Anger namnet på kontot. Den här cmdleten hämtar nycklarna för det här kontot.
Typ: | String |
Alias: | CognitiveServicesAccountName, AccountName |
Position: | 1 |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
-ResourceGroupName
Anger namnet på resursgruppen som kontot har tilldelats.
Typ: | String |
Position: | 0 |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
Indata
Utdata
Relaterade länkar
Azure PowerShell