Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AzSK- App Service - Many control IDs should be specific for an app service (Microsoft.Web/sites) #351

Open
rai-m opened this issue Aug 17, 2020 · 0 comments

Comments

@rai-m
Copy link

rai-m commented Aug 17, 2020

I am using AzSK ARM Template Checker to define controls on the ARM templates that are created for building discrete components in Azure.

The AzSK ARM Template Checker expects that the App Service Plan and the App Service is deployed with a single template, and hence extends certain App Service controls to Microsoft.Web/serverFarms which otherwise are specific for app services. This is a challenge when you want to validate independent resources (say an app service plan alone).

Example App Service specific ControlIDs that should NOT extend to Microsoft.Web.serverFarms

  • Azure_AppService_Config_Disable_Remote_Debugging
  • Azure_AppService_Config_Disable_Web_Sockets
  • Azure_AppService_BCDR_Use_AlwaysOn
  • Azure_AppService_Deploy_Use_Latest_Version
  • Azure_AppService_Audit_Enable_Logging_and_Monitoring
  • Azure_AppService_DP_Dont_Allow_HTTP_Access
  • Azure_AppService_AuthN_Use_AAD_for_Client_AuthN
  • Azure_AppService_AuthN_Use_Managed_Service_Identity
  • Azure_AppService_DP_Use_Secure_TLS_Version

Here is my simple App Service Plan resource in the template:

 {
      "name": "[parameters('name')]",
      "type": "Microsoft.Web/serverfarms",
      "apiVersion": "2020-06-01",
      "location": "[parameters('location')]",
      "tags": "[parameters('tags')]",
      "properties": {
        "reserved": false
      },
      "sku": {
        "name": "[parameters('skuCode')]",
        "tier": "[parameters('sku')]",
        "capacity": "[parameters('skuCapacity')]"
      }
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant