Azure Basic Small App Pricing

I had to go from general to basic to take advantage of SSL support and with that I knew there would be a price increase. But for me it has grown exponentially - it will cost me an extra £ 50 a month. I turned off the "Always on" setting and from analytics. I can see there is no traffic between 11:00 pm and 5:00 am during the night, but I am averaging 22 hours a day for the last 23 days ... which is effectively "Always On". Does anyone know if I need to change anything else to keep costs down? Is there a parameter that determines how long the service will go to sleep?

+3


source to share


2 answers


The cost you pay for instances in the App Service runs all the time, traffic doesn't matter.

If you have 1 copy in the plan, you pay for that 1 copy all the time. Always On simply disallows the application to run idle. It will not reduce billing if you turn it off.



At a minimum and above, you pay for 1 instance + outbound data traffic.

+5


source


As juunas reported, Always on can't help you save money, just go to bed and free up resources for other web apps in the same service plan.

Does anyone know if I need to change anything to keep costs down? Is there a parameter that determines how long the service will go to sleep?

Even if you stop your app, App Service service charges still apply and the service plan cannot be stopped. For a workaround, you can schedule a task and call the Azure Management SDK to toggle the App Servicing Plan (Generic, Basic).

Use Microsoft.WindowsAzure.Management.WebSites by authenticating with a management certificate. Here is the kernel code, you could refer to it:



Change the price level from Basic to Shared

using (WebSiteManagementClient webappClient = new WebSiteManagementClient(credential))
{
    //you could leverage webappClient.WebSpaces.List() to retrieve your webspace
    //the format of your web space would be: "{resource-group-name}-{location-of-your-appserviceplan}webspace"
    var webSpace="{your-web-space}";
    webappClient.WebHostingPlans.Update(
        webSpace,
        "{The name of the web hosting plan}",
        new Microsoft.WindowsAzure.Management.WebSites.Models.WebHostingPlanUpdateParameters()
        {
            NumberOfWorkers = 1,
            SKU = Microsoft.WindowsAzure.Management.WebSites.Models.SkuOptions.Shared
        });
}

      

Note. ... After changing the pricing level to General, the configured SSL certificates will be backed up and until you change it to Basic, you can restore it and it can take effort to change it. Moreover, if you are scaling your application across multiple instances, you need to specify the NumberOfWorkers property when changing the price level in Basic. For more detailed steps, you can refer to this similar issue.

+1


source







All Articles