SSH authentication is not enabled for Azure Virtual Machine, basic authentication is easier to break, this may lead to unauthorized access.
Once a Virtual Machine is created in the console, the authentication mode cannot be changed. To create a resource with the correct settings, follow the steps below.
In Azure Console -
In Terraform -
Deprecated in favor of azurerm_linux_virtual_machine and azurerm_windows_virtual_machine:
References:
https://learn.microsoft.com/en-us/azure/virtual-machines
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/virtual_machine