Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webapp: bad errors when fails to create a Free plan [Need validation to check if Free Quota is met before creating ASP] #1007

Closed
yugangw-msft opened this issue Sep 28, 2016 · 4 comments
Assignees
Labels
App Services az appservice
Milestone

Comments

@yugangw-msft
Copy link
Contributor

yugangw-msft commented Sep 28, 2016

If the subscription has hit the limit of 10, you get an error, but too general.
Several options to address it. Webapp's service can improve to return standard response with an error field. Python autorest runtime should fix a bug to detect the Details field like C# and node version (Azure/autorest#1404). I would prefer to get autorest runtime fixes first since we are already on it.

Python LRO returns
Operation failed with status: 'Conflict'. Details: 409 Client Error: Conflict for url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/yugangw/providers/Microsoft.Web/serverfarms/yugangw-junk1?api-version=2015-08-01

The actual response is:
msrest.http_logger : b'{"Code":"Conflict","Message":"The maximum number of Free ServerFarms allowed in a Subscription is 10.","Target":null,"Details":[{"Message":"The maximum number of Free ServerFarms allowed in a Subscription is 10."},{"Code":"Conflict"},{"ErrorEntity":{"Code":"Conflict","Message":"The maximum number of Free ServerFarms allowed in a Subscription is 10.","ExtendedCode":"59301","MessageTemplate":"The maximum number of {0} ServerFarms allowed in a Subscription is {1}.","Parameters":["Free","10"],"InnerErrors":null}}],"Innererror":null}'
error

@321ckatz123
Copy link

@yugangw-msft how did you get that actual error? I'm running into this as well now.

@yugangw-msft
Copy link
Contributor Author

@321ckatz123, the CLI logic is here, assume it still works :)

@321ckatz123
Copy link

Thank you @yugangw-msft. For those who might run into this in the future, my issue was I had an (unused) Linux app service plan in my resource group from when I was playing around. Even though I wasn't using it for my function app, I think Azure was still unhappy. Once I deleted it, the function app was created successfully. My only clue was when I was pointed to the actual source code in the previous comment...

To @yugangw-msft's point, better error handling here would have been a life saver.

@panchagnula panchagnula changed the title webapp: bad errors when fails to create a Free plan webapp: bad errors when fails to create a Free plan [Need validation to check if Free Quota is met before creating ASP] Feb 13, 2018
@mayurid mayurid added Web Apps and removed Web Apps az webapp labels Jun 15, 2018
@tjprescott tjprescott added App Services az appservice and removed Web Apps labels Oct 4, 2018
@panchagnula panchagnula added this to the Sprint 61 milestone May 7, 2019
@panchagnula panchagnula modified the milestones: Sprint 61, Sprint 62 May 16, 2019
@adewaleo adewaleo modified the milestones: Sprint 62, Sprint 63 May 31, 2019
@guanwening
Copy link

Operation failed with status: 'Conflict'. Details: 409 Client Error: Conflict for url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/yugangw/providers/Microsoft.Web/serverfarms/yugangw-junk1?api-version=2015-08-01

The actual response is:
msrest.http_logger : b'{"Code":"Conflict","Message":"The maximum number of Free ServerFarms allowed in a Subscription is 10.","Target":null,"Details":[{"Message":"The maximum number of Free ServerFarms allowed in a Subscription is 10."},{"Code":"Conflict"},{"ErrorEntity":{"Code":"Conflict","Message":"The maximum number of Free ServerFarms allowed in a Subscription is 10.","ExtendedCode":"59301","MessageTemplate":"The maximum number of {0} ServerFarms allowed in a Subscription is {1}.","Parameters":["Free","10"],"InnerErrors":null}}],"Innererror":null}'
error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
App Services az appservice
Projects
None yet
Development

No branches or pull requests

8 participants