The Wayback Machine - https://web.archive.org/web/20220706225754/https://github.com/Azure/azure-powershell/issues/16582
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove-AzPolicyExemption ignores -Confirm:$false #16582

Open
J0F3 opened this issue Dec 6, 2021 · 1 comment
Open

Remove-AzPolicyExemption ignores -Confirm:$false #16582

J0F3 opened this issue Dec 6, 2021 · 1 comment
Assignees
Labels
bug customer-reported good first issue Policy question

Comments

@J0F3
Copy link

@J0F3 J0F3 commented Dec 6, 2021

Description

When Remove-AzPolicyExemption is run with -Confirm:$false the cmdlet still ask for confirmation. This is not expected. In additional this cmdlet behaviors also differently than the other Policy cmdlets e.g Remove-AzPolicyAssignment.

If -Confirm:$false is specified the cmdlet should not ask for confirmation anymore.

Issue script & Debug output

N/A

Environment data

Name                           Value
----                           -----
PSVersion                      7.2.0
PSEdition                      Core
GitCommitId                    7.2.0
OS                             Linux 5.10.60.1-microsoft-standard-WSL2 #1 SMP Wed Aug 25 23:20:18 UTC 2021
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Module versions

ModuleType Version    PreRelease Name                                ExportedCommands
---------- -------    ---------- ----                                ----------------
Script     2.6.2                 Az.Accounts                         {Add-AzEnvironment, Clear-AzContext, Clear-AzDefault, Connect-AzAccount…}
Script     4.4.1                 Az.Resources                        {Add-AzADGroupMember, Export-AzResourceGroup, Export-AzTemplateSpec, Get-AzADAppCredential…}

Error output

N/A
@J0F3 J0F3 added bug needs-triage labels Dec 6, 2021
@msftbot msftbot bot added question customer-reported and removed needs-triage labels Dec 6, 2021
@dingmeng-xue dingmeng-xue added good first issue Policy labels Dec 7, 2021
@dingmeng-xue
Copy link
Member

@dingmeng-xue dingmeng-xue commented Dec 7, 2021

We will look into this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug customer-reported good first issue Policy question
3 participants