-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Error StatusCode=0 when creating Function App #1271
Comments
hey @mirogta Thanks for opening this issue :) Taking a look at the API response here - it appears the connection dropped (since you're getting an EOF) - out of interest are you running behind a corporate proxy of any kind? Do you also see this issue if you re-run Given the name for a Function App (and thus App Service) needs to be globally unique - out of interest do you see the same issue when using a more unique name (e.g. Thanks! |
We are running behind a corporate proxy. When I rerun I have modified the actual function name to Thanks |
👍
Thanks for confirming that - so that we can rule out the environment specific configuration - would you be able to run Terraform with the In that log - would you be able to post the (sanitized e.g. without the
Interesting - out of interest is this resource visible in the API at all? You can see this at https://resources.azure.com and then navigating down (subscriptions -> [name] -> resourceGroups -> [name] -> providers -> Microsoft.Web -> sites -> [name]) - if this exists. I'm not using a Proxy - but the following example is working for me; so if this isn't appearing it'd be good if you could confirm if this works:
Thanks, |
Hi Tom, I've raised a support ticket with Microsoft to also see what is happening on their end in Azure, since whatever works or not in this terraform provider, it leaves an invisible resource in Azure which seems like at least a small bug on their side. I have tried a minimal example with a few modifications:
(Un)fortunately this minimal example works OK.
This makes me think that that particular Function App resource with that particular name that was failing got somehow stuck in Azure, even after destroying the whole resource group and trying to recreate it. The Function App resource was not visible in https://resources.azure.com Closing as I can't reproduce the error now. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
Getting the following error when deploying a Function App.
It's in a Consumption plan, however not sure if it is because of that, haven't tried to deploy with an App Service Plan
It's a very simple deployment following the Example Usage (in a Consumption Plan) here:
https://www.terraform.io/docs/providers/azurerm/r/function_app.html
What actually happens is that it looks like the Function App is created, because when I navigate to the App Service Plan, it does show it there, but when I select it then it does not show it. It also does not show it under the Function App pane. However when I try to create a new Function App with the same name, it says that it can't be created because of a conflicting name. So it is somehow stuck, the Function App exists in Azure but is not visible or accessible. The only way to get around this problem is to delete the whole resource group and create the Function App manually. I can't delete just the App Service Plan, since it contains a Function App but can't delete the Function App because Azure doesn't actually show it anywhere and it can't navigate to it.
Terraform Version
Terraform v0.11.7
Affected Resource(s)
Terraform Configuration Files
Debug Output
https://gist.github.com/mirogta/2a6478b2813d2b3ef142d855562f99c1
Expected Behavior
Function App should be created.
Actual Behavior
The text was updated successfully, but these errors were encountered: