Hi guys,
I was trying to get the xChrome module to work via the Azure DSC extension and for whatever reason the extension doesn’t like the module.
I can create the MOF just fine on my workstation, but the log on Azure always says:
[2014-10-26T13:57:00] Creating working directory: C:\Packages\Plugins\Microsoft
.Powershell.DSC\1.4.0.0\DSCWork\DSC_Demo_ChromeConfig.ps1.0
[2014-10-26T13:57:00] Downloading configuration package
[2014-10-26T13:57:00] Downloading https://psdscstorage.blob.core.windows.net/wi
ndows-powershell-dsc/DSC_Demo_ChromeConfig.ps1.zip to C:\Packages\Plugins\Micro
soft.Powershell.DSC\1.4.0.0\DSCWork\DSC_Demo_ChromeConfig.ps1.0\DSC_Demo_Chrome
Config.ps1.zip
[2014-10-26T13:57:01] Extracting DSC_Demo_ChromeConfig.ps1.zip
[2014-10-26T13:57:01] Installing custom DSC resource modules to C:\Program
Files\WindowsPowerShell\Modules
[2014-10-26T13:57:01] Installing custom DSC resource module xChrome
[2014-10-26T13:57:02] Installing custom DSC resource module
xPSDesiredStateConfiguration
[2014-10-26T13:57:02] Applying DSC configuration under C:\Packages\Plugins\Micr
osoft.Powershell.DSC\1.4.0.0\DSCWork\DSC_Demo_ChromeConfig.ps1.0
[2014-10-26T13:57:02] Writing handler status to
C:\Packages\Plugins\Microsoft.Powershell.DSC\1.4.0.0\Status.status
[2014-10-26T13:57:02] Executing configuration script: C:\Packages\Plugins\Micro
soft.Powershell.DSC\1.4.0.0\DSCWork\DSC_Demo_ChromeConfig.ps1.0\DSC_Demo_Chrome
Config.ps1
[2014-10-26T13:57:12] Preparing configuration data
[2014-10-26T13:57:12] Executing the configuration function to generate the MOF
files.
PSDesiredStateConfiguration\Configuration : The module 'MSFT_xChrome' could
not be loaded. For more information, run 'Import-Module MSFT_xChrome'.
At C:\Packages\Plugins\Microsoft.Powershell.DSC\1.4.0.0\DSCWork\DSC_Demo_Chrome
Config.ps1.0\DSC_Demo_ChromeConfig.ps1:1 char:1
+ Configuration GoogleChrome {
+ ~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (MSFT_xChrome\MSFT_xChrome:Strin
g) [Configuration], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : CouldNotAutoLoadModule,Configuration
C:\Packages\Plugins\Microsoft.Powershell.DSC\1.4.0.0\bin\DscExtensionHandler.ps
1 : Error enabling the DSC Extension: Errors occurred while processing
configuration 'GoogleChrome'.
At line:1 char:1
+ .\bin\DscExtensionHandler.ps1 -Verbose *> C:\WindowsAzure\Logs\Plugin ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorExcep
tion
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorExceptio
n,DscExtensionHandler.ps1
It works just fine on Azure when I don’t use a custom resource. Both custom modules are there, they are where the log file said it would copy them. WindowsFeature worked nicely through the extension.
Cheers
David