-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Azure ssh key issue #2419
Comments
As an aside if I use a |
This same issue |
Look like this is issue with azure-sdk-for-go. This same issue with small Go app created with azure-sdk-for-go. |
In #3099 we request a feature to be able to upload the ssh key from terraform. In this commit you can see that we implemented automation around this using a |
Guys, all wrong direction. For those of you who made the correct decision to stick with TF for Azure, here is what I found after a whole day wasted on this: 0, we are talking about classic ASM mode here. It's very strange to understand consider AWS/CloudStack would let you create ssh public key as an object and reference that in your deployment. But anyway, this is Microsoft we are talking about. So the proper procedure: If you are making your own image, leave the id_rsa.pub in authorized_keys as normal. Otherwise for Azure images, I believe they all have some kind of cloud init in it to fetch keys at boot time. Things TF doesn't do: upload .cer step. Will look further as otherwise this is not full automation. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Hi there,
I'm trying out the azure provider in the latest master branch and receiving the following issue when trying to provision an instance -
My azure_instance looks something like this -
I'm using a Linux host and building with a custom Ubuntu based image i've baked using the Packer azure plugin.
I've followed this guide to create an SSH key for Azure - https://azure.microsoft.com/en-gb/documentation/articles/virtual-machines-linux-use-ssh-key/
and uploaded it to https://manage.windowsazure.com/@myusername#Workspaces/AdminTasks/ListManagementCertificates
I'm wondering if this is just a user error (i've missed a step) or if there is something wrong here.
Following the docs for azure i'm using the AZURE_SETTINGS_FILE downloaded from https://manage.windowsazure.com/publishsettings
How do I associate an SSH key with my instance, is this possible via terraform in a similar way to http://terraform.io/docs/providers/aws/r/key_pair.html ?
The text was updated successfully, but these errors were encountered: