你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Get-AzApiManagementOpenIdConnectProviderClientSecret
获取 OpenID Connect 提供程序客户端密码。
语法
Get-AzApiManagementOpenIdConnectProviderClientSecret
-Context <PsApiManagementContext>
-OpenIdConnectProviderId <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
说明
获取 OpenID Connect 提供程序客户端密码。
示例
示例 1:使用 ID 获取提供程序客户端密码
$apimContext = New-AzApiManagementContext -ResourceGroupName "Api-Default-WestUS" -ServiceName "contoso"
Get-AzApiManagementOpenIdConnectProviderClientSecret -Context $apimContext -OpenIdConnectProviderId "OICProvider01"
此命令获取 ID 为 OICProvider01 的提供程序的客户端机密。
参数
-Context
PsApiManagementContext 的实例。 此参数是必需的。
类型: | PsApiManagementContext |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-DefaultProfile
用于与 Azure 通信的凭据、帐户、租户和订阅。
类型: | IAzureContextContainer |
别名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-OpenIdConnectProviderId
OpenID Connect 提供程序的标识符。 此参数是必需的。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |