Hi @Mustafa Savas,
Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.
The error message you received indicates that your subscription does not have the necessary permissions to provision resources in the West US 2 region.
you can check if your subscription has the necessary permissions to create resources in the West US 2 region. You can do this by checking the Azure role-based access control (RBAC) settings for your subscription.
To check the RBAC settings for your subscription, follow these steps:
- Go to the Azure portal and navigate to your subscription.
- Click on "Access control (IAM)" in the left-hand menu.
- Check if your account has the necessary permissions to create resources in the West US 2 region. You can do this by checking if your account is assigned a role that has the "Microsoft.Compute/locations/write" permission for the West US 2 region.
Azure Program offerings (Azure Pass, Imagine, Azure for Students, MPN, BizSpark, BizSpark Plus, Microsoft for Startups / Sponsorship Offers, Microsoft Developer Network(MSDN) / Visual Studio Subscriptions) have access to a limited set of regions.
If your subscription is part of above offerings and you require access to any of the listed regions, submit an access request. Alternatively, you may opt for an alternate region:
Australia Central, Australia Central 2, Australia SouthEast, Brazil SouthEast, Canada East, China East, China North, China North 2, France South, Germany North, Japan West, Jio India Central, Jio India West, Korea South, Norway West, South Africa West, South India, Switzerland West, UAE Central, UK West, US DoD Central, US DoD East, US Gov Arizona, US Gov Texas, West Central US, West India.
Your subscription may not have access to create a server in the selected region. To resolve this issue, file a https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/how-to-request-quota-increase
We request you to click on below mentioned link to know about availability of the Azure Database for PostgreSQL flexible server in Azure regions.
https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/overview#azure-regions
I hope, This response will address your query and helped you to overcome on your challenges.
If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.