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
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
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