dsccommunity / dsccommunity/ComputerManagementDsc

Issue with Timezone within ComputerManagementDsc Module shown in example

Open
#285 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug help wanted needs investigation
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.