Import-DSCModuleAsCmdlet

1.0.0.0

All the DSC Resource providers implement the same signature so we import the module using the ResourceName
as a Prefix.  This produces a long name with "TargetResource" at the end of every cmdlet so we produce an
alias which removes that and any "MSFT_" references and then add "DSR" for Desired State Resource so that
we don't clobber any existing cmdlets (e.g. Servic
All the DSC Resource providers implement the same signature so we import the module using the ResourceName
as a Prefix.  This produces a long name with "TargetResource" at the end of every cmdlet so we produce an
alias which removes that and any "MSFT_" references and then add "DSR" for Desired State Resource so that
we don't clobber any existing cmdlets (e.g. Service, Process, etc)

NOTE: this only works for Script Resources
Show more

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name Import-DSCModuleAsCmdlet

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Package Details

Author(s)

  • Jeffrey Snover

Dependencies

This script has no dependencies.

FileList

Version History

Version Downloads Last updated
1.0.0.0 (current version) 359 12/18/2016