Reputation: 425
I have been testing around with the Azure App Services and got this error
App Service Plan Create operation is throttled for subscription
.
As I understand I created too many apps in a short period, how long until I can create a new app again?
Thank you
Upvotes: 8
Views: 4349
Reputation: 146
App Service Plan Create operation is throttled for subscription
with 429 status code this error occurs when you have too many deployments/failed deployments of an app service plan within a short period of time. This causes the system to throttle any additional deployments for the next 48 hours. If this occurs, you will need to wait 48 hours to complete a deployment in that region or contact support to see if they will remove the throttle.
This limit is per region, which is why you can able to use other regions.
Quick Solution: use any other region and create a new azure app service it will work fine and resolve your issue.
Upvotes: 5
Reputation: 2431
TL;DR it can take a couple of days for a subscription to settle down regarding quotas [weird but apparently true]
I experienced something similar to @garrison-neely although perhaps even more confusing.
Anyway, like garrison-neely says it can take a while for new subscription to get fully quota-enabled - what I'm adding is that it can also start off just fine THEN a day or so later get a quota of zero established, THEN a day or so later start working again.
[and note: it's working now, who's to say if it won't stop working tomorrow!]
YMMV but the above was my experience.
Upvotes: 1
Reputation: 3289
I began receiving this error, but without the Retry-After property in the response. After working with Azure support, it turns out newly-created subscriptions take a while to fully allocate in the background. We had to wait 48 hours before the throttling error would go away, and that was what Azure support validated with us.
Once the 48 hours passed (and the new Azure sub was presumably complete in its creation), we no longer received the errors.
Upvotes: 1
Reputation: 5546
As I understand I created too many apps in a short period, how long until I can create a new app again?
We dont have any ideal time that how long until you have to wait to create a new app again.
Throttling happens at two levels. Azure Resource Manager throttles requests for the subscription and tenant.
When you reach the limit, you receive the HTTP status code 429 Too many requests. The response includes a Retry-After value, which specifies the number of seconds your application should wait (or sleep) before sending the next request. If you send a request before the retry value has elapsed, your request isn't processed and a new retry value is returned.
You can determine the number of remaining requests by examining response headers. Read requests return a value in the header for the number of remaining read requests. Write requests include a value for the number of remaining write requests.
You refer this documentation,on how to Retrieving these header values in your code.
Upvotes: 0