Get-AzApiManagementOpenIdConnectProviderClientSecret

Gets OpenID Connect provider client secret.

Syntax

Get-AzApiManagementOpenIdConnectProviderClientSecret
   -Context <PsApiManagementContext>
   -OpenIdConnectProviderId <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

Gets OpenID Connect provider client secret.

Examples

Example 1: Get a provider client secret by using an ID

$apimContext = New-AzApiManagementContext -ResourceGroupName "Api-Default-WestUS" -ServiceName "contoso"
Get-AzApiManagementOpenIdConnectProviderClientSecret -Context $apimContext -OpenIdConnectProviderId "OICProvider01"

This command gets a client secret of the provider that has the ID OICProvider01.

Parameters

-Context

Instance of PsApiManagementContext. This parameter is required.

Type:PsApiManagementContext
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-OpenIdConnectProviderId

Identifier of a OpenID Connect Provider. This parameter is required.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

Inputs

PsApiManagementContext

String

Outputs

PsApiManagementClientSecret