does that user/pass have access to the VM? https://docs.microsoft.com/en-us/azure/virtual-machines/windows/build-image-with-packer
That may explain why this is failing per documentation should be client_secret and not winrm_password On Mon, Oct 22, 2018 at 8:43 AM Muhammad Faizan-Ul-Haq <[email protected]> wrote: > I am trying to create a Windows 10 image in Azure using packer and > provision it using ansible. > My provisioning is failing and I want to troubleshoot it but somehow I am > not able to login (RDP )to the VM created by docker using the > winrm_password. > I wonder if I am doing something wrong. > Packer version: 1.2.4 > > "os_type": "windows", > "image_publisher": "MicrosoftWindowsDesktop", > "image_offer": "Windows-10", > "image_sku": "RS3-PRO", > "os_disk_size_gb": "{{user `os_disk_size_gb`}}", > "virtual_network_name": "XXXXX", > "virtual_network_resource_group_name": "XXXXXX", > "virtual_network_subnet_name": "XXXXXX", > > "communicator": "winrm", > "winrm_password" : "{{user `client_secret`}}", > "winrm_use_ssl": "true", > "winrm_insecure": "true", > "winrm_timeout": "3m", > "winrm_username": "packer", > > "azure_tags": { > "dept": "engineering", > "task": "image deployment" > }, > > "location": "North Europe", > "vm_size": "Standard_DS2_v2" > }], > "provisioners": [ > { > "user": "my_user", > "type": "ansible", > "playbook_file": "ansible/{{user `winconfig`}}.yml", > "groups": [ "packer" ], > "host_alias": "packer", > "extra_arguments": [ > "--connection", "packer", > "--extra-vars", "ansible_shell_type=powershell > ansible_shell_executable=None", > "--extra-vars", "winrm_password={{user `client_secret`}}", > "--vault-password-file={{user `ansiblevaultpwdfile`}}" > ] > } > > packer build -on-error=abort -var ---- > > -- > This mailing list is governed under the HashiCorp Community Guidelines - > https://www.hashicorp.com/community-guidelines.html. Behavior in > violation of those guidelines may result in your removal from this mailing > list. > > GitHub Issues: https://github.com/mitchellh/packer/issues > IRC: #packer-tool on Freenode > --- > You received this message because you are subscribed to the Google Groups > "Packer" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/packer-tool/d6589d40-d257-4f8c-9523-275711eef917%40googlegroups.com > <https://groups.google.com/d/msgid/packer-tool/d6589d40-d257-4f8c-9523-275711eef917%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Alvaro -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/mitchellh/packer/issues IRC: #packer-tool on Freenode --- You received this message because you are subscribed to the Google Groups "Packer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CAHqq0ex5bAQ8KJqBpqCOsNB0KUBhXSSq3X3eTQC%2B%2BnvKzaSAPQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
