Team, Trying to provision VM in Azure Environment using Ansible. However, getting error while running the command -
$ sudo ansible-playbook azure_create_vm.yml PLAY [Create Azure VM] ********************************************************* TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Create VM] *************************************************************** fatal: [localhost]: FAILED! => {"changed": false, "msg": "Error creating or updating virtual machine myVM1 - Azure Error: InvalidParameter\nMessage: Destination path for SSH public keys is currently limited to its default value /home/ansibleubuntu_admin/.ssh/authorized_keys due to a known issue in Linux provisioning agent.\nTarget: linuxConfiguration.ssh.publicKeys.path"} to retry, use: --limit @/home/ansibleubuntu_admin/azure_create_vm.retry PLAY RECAP ********************************************************************* localhost : ok=1 changed=0 unreachable=0 failed=1 I`ve followed the Ansible article to create the credentials.ini and stored the SSH keys. Wondering what steps to perform to check if any mistake with SSH key. Please find my azure_create_vm.yml file for details. $ vim azure_create_vm.yml - name: Create Azure VM hosts: localhost connection: local tasks: - name: Create VM azure_rm_virtualmachine: resource_group: ansible name: myVM1 vm_size: Standard_B2s admin_username: ansibleubuntu_admin ssh_password_enabled: false ssh_public_keys: - path: /home/ansibleubuntu_admin/.ssh/id_rsa.pub key_data: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDHlUSOoRcz6ZbQsqIz2Q/vAW6VspvWLounnV4S3c2yTJpK9iHUkcp4oc6Nev4vna84P5BrisDjOkDvnv4eVfCVqB7SYUxGlHdnGi6nnwkLhx6kVZalRi0opdSYDkfk1/q1TCUaLDJp/cErMH/8ItLEJlWsSHuo/ccbkRaKBPvSGJPEKMqmzEJFjTjeUg9MJU3/4EC+NGvLVuoxMrt00WrcdERthVAnAgkbnxIhfbv9+PdjeeCzpWu7SOsHiXQr52xnrLX4VKcEiAXtwYa02kZYcv11ERkjyq7sCiNdcNK+9BXuAgcDcAHV2eXd3NE/qyKfxvTWaHk2esTlwMiH3zsd" image: offer: UbuntuServer publisher: Canonical sku: '16.04-LTS' Any pointer will be deeply appreciated. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/498fb4d5-7587-4a33-871e-db8524cb165a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.