@Mohsen Shaverdy Nasery , Thanks for reaching out If you are using the custom auto scale in your app service you change the auto scale rule duration to 1 minute but setting a duration less than 5 minutes may generate transient metric spikes that leads to unexpected scaling actions. It is recommended for the best results; the duration should be set at least 5 minutes.
As mentioned in the documentation, Azure virtual machine scale sets, service fabric, cloud service and Azure web app depends on the Azure monitor auto scale. Azure Functions differs from the previous compute services because you don't need to configure any auto scale rules. Instead, Azure Functions automatically allocates compute instances when your code is running, scaling out as necessary to handle load.