Remove-AllowedConsentPlans
Removes all consent plans of the specified types from the tenant and blocks consent plans of those type from being created within the tenant.
Syntax
Remove-AllowedConsentPlans
[-Types] <String[]>
[[-Prompt] <Boolean>]
[[-ApiVersion] <String>]
[<CommonParameters>]
Description
The Remove-AllowedConsentPlans cmdlet removes consent plans of the specified types from the tenant and blocks consent plans of those type from being created within the tenant. Note that this only impacts the types specified, all others will be unaffected. Use Get-Help Remove-AllowedConsentPlans -Examples for more detail.
Examples
EXAMPLE 1
Remove-AllowedConsentPlans -Types @("Internal", "Viral")
Removes consent plans of type internal and viral.
Parameters
-ApiVersion
The api version to call with. Default 2016-11-01
Type: | String |
Position: | 3 |
Default value: | 2019-05-01 |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Prompt
Prompt when removing consent plans by confirmation.
Type: | Boolean |
Position: | 2 |
Default value: | True |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Types
The types of consent plans that should be removed. Valid options are Internal, Viral.
Type: | String[] |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |