Get-AzApiManagementSubscriptionKey
サブスクリプション キーを取得します。
構文
Get-AzApiManagementSubscriptionKey
-Context <PsApiManagementContext>
-SubscriptionId <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
説明
Get-AzApiManagementSubscriptionKey コマンドレットは、指定されたサブスクリプションのキーを取得します。
例
例 1: 指定した ID を持つサブスクリプション キーを取得する
$apimContext = New-AzApiManagementContext -ResourceGroupName "Api-Default-East-US" -ServiceName "contoso"
Get-AzApiManagementSubscriptionKey -Context $apimContext -SubscriptionId "0123456789"
PrimaryKey : 5e48532634114fe999a6979ce0d63a64
SecondaryKey : 0a8efaf85a664aa0a412241015c7c8f6
このコマンドは、ID でサブスクリプションを取得します。
パラメーター
-Context
PsApiManagementContext オブジェクトを指定します。
Type: | PsApiManagementContext |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-DefaultProfile
Azure との通信のために使用される資格情報、アカウント、テナント、サブスクリプションです。
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SubscriptionId
サブスクリプション識別子を指定します。 指定した場合、このコマンドレットは識別子によってサブスクリプションを検索します。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
入力
出力
PsApiManagementSubscriptionKey