Remove-EntraBetaApplicationPolicy
Removes an application policy.
Syntax
Default (Default)
Remove-EntraBetaApplicationPolicy
-Id <String>
-PolicyId <String>
[<CommonParameters>]
Description
The Remove-EntraBetaApplicationPolicy cmdlet removes an application policy from Microsoft Entra ID. Specify Idand PolicyId parameters to remove an specific application policy.
Examples
Example 1: Remove an application policy
Connect-Entra -Scopes 'Application.ReadWrite.All'
$params = @{
Id = 'aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb'
PolicyId = 'bbbbbbbb-1111-2222-3333-cccccccccccc'
}
Remove-EntraBetaApplicationPolicy @params
This command removes the specified application policy.
Parameters
-Id
The ID of the application for which you need to retrieve the policy.
Parameter properties
| Type: | System.String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | True |
| Value from pipeline: | True |
| Value from pipeline by property name: | True |
| Value from remaining arguments: | False |
-PolicyId
Specifies the ID of the policy.
Parameter properties
| Type: | System.String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | True |
| Value from pipeline: | True |
| Value from pipeline by property name: | True |
| Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.