Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Azure by (13.1k points)
We are working on a project based on Terraform where we have created a VM but all the other members have different SSH keys, so we need to delete the VM. Can anyone help me with this?

1 Answer

0 votes
by (26.7k points)
edited by

In this case, you can go for using static public key something like this:

admin_username      = "azureroot"

admin_ssh_key {

   username = "azureroot"

   public_key = "xxxxxxxxx"

}

So that, I will not create any problem. You can execute terraform code and also you can change as per your requirements like NSG rules.

I hope this will help.

Want to become an Azure expert? join Azure Architect training now!!

Related questions

0 votes
1 answer
0 votes
1 answer
asked Dec 31, 2020 in Azure by dante07 (13.1k points)
0 votes
1 answer

Browse Categories

...