Azure function Elastic scale out through ARM template.

Pranav Kumar Kazipeta 1 Reputation point
2021-09-09T16:14:42.93+00:00

We wanted to implement Enforce Scale out Limit - to yes and Max Scale Out Limit - 3 through ARM template under Azure Function premium plan .We are able to do this on Azure Portal but failed to implement with ARM template.

So far we have tried these properties which are suggested in Microsoft Documentation Property Name: Functionappscalelimit and reservedinstancecount we are not getting any error but at the same time , it is not reflecting at all.

Here is the snapshot of the property on Azure portal which we wanted to change through ARM template.

130739-image.png

az functionapp plan update -g resourceGroup --sku EP1-n premiumplanname --max-burst 5 this is working for me to change the Maximum Brust but how can i do this using ARM template in the function.json under app settings.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,911 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MikeUrnun 9,777 Reputation points Moderator
    2021-09-10T01:05:03.423+00:00

    Hello @Pranav Kumar Kazipeta

    The particular setting ( functionAppScaleLimit ) is documented here: Event-driven Scaling. On the ARM side of things, it belongs to the same Microsoft.Web/sites resource type that Functions uses: https://learn.microsoft.com/en-us/azure/templates/microsoft.web/sites?tabs=json

    Sample:

    {  
      "name": "string",  
      "type": "Microsoft.Web/sites",  
      "apiVersion": "2020-12-01",  
      "kind": "functionapp",  
      "location": "string",  
      "tags": {},  
      "properties": {  
          ....  
          "SiteConfig":{  
              ...  
              "functionAppScaleLimit": "integer",  
              ...  
           }  
          ....  
      }  
    }  
    

    Hope this helps, let me know if you run into issues.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.