KEMBAR78
C# Powershell and an Azure Function Walk Into a Bar... | PPSX
Thank you to our sponsors!
Sponsor Raffle!!!
• Each sponsor stamp will opt you into sponsor raffle prize and mailings
• Collect 7 or more sponsor stamps on your Badge to be eligible for the
Xbox One X
• Hand entire Badge/ ribbon back into registration desk at end of day to
enter the prize draw
• Badges drawn at 5.15pm in Trinobantes (if you are drawn and do not
have the pre-requisite stamp/s….. You’ll lose!)
Social
• Tweet on #spscambridge OR #sqlsatcambridge
• We have Giant Jenga, Giant Connect 4, Giant Kerplunk and Sack races!
• Post event, join us for a SharePint/ SQLPint from our bar
• Don’t forget to thank Sponsors, Volunteers and Speakers!
• The event doors will close at 6.30pm
Welcome To…
C#
There will be some…
PowerShell
Some…
Azure Functions
some…
bar
The Bar comes later…
API
…and the API is up to you 
Hopefully You’ll Be Something Like… 
About Me
• Anthony Obi
• Independent SharePoint Consultant
Obilogic Ltd
• Twitter: @obilogic
• Email: aobi@obilogic.co.uk
About Me
• I’m a SharePoint Guy…
• Who has a weakness for
PowerShell…
About Me
• And more recently…
Azure Functions
Agenda
• What is an Azure Function
• How can you create Azure Functions
• How can you create Azure Functions without an internet connection
• How can you deploy Azure Functions
Agenda
• What is an Azure Function
• How can you create Azure Functions
• How can you create Azure Functions without an internet connection
• How can you deploy Azure Functions… to Azure
(…when you’ve got an internet connection)
Not on the Agenda
• JavaScript / F# / Python / PHP / Java / Bash / .cmd .bat Functions
(… all possible, but not covered today )
• How much do Azure Functions cost
(… often v.little)
• Azure Function Proxies / Scaling / Performance
(… maybe some links for you to peruse afterwards)
• Durable Functions
(… again, maybe some links … maybe)
So … What is an Azure Function?
So … What is an Azure Function?
https://docs.microsoft.com/en-gb/azure/azure-functions/
According to Microsoft Docs
So … What is an Azure Function?
• Ok … But what is ‘Serverless’?
So … What is Serverless?
• The same way ‘Cloud’ can refer to various services …
So … What is Serverless?
• ‘Serverless’ can refer to various services …
So … What is an Azure Function?
Answer: An ‘Azure Function’ is a piece of code that runs on a
'Serverless' Azure Service that you can execute on-demand.
So… What can Azure Functions do?
DEMO
So… Lets create some
Azure Functions
DEMO
OK… That’s pretty cool, but…
• I’m a real developer…
(…I use Visual Studio and everything)
• I don’t want to write code in a ‘web browser’
(…although sometimes I do use VSCode)
• I’ve been writing code this way for ages
(…and I’m unlikely to change anytime soon)
So … Creating Azure Functions Locally
…(potentially) without an internet connection
So … Creating Azure Functions Locally
Today’s Tools:
• Visual Studio 2017 (v15.5 +above)
• ‘Azure Functions Tools’ for Visual Studio
• Azure Storage Explorer
• Azure Storage Emulator
• Postman - API Development App
So … Creating Azure Functions Locally
• Why / What’s Postman ?
So … Creating Azure Functions Locally
• Well.. Anything than can make a ‘http request’ can trigger an
Azure Function
So … Creating Azure Functions Locally
• So… We’ll use Postman to submit mock JSON requests
So… Lets create some
Local Azure Functions
DEMO
OK… That is cool, but…
• How do deploy my ‘local’ azure functions …to Azure
(…when I have an internet connection)
• I don’t want to copy/paste code in a ‘web browser’
• What about source/version control?
So… Lets deploy some
Azure Functions
DEMO
Resource Links – Docs and Guides
https://docs.microsoft.com/en-gb/azure/azure-functions/
https://docs.microsoft.com/en-gb/azure/azure-functions/functions-
run-local
https://docs.microsoft.com/en-gb/azure/azure-functions/functions-
develop-vs
https://david-obrien.net/tags/#serverless-ref
http://johnliu.net/search?q=functions%20powershell
http://www.brianbunke.com/blog/2018/02/26/serverless-api-in-
azure/
Resource Links – Tools
https://azure.microsoft.com/en-gb/free
https://azure.microsoft.com/en-gb/features/storage-explorer/
https://docs.microsoft.com/en-gb/azure/storage/common/storage-
use-emulator
https://visualstudio.microsoft.com/vs/community
https://visualstudio.microsoft.com/team-services/pricing
https://marketplace.visualstudio.com/items?itemName=VisualStudio
WebandAzureTools.AzureFunctionsandWebJobsTools
https://www.getpostman.com
Resource Links – Further Reading
https://docs.microsoft.com/en-gb/azure/azure-functions/functions-
scale
https://anthonychu.ca/search/?q=Functions
https://mikhail.io/tags/azure-functions
https://www.azurefromthetrenches.com/?s=Functions
https://docs.microsoft.com/en-gb/azure/azure-functions/durable-
functions-overview
https://medium.com/@jeffhollan
http://aka.ms/antipattern
https://azure.microsoft.com/en-gb/pricing/details/functions
THANKS FOR
LISTENING

C# Powershell and an Azure Function Walk Into a Bar...

  • 1.
    Thank you toour sponsors!
  • 2.
    Sponsor Raffle!!! • Eachsponsor stamp will opt you into sponsor raffle prize and mailings • Collect 7 or more sponsor stamps on your Badge to be eligible for the Xbox One X • Hand entire Badge/ ribbon back into registration desk at end of day to enter the prize draw • Badges drawn at 5.15pm in Trinobantes (if you are drawn and do not have the pre-requisite stamp/s….. You’ll lose!)
  • 3.
    Social • Tweet on#spscambridge OR #sqlsatcambridge • We have Giant Jenga, Giant Connect 4, Giant Kerplunk and Sack races! • Post event, join us for a SharePint/ SQLPint from our bar • Don’t forget to thank Sponsors, Volunteers and Speakers! • The event doors will close at 6.30pm
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
    API …and the APIis up to you 
  • 10.
    Hopefully You’ll BeSomething Like… 
  • 11.
    About Me • AnthonyObi • Independent SharePoint Consultant Obilogic Ltd • Twitter: @obilogic • Email: aobi@obilogic.co.uk
  • 12.
    About Me • I’ma SharePoint Guy… • Who has a weakness for PowerShell…
  • 13.
    About Me • Andmore recently… Azure Functions
  • 14.
    Agenda • What isan Azure Function • How can you create Azure Functions • How can you create Azure Functions without an internet connection • How can you deploy Azure Functions
  • 15.
    Agenda • What isan Azure Function • How can you create Azure Functions • How can you create Azure Functions without an internet connection • How can you deploy Azure Functions… to Azure (…when you’ve got an internet connection)
  • 16.
    Not on theAgenda • JavaScript / F# / Python / PHP / Java / Bash / .cmd .bat Functions (… all possible, but not covered today ) • How much do Azure Functions cost (… often v.little) • Azure Function Proxies / Scaling / Performance (… maybe some links for you to peruse afterwards) • Durable Functions (… again, maybe some links … maybe)
  • 17.
    So … Whatis an Azure Function?
  • 18.
    So … Whatis an Azure Function? https://docs.microsoft.com/en-gb/azure/azure-functions/ According to Microsoft Docs
  • 19.
    So … Whatis an Azure Function? • Ok … But what is ‘Serverless’?
  • 20.
    So … Whatis Serverless? • The same way ‘Cloud’ can refer to various services …
  • 21.
    So … Whatis Serverless? • ‘Serverless’ can refer to various services …
  • 22.
    So … Whatis an Azure Function? Answer: An ‘Azure Function’ is a piece of code that runs on a 'Serverless' Azure Service that you can execute on-demand.
  • 23.
    So… What canAzure Functions do?
  • 24.
  • 25.
    So… Lets createsome Azure Functions
  • 26.
  • 27.
    OK… That’s prettycool, but… • I’m a real developer… (…I use Visual Studio and everything) • I don’t want to write code in a ‘web browser’ (…although sometimes I do use VSCode) • I’ve been writing code this way for ages (…and I’m unlikely to change anytime soon)
  • 28.
    So … CreatingAzure Functions Locally …(potentially) without an internet connection
  • 29.
    So … CreatingAzure Functions Locally Today’s Tools: • Visual Studio 2017 (v15.5 +above) • ‘Azure Functions Tools’ for Visual Studio • Azure Storage Explorer • Azure Storage Emulator • Postman - API Development App
  • 30.
    So … CreatingAzure Functions Locally • Why / What’s Postman ?
  • 31.
    So … CreatingAzure Functions Locally • Well.. Anything than can make a ‘http request’ can trigger an Azure Function
  • 32.
    So … CreatingAzure Functions Locally • So… We’ll use Postman to submit mock JSON requests
  • 33.
    So… Lets createsome Local Azure Functions
  • 34.
  • 35.
    OK… That iscool, but… • How do deploy my ‘local’ azure functions …to Azure (…when I have an internet connection) • I don’t want to copy/paste code in a ‘web browser’ • What about source/version control?
  • 36.
    So… Lets deploysome Azure Functions
  • 37.
  • 38.
    Resource Links –Docs and Guides https://docs.microsoft.com/en-gb/azure/azure-functions/ https://docs.microsoft.com/en-gb/azure/azure-functions/functions- run-local https://docs.microsoft.com/en-gb/azure/azure-functions/functions- develop-vs https://david-obrien.net/tags/#serverless-ref http://johnliu.net/search?q=functions%20powershell http://www.brianbunke.com/blog/2018/02/26/serverless-api-in- azure/
  • 39.
    Resource Links –Tools https://azure.microsoft.com/en-gb/free https://azure.microsoft.com/en-gb/features/storage-explorer/ https://docs.microsoft.com/en-gb/azure/storage/common/storage- use-emulator https://visualstudio.microsoft.com/vs/community https://visualstudio.microsoft.com/team-services/pricing https://marketplace.visualstudio.com/items?itemName=VisualStudio WebandAzureTools.AzureFunctionsandWebJobsTools https://www.getpostman.com
  • 40.
    Resource Links –Further Reading https://docs.microsoft.com/en-gb/azure/azure-functions/functions- scale https://anthonychu.ca/search/?q=Functions https://mikhail.io/tags/azure-functions https://www.azurefromthetrenches.com/?s=Functions https://docs.microsoft.com/en-gb/azure/azure-functions/durable- functions-overview https://medium.com/@jeffhollan http://aka.ms/antipattern https://azure.microsoft.com/en-gb/pricing/details/functions
  • 41.