I am learning Azure and specificially the Java serverless functions that has been recently introduced by the MS team.
I have developed a simple API as per their documentation. It works fine. But I want to disable it. As per their documentation, when i update the "disabled" to true, I am not seeing the API being disabled. I am still able to invoke it.
The sample function.json
{
"scriptFile" : "..\\myfunction-1.0-SNAPSHOT.jar",
"entryPoint" : "com.xxx.myfunction.Function.hello",
"bindings" : [ {
"type" : "httpTrigger",
"name" : "req",
"direction" : "in",
"authLevel" : "anonymous",
"methods" : [ "get", "post" ]
}, {
"type" : "http",
"name" : "$return",
"direction" : "out"
} ],
"disabled" : true
}
Here is the steps that i followed to disable my function:
changed the function.json disabled to true. Click "Save" and then click "Run". I was able to get the response as 200 OK. What am i missing.