Azure Web Apps must accept only HTTPS traffic to protect data in transit from interception, tampering, and credential or session-token exposure. For Ansible deployments using the azure_rm_webapp or azure.azcollection.azure_rm_webapp module, the https_only property must be defined and set to true (or yes). Tasks that omit https_only or set it to a false value are flagged.
Secure configuration example:
- name:Create web app with HTTPS onlyazure.azcollection.azure_rm_webapp:name:my-webappresource_group:my-rgplan:my-planhttps_only:yes
Compliant Code Examples
- name:Create a windows web app with non-exist app service planazure_rm_webapp:resource_group:myResourceGroupname:myWinWebapphttps_only:trueplan:resource_group:myAppServicePlan_rgname:myAppServicePlanis_linux:falsesku:S1
Non-Compliant Code Examples
- name:Create a windows web app with non-exist app service planazure_rm_webapp:resource_group:myResourceGroupname:myWinWebapphttps_only:falseplan:resource_group:myAppServicePlan_rgname:myAppServicePlanis_linux:falsesku:S1- name:Create another windows web appazure_rm_webapp:resource_group:myResourceGroupname:myWinWebappplan:resource_group:myAppServicePlan_rgname:myAppServicePlanis_linux:falsesku:S1
1
2
rulesets:- Ansible / Azure # Rules to enforce / Azure.
맞춤형 데모 요청
Datadog 시작하기
Ask AI
AI-generated responses may be inaccurate. Verify important info.