Lab environment for working with Azure functions (consumption plan)
An Azure RM template is included in infrastructure/
to create the environment:
Using Azure PowerShell, do the following to provision the resources:
.\New-Lab.ps1
Alternatively, you can perform a one-click deploy with the following button:
-
Create an Azure Function App using the Consumption Plan with Application Insights enabled
-
Create an Azure Function using the C# Azure Blob Storage Trigger template
-
Replace the contents of the
run.csx
file withsrc/function.csx
-
Replace the contents of the
function.json
file withsrc/function.json
-
Create an Azure Table named
uploads
in the storage account created by the Lab's ARM template -
Upload a file to the
uploads
blob container -
Observe the corresponding entity created in the
uploads
table -
Upload more files and observe the logs and metrics in Application Insights
When finished, remove the Azure resources with:
.\Remove-Lab.ps1