Get SKUs always returns null

Wesley Barisch 0 Reputation points
2024-12-27T08:56:32.1733333+00:00

What I want to get is a list of pricing plans before I create a app service plan to be able to choose which one fits best my interest. Just like Azure Portal 398746129-3a1afc46-1afd-4bd0-afa0-c76081dd381c This is not a query for plans already created in the subscription.
I've tried it through azure-sdk-for-.net:

var skus = await AppServiceExtensions.GetSkusAsync(subscription);
foreach (var sku in skus.Value.Skus)
{
        Console.WriteLine($"- Tier: {sku.Tier}, Size: {sku.Size}, Name: {sku.Name}");
}


The above code returns null.

Tried using Azure CLI: https://stackoverflow.com/questions/77308416/how-to-determine-azure-app-service-plan-skus-available-in-a-specific-subscriptio?noredirect=1&lq=1

But the solution in the link above only provides pricing info for plans already created.

An Azure-sdk contributor tried a http request for /subscriptions/{subscriptionId}/providers/Microsoft.Web/skus but it also returned null.

https://github.com/Azure/azure-sdk-for-net/issues/47644#event-15769222985

Hopefully Azure community can help me with this issue: Can App Service Plan Pricing list be queried before Plan creation?

Thank you for your efforts!

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,097 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Grmacjon-MSFT 18,646 Reputation points
    2024-12-27T21:14:26.7466667+00:00

    Hi @Wesley Barisch You are right, as of right now there isn't a direct way through the Azure SDK or Azure CLI to retrieve a list of available App Service plan pricing details before creating a plan.

    However, there are 2 alternatives you can try:

    1. You can use the Azure Pricing Calculator which allows you to explore and compare different pricing plans for Azure services, including App Service plans. You can select various options and see the estimated costs. Here's how you can use it:
      • Go to the Azure Pricing Calculator: https://azure.microsoft.com/en-us/pricing/calculator/
      • Select "App Service" in the Products tab.
      • Choose the appropriate options for your desired plan type (Free, Shared, Basic, Standard, Premium, Isolated) and instance location.
      • The calculator will display estimated costs based on your selections. You can adjust the configuration to see how pricing change
    2. Refer to the Azure documentation. There are App Service plan pricing details in the docs. Here are the relevant links:

    Hope that helps. Let us know if you have any questions

    -Grace

    0 comments No comments

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.