This Azure Function fetches the lunch menu from deg16.no and publish it to a channel in Teams, specified by an environmental variable called TEAMS_URL
.
- Azure subscription
- Azure CLI
- azure-function-core-tools
az group create --name deg16-lunchmenu-rg --location westeurope
az storage account create \
--name deg16lunchmenusa \
--location westeurope \
--resource-group deg16-lunchmenu-rg \
--sku Standard_LRS
az functionapp create \
--name deg16-lunchmenu \
--resource-group deg16-lunchmenu-rg \
--consumption-plan-location westeurope \
--storage-account deg16lunchmenusa \
--runtime node
az functionapp config appsettings set \
--name deg16-lunchmenu \
--resource-group deg16-lunchmenu-rg \
--settings TEAMS_URL=<YOUR_TEAMS_WEBHOOK_URL>
git clone https://github.com/madsaune/azure-fn-deg16-lunchmenu.git
cd azure-fn-deg16-lunchmenu
func azure functionapp publish deg16-lunchmenu