Howto get puppetlabs-azurevm working

asked 2016-05-14 02:21:11 -0500

DJB gravatar image

Hi all,

I'm trying to get the puppetlabs/azure module to work as expected but so far to no avail.

For now I'm simply trying to get the example code working:

azure_vm { 'sample':
  ensure         => present,
  location       => 'eastus',
  image          => 'canonical:ubuntuserver:14.04.2-LTS:latest',
  user           => 'azureuser',
  password       => 'Password',
  size           => 'Standard_A0',
  resource_group => 'testresacc01',
}

When running 'puppet agent --test --verbose --debug' on my Windows Server, I observe the following output but can't figure out what I need to do to resolve it. Any help will be greatly appreciated:)

Debug: Failed to load library 'azure' for feature 'azure'
Debug: Puppet::Type::Azure_vm::ProviderAzure_arm: feature azure is missing
Error: Could not find a suitable provider for azure_vm

Some Background Clarification

  1. I have a working PuppetServer (CentOS 7 x64) with the puppetlabs-azure module installed
  2. I have a working PuppetAgent (Windows Server 2012 R2 x64) with the AzureCLI, AzureRM Powershell Module, and Azure Gems installed as described here.
  3. I also have tested and confirmed the Azure Resource Manager Service Principal account is working and all System variables and the azure.conf hcon file parameters are set accordingly.
edit retag flag offensive close merge delete