An error occurs when debugging a python V2 model project created with "EventGrid Trigger" template
OS: Win10 Build Version: 20240704.1 Regression: Not a Regression
Repro Steps:
- Create a python V2 model project with "EventGrid Trigger" template.
- Debug the Project.
- Check whether no error occurs.
Expected: No error occurs.
Actual:
An error occurs.
More info:
- This issue also reproduces for Blob trigger/EventHub trigger template.
- This issue doesn't reproduce for HTTP trigger/Queue trigger/ServiceBus Queue trigger/Timer Trigger/ServiceBus Topic trigger template.
- This issue can be fixed if I fill the setting "AzureWebJobsStorage" manually. I think the root cause is that below prompt doesn't pop up when debugging the project.
So the setting "AzureWebJobsStorage" cannot be filled automatically.
We are taking a look at the create experience and discussing the option of having a separate local vs remote setting.json to uncouple and more easily track these individual settings.
This issue also reproduces when debugging C#/Python project created with Event Hub trigger template.
This issue can be fixed after adding value for this "AzureWebJobsStorage" setting.
I think there wasn't a requirement for storage accounts for http/timer/ and some other triggers which is probably why the prompt doesn't come up. I think we should just always make it a requirement now because I think the func cli needs the azurewebjobstorage setting.
Investigation note: It's really odd, but debugging in python, I never even hit the preDebug verification code because resolveDebugConfiguration never gets called. This isn't reproducing for Javascript though so the debug providers or tasks must be different somehow.