Set-AzureADMSTrustFrameworkPolicy

This cmdlet is used to update a trust framework policy (custom policy) in the directory.

Syntax

Set-AzureADMSTrustFrameworkPolicy
   [-Id <String>]
   [-OutputFilePath <String>]
   -Content <String>
   [<CommonParameters>]
Set-AzureADMSTrustFrameworkPolicy
   -Id <String>
   -InputFilePath <String>
   [-OutputFilePath <String>]
   [<CommonParameters>]

Description

This cmdlet is used to update a trust framework policy in the directory.

The contents of the trust framework policy to be updated can be provided using a file or a command line variable.

The contents of the updated trust framework policy can be written to an output file or to the screen.

Examples

Example 1

PS C:\> Set-AzureADMSTrustFrameworkPolicy -Id B2C_1A_signup_signin -Content $policyContent

The example updates a trust framework policy from the content specified.

The contents of updated trust framework policy are displayed on screen.

Example 2

PS C:\> Set-AzureADMSTrustFrameworkPolicy -Id B2C_1A_signup_signin -Content $policyContent -OutputFilePath C:\CreatedPolicy.xml

The example updates a trust framework policy from the content specified.

The contents of updated trust framework policy are written to file mentioned in output file path.

Example 3

PS C:\> Set-AzureADMSTrustFrameworkPolicy -Id B2C_1A_signup_signin -InputFilePath C:\InputPolicy.xml -OutputFilePath C:\CreatedPolicy.xml

The example updates a trust framework policy from the file mentioned in InputFilePath.

The contents of updated trust framework policy are written to file mentioned in output file path.

Example 4

PS C:\> Set-AzureADMSTrustFrameworkPolicy -Id B2C_1A_signup_signin -InputFilePath C:\InputPolicy.xml

The example updates a trust framework policy from the file mentioned in InputFilePath.

The contents of updated created trust framework policy are displayed on screen.

Parameters

-Content

The content of the trust framework policy to be updated.

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

-Id

The unique identifier for a trust framework policy.

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

-InputFilePath

Path to the file used for reading the contents of trust framework policy to be updated.

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

-OutputFilePath

Path to the file used for writing the contents of updated trust framework policy.

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

Inputs

String

Outputs

Object