From 76d721244f76ba96308c4f5094cfed739e9d26bc Mon Sep 17 00:00:00 2001 From: Matthew Casperson Date: Mon, 30 Sep 2024 14:12:18 +1000 Subject: [PATCH] Added azure function endpoints --- functions/health/function.json | 16 ++++++++++++++++ functions/host.json | 23 +++++++++++++++++++++++ functions/local.settings.json | 7 +++++++ 3 files changed, 46 insertions(+) create mode 100644 functions/health/function.json create mode 100644 functions/host.json create mode 100644 functions/local.settings.json diff --git a/functions/health/function.json b/functions/health/function.json new file mode 100644 index 0000000..1d07ec5 --- /dev/null +++ b/functions/health/function.json @@ -0,0 +1,16 @@ +{ + "bindings": [ + { + "authLevel": "anonymous", + "type": "httpTrigger", + "direction": "in", + "name": "req", + "methods": ["get"] + }, + { + "type": "http", + "direction": "out", + "name": "res" + } + ] +} \ No newline at end of file diff --git a/functions/host.json b/functions/host.json new file mode 100644 index 0000000..714e08a --- /dev/null +++ b/functions/host.json @@ -0,0 +1,23 @@ +{ + "version": "2.0", + "logging": { + "applicationInsights": { + "samplingSettings": { + "isEnabled": true, + "excludedTypes": "Request" + } + } + }, + "extensionBundle": { + "id": "Microsoft.Azure.Functions.ExtensionBundle", + "version": "[4.*, 5.0.0)" + }, + "customHandler": { + "description": { + "defaultExecutablePath": "octolint_linux_amd64_azure", + "workingDirectory": "", + "arguments": [] + }, + "enableForwardingHttpRequest": true + } +} \ No newline at end of file diff --git a/functions/local.settings.json b/functions/local.settings.json new file mode 100644 index 0000000..25bc3ed --- /dev/null +++ b/functions/local.settings.json @@ -0,0 +1,7 @@ +{ + "IsEncrypted": false, + "Values": { + "FUNCTIONS_WORKER_RUNTIME": "custom", + "AzureWebJobsStorage": "" + } +} \ No newline at end of file