Reputation: 117027
I want to call an Azure Function App
without any Function Keys in the URL
Currently, I need to call it like this:
http://<myazureapp.com>/api/mfunc?code=3z81ag7IYWjaGdVs/Gi6BcmhROG4WJjGU3voL9UUp2iXEZZ2Vi6r7g==
If would like to call it like to call without the code
query parameter:
http://<myazureapp.com>/api/mfunc
Upvotes: 6
Views: 6994
Reputation: 129
If you are writing C# function app then you can set it in parameter attribute like below
public async Task<IActionResult> Run(
[HttpTrigger(AuthorizationLevel.Anonymous, "post", Route = null)] HttpRequest req,
ILogger log)
Upvotes: 5
Reputation: 480
For anyone getting here, looking for "the code way", this setting is located in the function.json file:
"bindings": [ { "authLevel": "anonymous", ...
Upvotes: 4
Reputation: 6468
In the new UI you have to goto Integration -> Trigger -> HTTP (req)
Upvotes: 8
Reputation: 42143
Navigate to your function in the portal-> Integrate
-> change the Authorization level
to Anonymous
, then you will be able to call it without code
.
Upvotes: 5