Azure Functions + NuGet = Superpowers Teemu Tapanila @TapanilaT Teemu@onsight.fi
Teemu Tapanila Teemu@onsight.fi @TapanilaT Microsoft Azure MVP Architect, Onsight Helsinki oy Microsoft Certified Trainer Teemu@onsight.fi @TapanilaT
Topics Azure Functions Nuget packages Azure Functions + nuget package
What is Azure Functions? Code Events + data
Choice of language run.cmd, run.bat run.exe run.ps1 run.sh run.php run.py run.js
Pricing model Dynamic Dedicated (App Service Plan) Pay on number of executions Platform responsible for scale Dedicated (App Service Plan) Basic, Standard, Premium Pay based on # of reserved VMs You’re responsible for scale
Open source
Simple & Flexible
Abstraction of servers Serverless Abstraction of servers Event-driven scale Sub-second billing No access to the servers running your code Code is Event-driven which might be a good or bad thing depending on your load. Billing is by the time you are running instead of time you are listening.
Benefits of Serverless Focus on Business Logic Quick start Managed for you
Azure Functions Demo
Azure functions limitations? Source Control Versioning Debugging
Azure Functions from visual studio
NuGet Allows easily to share code Supports versions Release notes
NuGet package creation Create .net library project Create .nuspec file matching the name into same folder Package and publish nuget package ???? Profit
Nuget spec <?xml version="1.0"?> <package> <metadata> <id>IglooConf.Models</id> <version>1.0</version> <title>IglooConf 2017 Models</title> <authors>tapanila</authors> <owners>tapanila</owners> <requireLicenseAcceptance>false</requireLicenseAcceptance> <description>Awesome models for the conference</description> <releaseNotes>Ship it!</releaseNotes> <copyright>Copyright 2017</copyright> <tags>Azure Nuget IglooConf Functions</tags> </metadata> </package>
NuGet package creation and publishing nuget setApiKey {Your-api-key} nuget pack IglooConf.models.csproj nuget push IglooConf.models.1.0.0.0.nupkg -Source https://www.nuget.org/api/v2/package
Functions + Nuget Demo
Topics Azure Functions Nuget packages Azure Functions + nuget package
Thank you!