Skip to content

Commit 52f6b56

Browse files
author
Hovsep
authored
Azure PowerShell cmdlet changes for ShouldProcess, ShouldContinue, and Force (Azure#2594)
1 parent abc3342 commit 52f6b56

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

ChangeLog.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
##2016.07.11 version 1.6.0
2+
* **Behavioral change for -Force, –Confirm and $ConfirmPreference parameters for all cmdlets. We are changing this implementation to be in line with PowerShell guidelines. For most cmdlets, this means removing the Force parameter and to skip the ShouldProcess prompt, users will need to include the parameter: ‘-Confirm:$false’ in their PowerShell scripts.** This changes are addressing following issues:
3+
* Correct implementation of –WhatIf functionality, allowing a user to determine the effects of a cmdlet or script without making any actual changes
4+
* Control over prompting using a session-wide $ConfirmPreference, so that the user is prompted based on the impact of a prospective change (as reported in the ConfirmImpact setting in the cmdlet)
5+
* Cmdlet-specific control over confirmation prompts using the –Confirm parameter
6+
* Consistent use of ShouldContinue and the –Force parameter across cmdlets, for only those actions that would require prompting from the user due to the special nature of the changes (for example, deleting hidden files)
7+
* Consistency with other PowerShell cmdlets, so that PowerShell scripting knowledge from other cmdlets is immediately applicable to the Azure PowerShell cmdlets.
8+
9+
**Notice that now to *automatically skip all Prompts in all Circumstances* Azure PowerShell cmdlets require the user to supply two parameters:**
10+
```
11+
My-CmdletWithConfirmation –Confirm:$false -Force
12+
```
213
* Azure Compute
314
* Set-AzureRmVMADDomainExtension
415
* Get-AzureRmVMADDomainExtension

0 commit comments

Comments
 (0)