|
1 | 1 | ---
|
2 | 2 | title: How to create custom machine configuration policy definitions
|
3 | 3 | description: Learn how to create a machine configuration policy.
|
4 |
| -ms.date: 08/09/2022 |
| 4 | +ms.date: 09/12/2022 |
5 | 5 | ms.topic: how-to
|
6 | 6 | ms.service: machine-configuration
|
7 | 7 | ms.author: timwarner
|
@@ -86,14 +86,14 @@ create the machine configuration policy definition. The `New-GuestConfigurationP
|
86 | 86 | cmdlet takes a custom policy package and creates a policy definition.
|
87 | 87 |
|
88 | 88 | The **PolicyId** parameter of `New-GuestConfigurationPolicy` requires a unique
|
89 |
| -string. A globally unique identifier (GUID) is recommended. For new definitions, |
| 89 | +string. A globally unique identifier (GUID) is required. For new definitions, |
90 | 90 | generate a new GUID using the cmdlet `New-GUID`. When making updates to the
|
91 | 91 | definition, use the same unique string for **PolicyId** to ensure the correct
|
92 | 92 | definition is updated.
|
93 | 93 |
|
94 | 94 | Parameters of the `New-GuestConfigurationPolicy` cmdlet:
|
95 | 95 |
|
96 |
| -- **PolicyId**: A GUID or other unique string that identifies the definition. |
| 96 | +- **PolicyId**: A GUID. |
97 | 97 | - **ContentUri**: Public HTTP(s) URI of machine configuration content package.
|
98 | 98 | - **DisplayName**: Policy display name.
|
99 | 99 | - **Description**: Policy description.
|
@@ -133,7 +133,7 @@ configuration package, in a specified path:
|
133 | 133 | ```powershell
|
134 | 134 | $PolicyConfig2 = @{
|
135 | 135 | PolicyId = '_My GUID_'
|
136 |
| - ContentUri = $contenturi |
| 136 | + ContentUri = $contenturi |
137 | 137 | DisplayName = 'My audit policy'
|
138 | 138 | Description = 'My audit policy'
|
139 | 139 | Path = './policies/deployIfNotExists.json'
|
|
0 commit comments