Importing Carbon to Azure automation account assets

127 views
Skip to first unread message

mikejon...@gmail.com

unread,
Jul 12, 2016, 8:50:57 AM7/12/16
to Carbon
Hi

Great set of features - however I'm getting an 'extracting activities failed' error when trying to import Carbon to Azure automation account assets.

Directly importing from PowerShell gallery using the Azure portal results in
Error extracting the activities from module Carbon.  Extraction failed with the following error: Orchestrator.Shared.AsyncModuleImport.ModuleImportException: An error occurred during module validation. When importing the module to an internal PowerShell session, it was not able to be loaded by PowerShell. There is likely an issue with the contents of the module that results in PowerShell's not being able to load it. Please verify that the module imports successfully in a local PowerShell session, correct any issues, and then try importing again.

Manually uploading Carbon-2.2.0.zip results in
Error extracting the activities from module Carbon-2.2.0. Extraction failed with the following error: Orchestrator.Shared.AsyncModuleImport.ModuleImportException: Cannot import the module of name Carbon-2.2.0, as the module structure was invalid.

I'd like to use the Carbon_IniFile DSC module to configure an application running on an Azure VM.

I'm not sure if the files just need to be repackaged in a different structure?

Kind regards
Mike

Aaron Jensen

unread,
Jul 12, 2016, 8:58:03 AM7/12/16
to mikejon...@gmail.com, Carbon
I've never used Azure Automation account assets before. Can you send me detailed steps to reproduce? This is the third time someone has reported this and I'd like to get to the bottom of it. 
--
You received this message because you are subscribed to the Google Groups "Carbon" group.
To unsubscribe from this group and stop receiving emails from it, send an email to carbonps+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/carbonps/0c805b5f-1b0d-4a48-85b9-1bdfa649a87e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

mikejon...@gmail.com

unread,
Jul 12, 2016, 9:25:58 AM7/12/16
to Carbon, mikejon...@gmail.com

Getting started with Azure Automation

You can upload a DSC configuration in Azure, 'compile it' to generate the .mof files in Azure, then assign the configuration to a local or Azure VM.

The Azure automation account acts as a pull server ensuring your Azure VMs remain consistent with the desired configuration. Pretty cool.

However if the DSC configuration uses non-Microsoft standard DSC resources you need to import the DSC module to Azure Automation account.

This is where I'm stuck as the import fails.

If you have a Microsoft account, I think I can invite you to my Azure resource group so you can see an example without having to set something up in Azure yourself.

We may be able to figure out if the Carbon zip file structure is appropriate by examining the cRobocopy module - that module imports to Azure assets fine.

Mike



Reply all
Reply to author
Forward
0 new messages