Edit

Share via


Get-AzApiManagementIdentityProviderClientSecret

Get the identity provider client secret.

Syntax

Default (Default)

Get-AzApiManagementIdentityProviderClientSecret
    -Context <PsApiManagementContext>
    -Type <PsApiManagementIdentityProviderType>
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

Description

Get the identity provider client secret.

Examples

Example 1: Get the client secret of AAD Type Identity Provider

$apimContext = New-AzApiManagementContext -ResourceGroupName "Api-Default-WestUS" -ServiceName "contoso"
Get-AzApiManagementIdentityProviderClientSecret -Context $apimContext -Type Aad

Gets the client secret of the Identity Provider Configuration of Azure Active Directory.

Parameters

-Context

Instance of PsApiManagementContext. This parameter is required.

Parameter properties

Type:PsApiManagementContext
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:True
Value from remaining arguments:False

-DefaultProfile

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

Parameter properties

Type:IAzureContextContainer
Default value:None
Supports wildcards:False
DontShow:False
Aliases:AzContext, AzureRmContext, AzureCredential

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Type

Identifier of a Identity Provider. This parameter is required.

Parameter properties

Type:PsApiManagementIdentityProviderType
Default value:None
Accepted values:Facebook, Google, Microsoft, Twitter, Aad, AadB2C
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

PsApiManagementContext

PsApiManagementIdentityProviderType

Outputs

PsApiManagementClientSecret