how to elimilate the cost of azure for postgresql

chaowen guo 16 Reputation points
2021-06-13T04:47:55.567+00:00

In https://azure.microsoft.com/en-us/free/students/, I see

Azure Database for PostgreSQL NEW
DATABASES
750 hours

So I use the following command to create azure postgresql:
az group create -n postgres -l westus
az postgres server create -n postgrespostgres -g postgres -u postgres -p po1st!gr%es --sku-name B_Gen5_1 --version 11
az postgres server firewall-rule create -n allowallip -g postgres -s postgrespostgres --start-ip-address 0.0.0.0 --end-ip-address 255.255.255.255

After a day, I see:
Azure Database for PostgreSQL vCore $0.37
Azure Database for PostgreSQL Data Stored $0.07

It seems that it is not totally free, I want to ask how to modify the az command so that I can eliminate all the cost.

Thank you very much

Azure Cost Management
Azure Cost Management
A Microsoft offering that enables tracking of cloud usage and expenditures for Azure and other cloud providers.
2,568 questions
Azure Database for PostgreSQL
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anurag Sharma 17,606 Reputation points
    2021-06-14T09:30:06.93+00:00

    Hi @chaowen guo , welcome to Microsoft Q&A forum.

    As per the link provided by you, we get $100 credit and whatever resources we create/use, the cost is adjusted in these $100. All resources that we provision on Azure will have some cost associated to them but in free subscriptions instead of charging those cost to users this gets deducted from the credit which is provided (in this case $100).

    Now in your specific case the Azure Database for PostgreSQL that you provisioned would have costed $0.37 if you were using paid subscription. But for your free version, this amount is deducted from $100 which does not cost anything to you. Once we consume this limit, then our account gets disabled which we can upgrade to pay-as-you-go subscription as chargeable in the Azure portal.

    You can check below link for more details:
    Frequently asked questions about the Education Hub

    As per my knowledge you have not provided any payment details like credit card, still let me know if it is otherwise.

    Please let me know if this help or you need any more details.

    ----------

    If answer helps, please mark it 'Accept Answer'


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.