Skip to content

Commit 70cc4ff

Browse files
(AzureCXP) fixes MicrosoftDocs/azure-docs#94491
This PR updates the parameter for `New-GuestConfigurationPolicy`. The parameter "-version" has been changed to "-PolicyVersion" in GuestConfiguration Module v4.0.0+. As rest of the doc was updated keeping v4.0.0+ version of GuestConfiguration PowerShell module, updating the parameter with the correct name as available in newer module.
1 parent 0ca4f6c commit 70cc4ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/governance/policy/how-to/guest-configuration-create-definition.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ New-GuestConfigurationPolicy `
117117
-Description 'Details about my policy.' `
118118
-Path './policies' `
119119
-Platform 'Windows' `
120-
-Version 1.0.0 `
120+
-PolicyVersion 1.0.0 `
121121
-Verbose
122122
```
123123

@@ -132,7 +132,7 @@ New-GuestConfigurationPolicy `
132132
-Description 'Details about my policy.' `
133133
-Path './policies' `
134134
-Platform 'Windows' `
135-
-Version 1.0.0 `
135+
-PolicyVersion 1.0.0 `
136136
-Mode 'ApplyAndAutoCorrect' `
137137
-Verbose
138138
```
@@ -218,7 +218,7 @@ New-GuestConfigurationPolicy `
218218
-Description 'Audit if a Windows Service isn't enabled on Windows machine.' `
219219
-Path '.\policies' `
220220
-Parameter $PolicyParameterInfo `
221-
-Version 1.0.0
221+
-PolicyVersion 1.0.0
222222
```
223223

224224
### Publish the Azure Policy definition

0 commit comments

Comments
 (0)