次の方法で共有


Get-AzCognitiveServicesAccountKey

アカウントの API キーを取得します。

構文

Default (既定)

Get-AzCognitiveServicesAccountKey
    [-ResourceGroupName] <String>
    [-Name] <String>
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

説明

Get-AzCognitiveServicesAccountKey コマンドレットは、プロビジョニングされた Cognitive Services アカウントの API キーを取得します。 Cognitive Services アカウントには、Key1 と Key2 の 2 つの API キーがあります。 キーを使用すると、Cognitive Services アカウント エンドポイントとの対話が可能になります。 New-AzCognitiveServicesAccountKey を使用してキーを再生成します。

例 1

Get-AzCognitiveServicesAccountKey -ResourceGroupName cognitive-services-resource-group -name myluis
Key1                             Key2
----                             ----
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

パラメーター

-DefaultProfile

Azure との通信に使用される資格情報、アカウント、テナント、サブスクリプション

パラメーターのプロパティ

型:IAzureContextContainer
規定値:None
ワイルドカードのサポート:False
DontShow:False
Aliases:AzContext, AzureRmContext, AzureCredential

パラメーター セット

(All)
配置:Named
必須:False
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

-Name

アカウントの名前を指定します。 このコマンドレットは、このアカウントのキーを取得します。

パラメーターのプロパティ

型:String
規定値:None
ワイルドカードのサポート:False
DontShow:False
Aliases:CognitiveServicesAccountName, アカウント名

パラメーター セット

(All)
配置:1
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:True
残りの引数からの値:False

-ResourceGroupName

アカウントが割り当てられているリソース グループの名前を指定します。

パラメーターのプロパティ

型:String
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

(All)
配置:0
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:True
残りの引数からの値:False

CommonParameters

このコマンドレットでは、一般的なパラメーター -Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction、-WarningVariable の各パラメーターがサポートされています。 詳細については、about_CommonParametersを参照してください。

入力

String

出力

PSCognitiveServicesAccountKeys