locked
Powershell DSC xChrome Sample failing on AzureVM RRS feed

  • General discussion

  • I'm attempting to run the xChrome sample (https://gallery.technet.microsoft.com/scriptcenter/DSC-Resource-Kit-All-c449312d) on an Azure VM and it fails to run.  Everything runs and executes, but I receive the error (larger log snippet below): 

    CategoryInfo          : ObjectNotFound: (MSFT_xChrome\MSFT_xChrome:String) [Configuration]

    AzureVM is Windows Server 2012 with Powershell Version 5:

    $PSVersionTable.PSVersion

    Major  Minor  Build  Revision
    -----  -----  -----  --------
    5      0      9883   0       

    The steps I use to execute are:

    1. Download xChrome extension (from above url) and inflate it into my modules directory
    2. Publish-AzureVMDscConfiguration  -ConfigurationPath C:\Users\<username>\Documents\WindowsPowerShell\Modules\xChrome\Example\Sample_xChrome.ps1 -Force
    3. Get-AzureVM -ServiceName '<servicename>' -Name '<vmname>' | Set-AzureVMDscExtension -ConfigurationArchive Sample_xChrome.ps1.zip -ConfigurationName Sample_InstallChromeBrowser  -ConfigurationArgument @{Language='en'; LocalPath='$env:SystemDrive\Windows\DtlDownloads\GoogleChromeStandaloneEnterprise.msi'} | Update-AzureVM

    The error snippet:
    [2015-04-17T23:35:06] 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.7.0.0\DSCWork\Sample_xChrome.ps1.8\Sample_xChrome.ps1:3 char:1
    + Configuration Sample_InstallChromeBrowser
    + ~~~~~~~~~~~~~
        + CategoryInfo          : ObjectNotFound: (MSFT_xChrome\MSFT_xChrome:String) [Configuration], ParentContainsErrorRecordException
        + FullyQualifiedErrorId : CouldNotAutoLoadModule,Configuration

    [2015-04-17T23:35:08] Removing file lock
    C:\Packages\Plugins\Microsoft.Powershell.DSC\1.7.0.0\bin\DscExtensionHandler.ps1 : Error enabling the DSC Extension: Errors occurred while processing configuration 'Sample_InstallChromeBrowser'.
    At line:7 char:2
    +  C:\Packages\Plugins\Microsoft.Powershell.DSC\1.7.0.0\bin\DscExtensio ...
    +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
        + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,DscExtensionHandler.ps1

    [2015-04-17T23:35:08] Writing handler status to C:\Packages\Plugins\Microsoft.Powershell.DSC\1.7.0.0\Status\8.status

      
    • Edited by Grady G Cooper Friday, April 17, 2015 11:47 PM Added powershell and o/s version
    • Changed type Bill_Stewart Tuesday, May 19, 2015 8:58 PM
    • Moved by Bill_Stewart Tuesday, May 19, 2015 8:58 PM This is not a support forum for gallery scripts
    Friday, April 17, 2015 11:43 PM

All replies