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

Import-DscResource -Module or -ModuleName ? #251

Closed HarikrishnanKM closed 6 months ago

HarikrishnanKM commented 6 months ago

Type of issue

Typo

Feedback

In 1.1 document for composite resources https://learn.microsoft.com/en-us/powershell/dsc/resources/authoringresourcecomposite?view=dsc-1.1 Should be Import-DscResource -Module or Import-DscResource -ModuleName ?

Error-Dsc

when we try writing it is giving below options only Correct-DSC

Page URL

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

Content source URL

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

Author

@sdwheeler

Document Id

3b881d76-ee94-94bd-4719-440c698d8856

sdwheeler commented 6 months ago

It should be module name.

HarikrishnanKM commented 6 months ago

Thanks , hope it is corrected in this document. https://learn.microsoft.com/en-us/powershell/dsc/resources/authoringresourcecomposite?view=dsc-1.1 Could see, there are 3 entries with -Module instead of -ModuleName in this page.

sdwheeler commented 6 months ago

See the linked PR #252