-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Comments
@yugangw-msft how did you get that actual error? I'm running into this as well now. |
@321ckatz123, the CLI logic is here, assume it still works :) |
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. |
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: |
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 theDetails
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
The text was updated successfully, but these errors were encountered: