question

Gerardo-1017 avatar image
0 Votes"
Gerardo-1017 asked MughundhanRaveendran-MSFT commented

With playfab are my using azur serverless functions? if so How much does it cost to use Azure serverless functions?

I started using playfab a month ago which seems to use azure serverless functions or something of the sort they call it azure cloud functions, recently my free subscription seems to have run out. I saw that I had 300$ of azure money somewhere hopefully my free subscription didn't end because I used it all if so then I guess those azure functions are too expensive for me.
I know the pricing for the azure serverless functions is probably complex to understand but i'm very lost in where to look. I'm using these azure function to make a chat for multiplayer game. I mainly use the azure functions for clients to request a chat with other clients or for clients to check if another client is requesting to chat with them. Every client may be calling an azure function once ever 2 seconds. My game is probably going to be very unpopular so I'm looking for an options that doesn't cost me much especially if I have no one using the functions.

Here I see where I have to get my subscription.
202531-image.png

Maybe I'm wrong but the subscription seems to be a sort of general azure subscription not only a subscription for azure server-less functions.

Thanks in advance for any help.


azure-functions
image.png (133.7 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MughundhanRaveendran-MSFT avatar image
1 Vote"
MughundhanRaveendran-MSFT answered MughundhanRaveendran-MSFT commented

Hi @Gerardo-1017 ,

Thanks for reaching out to Q&A forum.

I can understand that your free credit period is over and you are moving to "pay as you go" subscription. The screenshot that you have attached is to choose the support plan under the subscription,

202841-image.png


You can choose any one of the support plans that you would prefer. More details here: https://azure.microsoft.com/en-in/support/plans/

Please note that, creation of resources like Functions does not depend on the support plan. Only the supportability of the resource would differ.

Now to answer the Azure Functions queries. To test, experiment and run smaller workloads, you can choose to run the Azure function app on consumption plan. For a consumption plan function app, you are charged for the number of executions. Also Consumption plan pricing includes a monthly free grant of 1 million requests and 400,000 GB-s of resource consumption per month per subscription in pay-as-you-go pricing across all function apps in that subscription. Also it is a serverless architecture where the backend instances are added automatically when the load increases.

You can calculate the function app pricing using the Pricing calculator : https://azure.microsoft.com/en-us/pricing/details/functions/

Function app consumption : https://docs.microsoft.com/en-us/azure/azure-functions/consumption-plan

I hope this helps! Feel free to reach out to me if you have any further queries.

Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.



image.png (74.1 KiB)
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

So if I understand correctly once I put my billing information and I get a support plan I'll be able to use my azure function app that will have by default the consumption plan in which I'm charged by GB/s and amount of executions. Is there anyway to cap the amount of money I spend monthly so my functions just stop working if I have clients using too many functions. I'm mainly worried of hackers making multiple accounts on my app and potentially costing me a lot of server money. I'm thinking of capping the max I spend at 20$

also I'm not sure if I'm the only one but I find this page really confusing : https://azure.microsoft.com/en-us/pricing/details/functions
the example at the end is the consumption plan right? but before that the premium plan is mentioned and few other things so I'm not entirely sure I understand it.

0 Votes 0 ·

@Gerardo-1017 ,

I would like to clarify a few things.

Azure functions can be run in three following plans/SKU.

  1. Consumption

  2. Premium

  3. Dedicated App service plan

Consumption is not the default option, it is up to you to choose the plan during the creation of resource.

Unfortunately it is not possible to put a pricing limit on Consumption/premium plans. However you can choose the dedicated app service plan where you can choose the infrastructure of the Azure functions upfront.

Please see App service plan pricing : https://azure.microsoft.com/en-us/pricing/details/app-service/windows/

I understand the the consumption plan pricing document is confusing. Please calculate the pricing of consumption plan using this calculator which is simpler : https://azure.microsoft.com/en-us/pricing/calculator/


0 Votes 0 ·
MughundhanRaveendran-MSFT avatar image MughundhanRaveendran-MSFT MughundhanRaveendran-MSFT ·

@Gerardo-1017 ,

Following up to see if the above answer helps. Do let me know if you have any queries.

Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

0 Votes 0 ·