Azure-Samples/fastapi-on-azure-functions

Cannot Deploy to Az via VS Code Azure Functions Extension

Opened this issue · 0 comments

  • bug report -> please search issues before submitting
  • feature request
  • documentation issue or request
  • regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Download the repo as a zip file, install the Azure Functions extension. Follow the instructions (https://learn.microsoft.com/en-us/azure/azure-functions/create-first-function-vs-code-python?pivots=python-mode-decorators#publish-the-project-to-azure) on how to deploy. The extension does not recognize any function from the code -- hopefully, I can correctly upload a screenshot
az_func_issue

Any log messages given by the failure

No, since it is not possible to even start deploying the function.

Expected/desired behavior

You can see the function in the menu as shown in the instructions.

OS and Version?

Windows 10.0.19045

Versions

VS Code: v1.82.1 (user setup)
Commit: 6509174151d557a81c9d0b5f8a5a1e9274db5585
Date: 2023-09-08T08:45:05.575Z
Electron: 25.8.0
ElectronBuildId: 23503258
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Windows_NT x64 10.0.19045VS
Code Azure Functions Extension: v1.12.4

Mention any other details that might be useful

If I add a function.json file in the WrapperFunction folder, the function becomes visible to the Azure Functions extension. However, I am not sure this is a good idea -- or in any case, the recommended solution.