The end game for what I want to do is have an ARM template that creates an Azure Function App, with 2 functions inside, that are fronted by API Management.
It looks like to do this in ARM Templates, I need to create the individual functions themselves in the template as opposed to simply creating the function app and then deploying my C# code (Which would typically then create the functions). This is because I need the functions to exist before creating the API Management resource in the template because otherwise I would have to go back and configure endpoints etc to point to my function app.
If any of this is wrong. Correct me.
It looks like I am able to create individual functions using ARM Templates. Indeed the documentation here supports that : https://docs.microsoft.com/en-us/azure/templates/microsoft.web/2018-11-01/sites/functions
The relevant snippet of my template where I am up to is :
{
"type" : "Microsoft.Web/sites/functions",
"apiVersion" : "2018-11-01",
"name" : "[variables('functionsLoginName')]",
"properties" : {
"config" : {
"bindings" : [{
"name" : "[variables('functionsLoginShortName')]",
"type" : "httpTrigger"
}
]
}
}
}
But the main issue is what else I can add to that config object. The documentation tells me it's a config object... But not what that object contains.
I'm finding blog posts that have individual snippets of what could go there, but I'm unable to find the official documentation with the full JSON spec that I can refer back to.