Terraform azurerm_linux_virtual_machine admin_ssh_key

Hello there,

Can anyone help explain or tell me what is the best practice when it comes to storing and using the admin_ssh_key public_key? The problem I am experiencing is when I am collaborating with someone else, this block picks up the other person’s ssh key from that location and then creates new resources and destroys the old one. Is there a best practice to handle this to prevent new resources being created and allowing collaborations between multiple team members?
admin_ssh_key {
username = “azureuser”
public_key = file("~/.ssh/id_rsa.pub")