Set-MgmtSvcIdentityProviderSettings

Configures an administrator authentication site or a tenant authentication site to use AD FS.

Syntax

Set-MgmtSvcIdentityProviderSettings [-Target] <String[]> [-ConfigureSecondary] [-Confirm]
 [-ConnectionString <String>] [-DisableCertificateValidation] [-ManagementConnectionString <String>]
 [-MetadataEndpoint <Uri>] [-MetadataFile <String>] [-PortalConnectionString <String>] [-WhatIf]
 [<CommonParameters>]
Set-MgmtSvcIdentityProviderSettings [-Target] <String[]> [-ConfigureSecondary] [-Confirm]
 [-DisableCertificateValidation] [-ManagementConnectionString <String>] [-MetadataEndpoint <Uri>]
 [-MetadataFile <String>] [-Password <String>] [-PortalConnectionString <String>] [-Server <String>]
 [-UserName <String>] [-WhatIf] [<CommonParameters>]

Description

The Set-MgmtSvcIdentityProviderSettings cmdlet configures an administrator authentication site or a tenant authentication site to use Active Directory Federation Services (AD FS).
Specify one or more namespaces and an endpoint for metadata.

You can run this cmdlet from any computer in the deployment.
However, this cmdlet assumes that the database is on the local computer.
If the database is on another computer, you must use the Server, UserName, Password, and Database parameters, or a SQL connection string.
If you specify a connection string by using the ConnectionString parameter, that value takes precedence over the Server, UserName, Password, and Database parameters.

Examples

Example 1: Configure a tenant authentication site

PS C:\> $ConnectionString = 'Data Source=rd-sdfre4;Initial Catalog=Microsoft.MgmtSvc.Config;User ID=SysAdmin;Password=PassWord'
PS C:\> Set-MgmtSvcIdentityProviderSettings -Target Management -MetadataEndpoint "https://Server07.Contoso.com/FederationMetadata/2007-06/FederationMetadata.xml" -PortalConnectionString $ConnectionString -DisableCertificateValidation
The first command stores a connection string in the $ConnectionString variable. The second command configures a tenant authentication The command uses the connection string stored in the $ConnectionString variable. The command also specifies an endpoint for the metadata and disables certificate validation.

Parameters

-ConfigureSecondary

Indicates that secondary identity provider settings are set.

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

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False

-ConnectionString

Specifies an SQL connection string.

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

-DisableCertificateValidation

Indicates that the cmdlet disables certificate validation.

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

-ManagementConnectionString

Specifies a connection string for the Admin Auth Site.

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

-MetadataEndpoint

Specifies an endpoint for identity provider metadata.

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

-MetadataFile

{{Fill MetadataFile Description}}

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

-Password

Specifies a password.

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

-PortalConnectionString

Specifies a connection string for the Tenant Auth Site.

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

-Server

Specifies the name of the computer on which the SQL database resides.

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

-Target

Specifies the target site.
Valid values are:

- Membership. This value indicates that the target is the Tenant Auth Site.
- Windows. This value indicates that the target is the Admin Auth Site.

Type:String[]
Required:True
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

-UserName

Specifies the name of a user account.

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

-WhatIf

Shows what would happen if the cmdlet runs.
The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False