MicrosoftDocs / PowerShell-Docs-DSC

Documentation for PowerShell Desired State Configuration
https://learn.microsoft.com/powershell/dsc/overview
Creative Commons Attribution 4.0 International
28 stars 35 forks source link

Folder structure for a MOF resource part below folder structure is missing MyDscResources.psd1 #215

Closed HarikrishnanKM closed 9 months ago

HarikrishnanKM commented 11 months ago

Type of issue

Typo

Feedback

At "Folder structure for a MOF resource" part below folder structure is missing MyDscResources.psd1 file which is a required file to work this. $env:ProgramFiles\WindowsPowerShell\Modules (folder) |- MyDscResources (folder) |- DSCResources (folder) |- Demo_IISWebsite (folder) |- Demo_IISWebsite.psd1 (file, optional) |- Demo_IISWebsite.psm1 (file, required) |- Demo_IISWebsite.schema.mof (file, required)

The correct one should be like below $env: psmodulepath |- MyDscResources |- MyDscResources.psd1 |- DSCResources |- xVirtualMachine |- xVirtualMachine.psd1 |- xVirtualMachine.schema.psm1 DSC-FolderIssue

Page URL

https://learn.microsoft.com/en-us/powershell/dsc/resources/authoringresourcemof?view=dsc-1.1

Content source URL

https://github.com/MicrosoftDocs/PowerShell-Docs-DSC/blob/main/dsc/docs-conceptual/dsc-1.1/resources/authoringResourceMOF.md

Author

sdwheeler

Document Id

5c5afac2-e1a7-b27d-98e4-44ecdb2a92cd