0

When I'm using Publish-AzureRmVMDscConfiguration to create archives for azurerm-template dsc-extensions, it has started to create archives with duplicate modules.

Running Publish-AzureRmVMDscConfiguration on a configuration with these imports:

All dsc-resource imports

Creates this archive:

Duplicate names

With duplicate names, and inside each module theres is several modules of the same type and version nested:

enter image description here

Anyone has an explanation for this or have experienced the same behaviour?

Im using the latest azureRM modules (1.2.0) on windows 2012 R2.

andrstor
  • 33
  • 5

1 Answers1

1

See if there are duplicate paths in $env:PSModulePath for "C:\Program Files\WindowsPowerShell\Modules". If are duplicates, update the environment variable using this command:

$env:PSModulePath = $env:PSModulePath.Replace("C:\Program Files\WindowsPowerShell\Modules;","")
Stephen Reindl
  • 5,659
  • 2
  • 34
  • 38