Problem scenario
You try to run terraform apply to create an Azure VM but you receive a message like this:
Error: Error applying plan:
1 error(s) occurred:
* azurerm_virtual_machine.myterraformvm: 1 error(s) occurred:
* azurerm_virtual_machine.myterraformvm: compute.VirtualMachinesClient#CreateOrUpdate: Failure sending request: StatusCo” Message=”Authentication using either SSH or by user name and password must be enabled in Linux profile.” Target=”linux”
What should you do?
Solution
1.
…