hashicorp / terraform-provider-azure-classic

Terraform Azure Classic (Service Management) provider
https://www.terraform.io/docs/providers/azure/
Mozilla Public License 2.0
3 stars 11 forks source link

Azure provider: Resource to upload ssh keys or certificates to azure #4

Closed hashibot closed 6 years ago

hashibot commented 7 years ago

This issue was originally opened by @keymon as hashicorp/terraform#3099. It was migrated here as part of the provider split. The original body of the issue is below.


When creating an azure instance in terraform we can pass either a password or a SSH thumbprint.

This SSH thumbprint comes from a SSH key uploaded to the same azure_hosted_service defined in the instance, and uploaded using a method like this.

But terraform does not provide any way to upload the ssh key. Could be nice if terraform provides a resource to generate and upload the certificate and query the SSH thumbprint.

In our project we implemented this feature in a script like in this commit, which you can use as reference.

hashibot commented 7 years ago

This comment was originally opened by @aznashwan as https://github.com/hashicorp/terraform/issues/3099#issuecomment-152607167. It was migrated here as part of the provider split. The original comment is below.


@keymon: again; there was no way to add a key to instance through the ASM API directly back when it was written. What actually happens here is that the thumbprint you provide is added to the azure_hosted_service containing the instance (that was simply how the ASM API works...).

The upcoming ARM implementation makes managing keys per instance much more easy. Updates and/or further suggestions here: https://github.com/hashicorp/terraform/issues/3212

hashibot commented 7 years ago

This comment was originally opened by @chan-alex as https://github.com/hashicorp/terraform/issues/3099#issuecomment-221147867. It was migrated here as part of the provider split. The original comment is below.


The problem is ARM is nice but for some ASM will have to be supported for years to come. Years. Not days, not weeks, not months. Years.

vancluever commented 6 years ago

Hello!

Thank you for opening this issue and participating in the discussion. Today (December 19, 2017) we’ve announced the deprecation and archival of the Azure Classic Provider. Matching Microsoft’s commitment to gradually remove access to Azure Classic (or Service Management) which is outlined in this blog post, we are closing all open PR's and Issues here. This repository will remain available here on GitHub, but in an archived state, and no longer receiving support or new releases.

The Azure (Resource Manager) Provider remains fully supported and is our recommended approach for managing Azure with Terraform. More information about this process is available in the blog post linked above.

Thanks! The Terraform Team