QR Code Generator on Azure Functions

At my new position they are moving to a micro services infrastructure using Azure Functions.  I figured I had better get up to speed on all things Azure Functions.  I built a few sample projects on my computer, but that doesn’t show me what is looks like in “real life”.

This project started as a simple Azure function to test deployment processes from GitHub Actions and kind took off from there. There are still places in the namespace that refer to AzureFunction and I may go back and refactor that at some point. Since this started as a test, I just jammed all the code in a single project for simplicity’s sake.  That said, it seems like Microsoft wants functions to be small instead of big “Clean” multi projects affairs.

The rest of the project just sort of happened like in the book “If you give a Pig a Pancake”. (Once he had a pancake, he wanted syrup and it keeps going from there)

The generator lives on my development account on Azure. You can test it below. Feel free to make some QR codes until my budget for the month runs out.

WiFi Generator


GET
https://joesazurefunction.azurewebsites.net/api/WifiQR?wifiname=GuestsAndRandos&passcode=DontStealMyWifi

POST
// post to https://joesazurefunction.azurewebsites.net/api/WifiQR
// body
{
WifiName: "GuestsAndRandos",
Passcode: "DontStealMyWifi"
}

Url Generator


GET
https://joesazurefunction.azurewebsites.net/api/UrlQR?Url=https://github.com/zimjoe/QRAzureFunctions/wiki

POST
// post to https://joesazurefunction.azurewebsites.net/api/UrlQR
// body
{
Url: "https://github.com/zimjoe/QRAzureFunctions/wiki"
}

Read more at the wiki for the project: https://github.com/zimjoe/QRAzureFunctions/wiki