Export-AdfsAuthenticationProviderConfigurationData

Returns a file containing the tenant ID for which the AD FS farm is configured for Azure MFA, as well as the well-known client ID for Azure MFA.

Syntax

Export-AdfsAuthenticationProviderConfigurationData
      [-Confirm]
      -FilePath <String>
      -Name <String>
      [-WhatIf]
      [<CommonParameters>]

Description

The Export-AdfsAuthenticationProviderConfigurationData cmdlet returns a file containing the tenant ID for which the Active Directory Federation Services (AD FS) farm is configured for Azure MFA, as well as the well-known client ID for Azure MFA.

Before you use this cmdlet, verify that the external authentication provider supports a custom configuration.

Examples

Example 1: Export configuration data

PS C:\> Export-AdfsAuthenticationProviderConfigurationData -Name "ContosoExternalAuthProvider" -FilePath "C:\share\test.txt"

This command exports configuration data for the authentication provider named ContosoExternalAuthProvider to the file C:\share\test.txt.

Example 2: Determine which certificate Azure MFA is using

PS C:\> New-AdfsAzureMfaTenantCertificate -TenantID <your tenant ID> - FilePath amfacert.cer

This command determines which certificate Azure MFA is using, after AD FS is configured for Azure MFA.

Required Parameters

-FilePath

Specifies the path and filename of the text file to which the configuration will be output.

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

Specifies the name of the authentication provider to export, for example, AzureMfaAuthentication.

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

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
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
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False

Outputs

System.Object