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-app-service-authentication-disabled.md.
A documentation index is available at /llms.txt.
Azure App Service authentication settings should be enabled to ensure that access to the application is restricted to authenticated users. Without enabling the auth_settings { enabled = true } block in Terraform, anyone can anonymously access the app, which exposes it to unauthorized access and potential misuse of sensitive data or resources. Properly configuring authentication securely helps mitigate risks from attacks such as data exfiltration, account takeover, or service abuse.