New-AzureADMSTrustFrameworkPolicy
This cmdlet is used to create a trust framework policy (custom policy) in the directory.
Syntax
New-AzureADMSTrustFrameworkPolicy
[-OutputFilePath <String>]
-Content <String>
[<CommonParameters>]
New-AzureADMSTrustFrameworkPolicy
-InputFilePath <String>
[-OutputFilePath <String>]
[<CommonParameters>]
Description
This cmdlet is used to create a trust framework policy in the directory.
The contents of the trust framework policy to be created can be provided using a file or a command line variable.
The contents of the created trust framework policy can be written to an output file or to the screen.
Examples
Example 1
PS C:\> New-AzureADMSTrustFrameworkPolicy -Content $policyContent
The example creates a trust framework policy from the content specified.
The contents of newly created trust framework policy are displayed on screen.
Example 2
PS C:\> New-AzureADMSTrustFrameworkPolicy -Content $policyContent -OutputFilePath C:\CreatedPolicy.xml
The example creates a trust framework policy from the content specified.
The contents of newly created trust framework policy are written to file mentioned in output file path.
Example 3
PS C:\> New-AzureADMSTrustFrameworkPolicy -InputFilePath C:\InputPolicy.xml -OutputFilePath C:\CreatedPolicy.xml
The example creates a trust framework policy from the file mentioned in InputFilePath.
The contents of newly created trust framework policy are written to file mentioned in output file path.
Example 4
PS C:\> New-AzureADMSTrustFrameworkPolicy -InputFilePath C:\InputPolicy.xml
The example creates a trust framework policy from the file mentioned in InputFilePath.
The contents of newly created trust framework policy are displayed on screen.
Parameters
The content of the trust framework policy to be created.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Path to the file used for reading the contents of trust framework policy to be created.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Path to the file used for writing the contents of newly created trust framework policy.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |