Issue with Azure App service with App service plan using ARM template

Lakshmi Mandalapu 21 Reputation points
2020-07-21T08:35:02.493+00:00

We have created Azure app service with App service plan using ARM templates. However i have below questions regarding the same.

  1. What is the difference between workerSize and workerSizeId
  2. Using ARM template we have created app service with properties workerSizeId and numberOfWorkers. In Template we haven't provided workerSize , will workerSizeId in consideration for that app service.
  3. Is there any possibility to see in which WorkerPool (ex: workerSize,workerSizeId) app service is hosted

ARM Template :

{
"apiVersion": "2016-09-01",
"name": "[parameters('hostingPlanName')]",
"type": "Microsoft.Web/serverfarms",
"location": "[parameters('location')]",
"properties": {
"name": "[parameters('hostingPlanName')]",
"workerSizeId": "3",
"numberOfWorkers": "4",
"hostingEnvironment": "[parameters('hostingEnvironment')]"
},
"sku": {
"Tier": "PremiumV2",
"Name": "P3v2"
}
}

Azure App Configuration
Azure App Configuration
An Azure service that provides hosted, universal storage for Azure app configurations.
214 questions
0 comments No comments
{count} votes

Accepted answer
  1. singhh-msft 2,431 Reputation points
    2020-07-21T15:37:59.833+00:00

    Hello @Lakshmi Mandalapu ,

    Hope you are doing great! Thanks for reaching out to us.

    I recommend you validate the ARM templates of Azure App Service from here -

    1. servFarms - https://video2.skills-academy.com/en-us/azure/templates/microsoft.web/2018-02-01/serverfarms
    2. sites - https://video2.skills-academy.com/en-us/azure/templates/microsoft.web/2019-08-01/sites
    3. sites/config - https://video2.skills-academy.com/en-us/azure/templates/microsoft.web/2019-08-01/sites/config-appsettings

    *Or you can also export templates of already created resources from Azure portal as described here. *

    • For your question:
    1. What is the difference between workerSize and workerSizeId?
    • workerSize - VM size of the worker pool instances.
    • workerSizeId - Worker size ID for referencing the worker pool. As mentioned, here.
      • For your question:

    Using ARM template, we have created app service with properties workerSizeId and numberOfWorkers. In Template we haven't provided workerSize, will workerSizeId in consideration for that app service.

    As defined in previous point, both workerSize and workerSizeId are different, and you will have to set them separately.

    • For your question:

    Is there any possibility to see in which WorkerPool (ex: workerSize, workerSizeId) app service is hosted

    The monitoring of ASE Worker Pools is very well explained here.


0 additional answers

Sort by: Most helpful