-
Notifications
You must be signed in to change notification settings - Fork 48
Question: azure-arm private access and network enhancements #189
Description
Hi,
Question about the azure-arm provisioner if i may? New to github, apologies if this is covered anywhere else that I couldn't find!!
- any plans for private IP access for azure-arm ( similar to PR Added ssh_private_ip config to enable use of VM private IP addresses #116 for the 'standard' azure builder )
- any plans or method to specify the resource group, subnet and vnet rather than packer creating temporary ones each time ( eg deploy the VM into an existing environment rather than creating new )
- any way to specify your own ssh key rather than using the generated one?
Using the centos/openlogic image the default user 'packer' does not have sudo rights without password. Is there a way to get this into the image so that customisation can be performed ?
I tried using "username" : "root" in the JSON template but the VM is not created with this error:
==> azure-arm: Preparing builder ...
azure-arm: Creating Azure Resource Manager (ARM) client ...
==> azure-arm: Creating resource group ...
==> azure-arm: -> ResourceGroupName : 'packer-Resource-Group-20t0mp7hzm'
==> azure-arm: -> Location : 'Australia SouthEast'
==> azure-arm: Validating deployment template ...
==> azure-arm: -> ResourceGroupName : 'packer-Resource-Group-20t0mp7hzm'
==> azure-arm: -> DeploymentName : 'pkrdp20t0mp7hzm'
==> azure-arm: Deploying deployment template ...
==> azure-arm: -> ResourceGroupName : 'packer-Resource-Group-20t0mp7hzm'
==> azure-arm: -> DeploymentName : 'pkrdp20t0mp7hzm'
==> azure-arm: Deployment failed with a status of 'Failed'.
==> azure-arm: Deployment failed with a status of 'Failed'.
Build 'azure-arm' finished.
Lastly, without the 'username' field, the build proceeds but the OS generalization also fails after a long timeout - maybe because of sudo issue again?
==> azure-arm: Executing OS generalization...
==> azure-arm: OS generalization has non-zero exit status.
==> azure-arm:
==> azure-arm: Stdout:
==> azure-arm: We trust you have received the usual lecture from the local System
==> azure-arm: Administrator. It usually boils down to these three things:
==> azure-arm:
==> azure-arm: #1) Respect the privacy of others.
==> azure-arm: #2) Think before you type.
==> azure-arm: #3) With great power comes great responsibility.
==> azure-arm:
==> azure-arm: [sudo] password for packer:
Happy to test
Thanks