Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 16951

Azure Functions not being recognised when in folder

$
0
0

I'm adding a new Azure function to an existing project, for it to be picked up and created by the pipeline, it needs to be inside the folder structure, but when it is, it's not being picked up as a working function.

The current folder structure is

   - chat     - __init__   - ask     - __init__     - host.json   - translate     - __init__     - host.json     - functions         - __init__         - getBlob         - getVars         - readBlob- host.json- local.settings.json- requirements.txt

I'd assumed it had something to do with the incorrect file structuring, but if I open translate for example as a folder on its own and run func init to add the other packages, it still isn't picked up as an Azure function.

These are V1 functions, running on Python 3.10.

This is the contents of host.json

"version": "2.0","extensionBundle": {"id": "Microsoft.Azure.Functions.ExtensionBundle","version": "[4.*, 5.0.0)"  }}

Currently, when I try to run locally I get this output in the console:enter image description here

Any ideas for how to fix this would be great!


Viewing all articles
Browse latest Browse all 16951

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>