Target property is valid property?
The Target property of Environment DSC resource is valid property?
The member 'Target' is not valid. Valid members are 'DependsOn', 'Ensure', 'Name', 'Path', 'PsDscRunAsCredential', 'Value'.
VS Code with PowerShell extension:

Azure Automation State Configuration:

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: dce1333c-cef3-cf6c-960b-cbbf275a7803
- Version Independent ID: 0aa33a23-27a9-4d7e-c7ea-c0e9c165750f
- Content: DSC Environment Resource - PowerShell
- Content Source: reference/docs-conceptual/dsc/reference/resources/windows/environmentResource.md
- Product: powershell
- Technology: powershell-conceptual
- GitHub Login: @joeyaiello
- Microsoft Alias: jaiello
Hey @tksh164, I'm sorry for your issue. This doc is correct. You might want to try using the PSDscResources which is the currently supports module holding dsc resources.
@chasewilson - Thank you for your confirmation. I confirmed at MSFT_EnvironmentResource.schema.mof
If so, the correct data type is string[] right? Because the definition of Target property is the array of string.
docs:
[ Target = [string] { Process | Machine } ]
PSDscResources repo:
[Write, Description("Indicates the target where the environment variable should be set."), ValueMap{"Process", "Machine"}, Values{"Process", "Machine"}] String Target[];
P.S. The Description property of Group resource is the same (opposite). That data type is mismatched with the definition.
https://docs.microsoft.com/en-us/powershell/scripting/dsc/reference/resources/windows/groupresource
[ Description = [string[]] ]
https://github.com/PowerShell/PSDscResources/blob/7064eda52d939a4a3ce40e1f38756cfe6a09acfd/DscResources/MSFT_GroupResource/MSFT_GroupResource.schema.mof#L7
[Write, Description("The description the group should have.")] String Description;