Azure Function is in Read Only mode

Viewed 5272

I created an Azure Function in Visual Studio 2017 15.4.3. I am attempting to deploy/publish to Azure. Everything SEEMS to work okay, but the function in portal shows up as read-only. I have attempted to change the Mode to readwrite, but it does not hold. It reverts upon refresh. I have tried creating the Function App in both the portal AND in Visual Studio. Both result in a Read Only Function App which is useless. The API returns a 404. The App Service url does show that the App Service is up and running. Does anyone have any suggestions? Thanks!!

Read Only Mode

2 Answers

The problem was that I was testing the wrong URL. However, I did learn that the Azure Function is Read Only because of the manner it was published and had nothing to do with my issue. Thanks to @Mikhail for that!

This is incorrect function.json issue generated by VS2017. There are multiple error coming while publishing from VS2017.

fix: remove below two lines

"generatedBy": "Microsoft.NET.Sdk.Functions-1.0.0.0",

"configurationSource": "attributes",

One more fix if you are working with Http trigger then add one line after binding configration:

"direction": "in"

Hope this will help.

More details at Azure-Function and Azure-Function issue

Related