< Back

Remove-AADB2CPolicy

Fri Jan 10, 2020 5:35 pm

NAME Remove-AADB2CPolicy



SYNOPSIS

Removes an Azure AD B2C Policy





SYNTAX

Remove-AADB2CPolicy [-ClientId] <String> [-ClientSecret] <String> [-TenantId] <String> -FilePath <String>

[-Overwrite <Boolean>] [-WhatIf] [-Confirm] [<CommonParameters>]



Remove-AADB2CPolicy [-ClientId] <String> [-ClientSecret] <String> [-TenantId] <String> -Policy <String>

[-Overwrite <Boolean>] [-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

The Remove-AzureADB2CPolicy cmdlet removes an Azure Active Directory B2C policy.





PARAMETERS

-ClientId <String>

Specify the client ID you which to use.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ClientSecret <String>

Specify the Client Secret you which to use.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-TenantId <String>

Specify the Azure AD B2C tenant ID.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Policy <String>



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-FilePath <String>

Specifies a path to a file.



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Overwrite <Boolean>



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Remove-AADB2CPolicy -ClientId xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx -ClientSecret xxxxxxxxxxxxxxxxxxx

-TenantId xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx -PolicyID B2C_1A_xxxxxxxx



This command removes a policy from your Azure AD B2C tenant











RELATED LINKS

Get-AADB2CPolicy

New-AADB2CPolicy