2.9 KiB
external help file | Module Name | online version | schema |
---|---|---|---|
Microsoft.Open.MS.GraphV10.PowerShell.dll-Help.xml | AzureAD | 2.0.0 |
New-AzureADMSIdentityProvider
SYNOPSIS
This cmdlet is used to configure a new identity provider in the directory.
SYNTAX
New-AzureADMSIdentityProvider -Type <String> [-Name <String>] -ClientId <String> -ClientSecret <String>
[<CommonParameters>]
DESCRIPTION
This cmdlet is used to configure an identity provider in the directory. Adding an identity provider will allow users to sign up for or sign into applications secured by Azure AD B2C using the identity provider.
Configuring an identity provider in your Azure AD tenant also enables future B2B guest scenarios. For example, an organization has resources in Office 365 that needs to be shared with a Gmail user. The Gmail user will use their Google account credentials to authenticate and access the documents.
The current set of identity providers can be Microsoft, Google, Facebook, Amazon, or LinkedIn.
EXAMPLES
Example 1
PS C:\> New-AzureADMSIdentityProvider -Type LinkedIn -Name LinkedInName -ClientId LinkedInAppClientId -ClientSecret LinkedInAppClientSecret
This example adds a LinkedIn identity provider.
PARAMETERS
-ClientId
The client ID for the application. This is the client ID obtained when registering the application with the identity provider.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ClientSecret
The client secret for the application. This is the client secret obtained when registering the application with the identity provider.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Name
The display name of the identity provider.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Type
The identity provider type. It must be one of the following values: Microsoft, Google, Facebook, Amazon, or LinkedIn.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
NOTES
See the migration guide for New-AzureADMSIdentityProvider to the Microsoft Graph PowerShell.