Add built-in rule tests for various Azure resources and configurations #379
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR adds additional tests to validate more built-in Azure Template Analyzer rules. The following rules are covered with corresponding Bicep templates and JSON test files:
TA-000002: Ensure remote debugging is disabled for App Services.
AppServicesDebugging.bicep
,AppServicesDebugging.json
,TA-000002.json
TA-000005: Ensure the latest TLS version is used in App Services.
AppServicesMinTLS.bicep
,AppServicesMinTLS.json
,TA-000005.json
TA-000008: Ensure remote debugging is disabled for Function Apps.
AppServiceFunctionDebugging.bicep
,AppServiceFunctionDebugging.json
,TA-000008.json
TA-000009: Ensure FTPS-only enforcement for Function Apps.
AppServiceFunctionFTPS.bicep
,AppServiceFunctionFTPS.json
,TA-000009.json
TA-000011: Ensure the latest TLS version is used in Function Apps.
AppServiceFunctionMinTLS.bicep
,AppServiceFunctionMinTLS.json
,TA-000011.json
TA-000014: Ensure remote debugging is disabled for Web Apps.
AppServiceWebAppDebugging.bicep
,AppServiceWebAppDebugging.json
,TA-000014.json
TA-000017: Ensure the latest TLS version is used in Web Apps.
AppServiceWebAppMinTLS.bicep
,AppServiceWebAppMinTLS.json
,TA-000017.json
TA-000020: Audit the use of custom RBAC roles, preferring built-in roles.
RoleDefinitionsRBAC.bicep
,RoleDefinitionsRBAC.json
,TA-000020.json
Each test validates both positive and negative scenarios to provide coverage for the above rules.
This checklist is used to make sure that common guidelines for a pull request are followed.
General Guidelines
Testing Guidelines