dsccommunity / dsccommunity/ComputerManagementDsc
Issue with Timezone within ComputerManagementDsc Module shown in example
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 338
- Forks
- 80
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
I have copied the example of Set Timezone within ComputerManagementDSC module.
I saved this as a PS script and whenever i run this via azure automation services then it throws me an Error that Timezone is not a valid parameter.
Configuration TimeZone_SetTimeZone_Config
{
Import-DSCResource -ModuleName ComputerManagementDsc
Node localhost
{
TimeZone TimeZoneExample
{
IsSingleInstance = 'Yes'
TimeZone = 'W. Europe Standard Time'
}
}
}
Request you to kindly help me on this.
I am new to Powershell and trying to get more into this.
Exception calling "NewScriptBlock" with "1" argument(s): "At line:8 char:9 + TimeZone TimeZoneExample + ~~~~~~~~ Undefined DSC resource 'TimeZone'. Use Import-DSCResource to import the resource." (At line:8 char:9 + TimeZone TimeZoneExample + ~~~~~~~~ Undefined DSC resource 'TimeZone'. Use Import-DSCResource to import the resource.)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reported TimeZone example and the ComputerManagementDsc module imported by Azure Automation. Check whether the TimeZone resource is available in that environment and compare the module version with the example. Done means the documented configuration is accepted and runs successfully in Azure Automation, or the compatibility limitation is documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, powershell
- Domain
- cloud, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100