What is Autoscale
Autosclae permit to have the right of ressource for the application. It’s possible to add resources in case of a more important use and to remove resources in case of a decrease of activity. It is necessary to specify a minimum/maximum number of instances to execute. Adding/deleting is done automatically using different rules.
Create ressource on Azure
Before implement Autoscale, you need to create ressource on Azure. You use use the Following JSON file for create ressource.
From the Azure portal, enter Custom Tempalte on search field and click on Deploy a custom template.
Click on Build your own template in the editor and copy the contents of the file.
Paste the contents of the file and click on Save
Select Subscription and Resource group. Check I agree to the terms and condition stated above and click on Purchase.
Azure ressource has been present Resource groups.
Configure Azure Autoscale
From the Azure portal, enter Monitor on the search field and click on Monitor.
Click on Autoscale and select a ressource that you want to scale. I choose my App Service plan APPNicolasBONNET.
Check Custom autoscale and enter the desired name.
Click on Add a rule.
Configure the rule as you want. By default if the CPU percentage of the resource exceeds 70 percent, the action is : Increase count by. Click on Add for add the new rules.
Configure all desired rules and configure Instance limits.
Click on Save for save modification.
CustomScale has now been configured. AutoScale Status on monitoring has been changed.