For AI agents: A markdown version of this page is available at https://docs.datadoghq.com/security/code_security/iac_security/iac_rules/terraform-azure-azure-instance-using-basic-authentication.md.
A documentation index is available at /llms.txt.
Allowing basic password authentication for Azure virtual machines introduces a significant security risk, as passwords can be easily guessed, brute-forced, or leaked. When disable_password_authentication = false is set in the os_profile_linux_config block, as shown below, the VM permits password-based SSH logins:
Instead, SSH key authentication should be required to ensure secure, cryptographically strong access to the instance, as in the following configuration: