The example should include Example(configuration name) at the end of the configuration example.
Current:
Configuration Example {
# Import the module that contains the Registry DSC Resource.
Import-DscResource -ModuleName PSDscResources
# The Registry DSC Resource can ensure the state of registry keys
Registry DscTest {
Key = 'HKEY_CURRENT_USER\DscTest'
ValueName = 'Example'
Ensure = 'Present'
ValueData = 'Test Value'
ValueType = 'String'
}
}
Proposed:
Configuration Example {
# Import the module that contains the Registry DSC Resource.
Import-DscResource -ModuleName PSDscResources
# The Registry DSC Resource can ensure the state of registry keys
Registry DscTest {
Key = 'HKEY_CURRENT_USER\DscTest'
ValueName = 'Example'
Ensure = 'Present'
ValueData = 'Test Value'
ValueType = 'String'
}
}
Example
Without the configuration name at the end, the configuration won't be compiled when you call the script.
Also I'm not sure if the doc should clarify that you can define multiple configurations in one file and just include names of all configuration at the end and calling the script will result in all configurations to be compiled at once.
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
ID: 1b781b0b-299e-8b99-891f-e02716242b53
Version Independent ID: f1e9736c-9cb5-4e66-ce20-7fb5a59ecd26
The example should include
Example
(configuration name) at the end of the configuration example.Current:
Proposed:
Without the configuration name at the end, the configuration won't be compiled when you call the script.
Also I'm not sure if the doc should clarify that you can define multiple configurations in one file and just include names of all configuration at the end and calling the script will result in all configurations to be compiled at once.
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.