question

DeepakMandala-6835 avatar image
0 Votes"
DeepakMandala-6835 asked DeepakMandala-6835 commented

Not able to see azure function after deployement

Hi Team

I Have Deployed the Azure function from visual studio code and this function is created using (python 3.9)
After completion of Deployment i'm not able to see my function from portal can someone help me how to fix this




Thanks
Deepak

azure-functions
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.


i Can able to see Remaining files like Requirements.txt,host.json etc..except init.py(Function main file)


120256-screenshot-2021-08-03-at-103554-pm.png


0 Votes 0 ·

1 Answer

MayankBargali-MSFT avatar image
0 Votes"
MayankBargali-MSFT answered DeepakMandala-6835 commented

@DeepakMandala-6835 I have tried reproducing the issue with python 3.9 but couldn't observe the same behaviour.
As per the screenshot log we can see that the trigger were tying to sync but no HTTP trigger found. Further I have looked into the backend logs for your function app but your function app is deleted now.

The suggestion would be verify your function.json whether you have define the bindings correctly and scriptFile same as your init.py filename. As the default scriptFile name defined is __init__.py and if you have changed your entry point then this should also be updated in function.json and this could be one of the reasons that your triggers were not found when you have deployed your function app.

If you are still facing the issue then please share your function.json file along with your script file content so I can verify at my end and assist you further

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi

Please find the funtion.json file and init.py file

Thanks
Deepak


Functions json :
{
"scriptFile": "init.py",
"bindings": [
{
"authLevel": "anonymous",
"type": "httpTrigger",
"direction": "in",
"name": "req",
"methods": [
"get",
"post"
]
},
{
"type": "http",
"direction": "out",
"name": "$return"
}
]


}

0 Votes 0 ·

120287-untitled-document-1.pdf




attached the main function file pls check

0 Votes 0 ·