question

MichelleBlum-2831 avatar image
0 Votes"
MichelleBlum-2831 asked ChaitanyaNaykodiMSFT-9638 answered

Why would my Function disappear from the Portal App?

After editing my function.json file, my function seems to have disappeared from the Function App in Azure Portal.

82449-image.png

What happened to my function? Is it gone?


azure-functions
image.png (39.8 KiB)
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.

1 Answer

ChaitanyaNaykodiMSFT-9638 avatar image
1 Vote"
ChaitanyaNaykodiMSFT-9638 answered

Hello @MichelleBlum-2831,

For your function to appear in the blade on Azure Portal pictured above, Azure needs to be able to load your function.json file.
We need to verify if the update that was made within the function.json file was properly added. If not, then the file will not be able to index and result in a runtime failure.


As an example, if you added a new setting to the function.json file but did not include all the parameters required to execute the setting, this would lead to the function vanishing from Portal.


The function is not gone. If we navigate to the Kudu for your site (<function-app-name>.scm.azurewebsites.net) -> Debug Console -> CMD -> site -> wwwroot, here we can edit the function.json file.

82486-image.png

If the function.json file is able to be loaded again post editing then the function will again appear within the Portal as expected.


image.png (88.3 KiB)
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.