Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Write Serverless Applications with PowerShell and Azure Functions

92 views

Published on

In the world where serverless has proven to be more than a buzzword the question has become what we can do as PowerShell enthusiasts. This session will dive into Azure Functions and how you as a PowerShell professional can leverage your existing skills to hit the ground running in the new serverless world.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Write Serverless Applications with PowerShell and Azure Functions

  1. 1. French PowerShell Saturday 15 Septembre 2018 - #FrPwshSat2018 Write Serverless Applications with PowerShell and Azure Functions Jaap Brasser @jaap_brasser
  2. 2. French PowerShell Saturday 15 Septembre 2018 - #FrPwshSat2018 Merci à nos sponsors !!
  3. 3. Jaap Brasser 3 Tweets Blogs Works Does Likes @ jaap_brasser @ jaapbrasser.com Tech Marketeer @ Rubrik.com Blogger, Speaker, Tech Enthusiast Cloud Automation, Scripting & Security
  4. 4. Agenda Introduction to Cloud Automation Azure Automation Microsoft Flow Azure Functions Demos!
  5. 5. Cloud Automation
  6. 6. Azure Automation
  7. 7. Automate processes Cross-platform configuration management Download example runbooks and scripts Event grid integration Hybrid Runbook Worker 500 free minutes
  8. 8. What is Microsoft Flow
  9. 9. Connectors
  10. 10. Flow Templates
  11. 11. Use Connectors to get data Create triggers based on this data Build workflows Integrate and combine different services Approval flows Long runtime of flows
  12. 12. What are Azure Functions
  13. 13. What is serverless?
  14. 14. Azure Web Apps
  15. 15. Advantages of Azure Functions Pay for what you use No Infrastructure to manage No maintenance of servers Can be placed in existing subscriptions Simplify code writing
  16. 16. What are we trying to solve? Re-using existing skills Re-using existing code / scripts Faster deployment Less maintenance
  17. 17. 15 Septembre 2018 - #FrPwshSat2018 Demo Summary • Triggers available • Experimental flag • How to create Azure Function • Delete Azure Function
  18. 18. PowerShell language support is still experimental
  19. 19. 15 Septembre 2018 - #FrPwshSat2018 Demo Summary • Create PowerShell function • Used cron notation
  20. 20. 15 Septembre 2018 - #FrPwshSat2018 Demo Summary • Which PowerShell version • What variables are defined • Saw the variables & files • Reconfigured function.json • Used Invoke-RestMethod to run
  21. 21. Error handling
  22. 22. 15 Septembre 2018 - #FrPwshSat2018 Demo Summary • Had our function fail • Looked at different error logs • Fixed the code based on output
  23. 23. 15 Septembre 2018 - #FrPwshSat2018 Demo Summary • 1 • 2 • 3
  24. 24. 15 Septembre 2018 - #FrPwshSat2018 Demo Summary • Allow FTP upload • Upload module to wwwroot • Import-Module
  25. 25. 15 Septembre 2018 - #FrPwshSat2018 Demo Summary • Create a zip file with code / modules • Set WEBSITE_RUN_FROM_ZIP • Run Azure Function
  26. 26. 15 Septembre 2018 - #FrPwshSat2018 Demo Summary • Allow FTP upload • Upload module to wwwroot • Import-Module
  27. 27. 15 Septembre 2018 - #FrPwshSat2018 Demo Summary • 1 • 2 • 3
  28. 28. Use existing PowerShell skills Develop serverless code Interact with other services Free tier functions.azure.com
  29. 29. Questions?
  30. 30. French PowerShell Saturday 15 Septembre 2018 - #FrPwshSat2018 Merci à nos sponsors !!

×