Add-EntraBetaApplicationPolicy
Adds an application policy.
Syntax
Add-EntraBetaApplicationPolicy
-Id <String>
-RefObjectId <String>
[<CommonParameters>]
Description
The Add-EntraBetaApplicationPolicy
cmdlet adds a Microsoft Entra ID application policy. Specify Id
and RefObjectId
parameters to add an application policy.
Examples
Example 1: Add an application policy
Connect-Entra -Scopes 'Application.ReadWrite.All, Policy.ReadWrite.ApplicationConfiguration'
$params = @{
Id = 'aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb'
RefObjectId = 'bbbbbbbb-1111-2222-3333-cccccccccccc'
}
Add-EntraBetaApplicationPolicy @params
This example demonstrates how to add an application policy.
Parameters
-Id
The ID of the application for which you need to set the policy.
Type: | System.String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-RefObjectId
Specifies the ID of the policy.
Type: | System.String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |