creating Function (Subscription: "xxxxxxxxxxxxxxxxxxxxxxx"
│ Resource Group Name: "xxx-test"
│ Site Name: "xxx-test-westeurope-events-fun-app"
│ Function Name: "faber-test-westeurope-dev_events-func"): performing CreateFunction: unexpected status 400 (400 Bad Request) with response: {"Code":"BadRequest","Message":"Encountered an error (InternalServerError) from host
│ runtime.","Target":null,"Details":[{"Message":"Encountered an error (InternalServerError) from host runtime."},{"Code":"BadRequest"},{"ErrorEntity":{"Code":"BadRequest","Message":"Encountered an error (InternalServerError) from
│ host runtime."}}],"Innererror":null}
Expected Behaviour
If the function of type Event Grid Trigger, will be created as second (not for first) i've a BadRequestError.
Expected behaviour is that the app function App dev_events_function (python v1 programming model) will be created.
So i tried to create this app using python programming model v2 (that don't require function.json configuration file, but use python decorators), but is now currently impossible because on terraform , the config_json is a REQUIRED param (but in v2 isn't required).
Actual Behaviour
azurerm_function_app_function resource of type Python (programming model v2) is impossible to create.
azurerm_function_app_function resource of type Python (programming model v1) using Event Grid Trigger is impossible to create if created as second app function.
Is there an existing issue for this?
Community Note
Terraform Version
1.6.6
AzureRM Provider Version
3.97.1
Affected Resource(s)/Data Source(s)
azurerm_function_app_function
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
If the function of type Event Grid Trigger, will be created as second (not for first) i've a BadRequestError.
Expected behaviour is that the app function App dev_events_function (python v1 programming model) will be created. So i tried to create this app using python programming model v2 (that don't require function.json configuration file, but use python decorators), but is now currently impossible because on terraform , the config_json is a REQUIRED param (but in v2 isn't required).
Actual Behaviour
Steps to Reproduce
terraform apply
Important Factoids
No response
References
No response