Reputation: 111
Template deployment failed. Deployment operation statuses: Failed: /subscriptions/7696ec04-ba92-4f74-99ad-27808b065cfe/resourceGroups/BookService20211123165113ResourceGroup/deployments/website_deployment_20211124144346 (exception) error (SubscriptionIsOverQuotaForSku): This region has quota of 0 instances for your subscription. Try selecting different region or SKU.
Upvotes: 11
Views: 15423
Reputation: 323
This method worked for me. As I'm from India, I tested it with these regions: West India, Central India, and South India. Please try using these regions.
Upvotes: 0
Reputation: 199
I was also facing same issue when I was creating the function through Azure Portal (Trail Version). When I tried same with help of Azure power shell it worked.
Below is the link for creating Functions through powershell commands.
Upvotes: 0
Reputation: 1
If you followed the MS learning pathway program for bicep, keep that in mind 'location' property does matter, if you are assigning its value by resourceGroup().location
, there's a potential risk that you will get the above errors. As a learner I am still not 100% sure about the reason, even my sandbox resource Group was created in 'West-us', but its 'Storage Account' for cloud shell was created based on my geographical location, in my case is 'southeast asia'. There are some vague concepts behind the scene for stopping you from directly using the original value(location) of 'resourceGroup'.
Upvotes: 0
Reputation: 81
There is currently (as of the time of this writing) an issue with creating a new Azure App Service directly from the 'Publish...' feature in Visual Studio for 'Free' Azure accounts. I do not believe Mohammad's answer is the best route since you are definitely allowed to use App Services under the 'Free' subscription in Azure and you should not have to upgrade your subscription to 'Pay as you go'.
To resolve this and avoid upgrading your subscription:
The exact steps may vary as Microsoft changes things, but the concept is that currently for Free accounts you have to to create the App Service in the Azure Portal first, instead of creating it through 'Publish' in Visual Studio.
Upvotes: 8
Reputation: 5708
I was using a trial subscription. I upgrade my subscription pay as you go (Basic). Now it works for me.
Upvotes: 3