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.

Automate it with Azure Functions

2,988 views

Published on

Azure Functions are a great new addition to the Azure stack that allow us to repeatedly automate tasks in a cheap and efficient manner. In this session we will go into what Azure Functions are, what features and functionality and the different ways of applying them in real-world scenarios.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Automate it with Azure Functions

  1. 1. Automate it with Azure Functions Jaap Brasser @jaap_brasser
  2. 2. • Technical Marketing Engineer at Rubrik • PowerShell Conference EU/Asia • Dutch PowerShell User Group • Speaker / Blogger / Tech Enthusiast • PowerShell Gallery • TechNet / MSTechCommunity @jaap_brasser jaapbrasser.com/about
  3. 3. Agenda What are Azure Function Apps 1 How do they work? 2 What can we do with PowerShell 3 Demos 4 Questions 5
  4. 4. Why PowerShell ???
  5. 5. What are Azure Functions
  6. 6. Azure Web Apps
  7. 7. Advantages of Azure Functions • Pay for what you use • No Infrastructure to manage • No maintenance of servers • Can be placed in existing Web App subscriptions • Simplify code writing
  8. 8. What problem are we solving? • Using our scripting skills in the cloud • Re-using existing code / scripts • Faster deployment • Less maintenance
  9. 9. Demo: Exploring Azure Functions
  10. 10. Demo Summary •Triggers available •Scenarios available •Experimental flag •How to create Azure Function •Delete Azure Function
  11. 11. PowerShell language support is still experimental
  12. 12. Demo: Create timed function
  13. 13. Demo Summary •Create PowerShell function •Used cron notation
  14. 14. Demo: Azure PowerShell Function
  15. 15. Demo Summary • Which PowerShell version • What variables are defined • Saw the variables & files • Reconfigured function.json • Used Invoke-RestMethod to run
  16. 16. Error handling
  17. 17. Demo: Azure Function Errors
  18. 18. Demo Summary •Had our function fail •Looked at different error logs •Fixed the code based on output
  19. 19. Writing better code • Develop code in IDE/ISE • Use source control • Run script analyzer for coding practices
  20. 20. Demo: Writing Azure Functions
  21. 21. Demo Summary •Different tools • ISESteroids • VsCode • Visual Studio • Online Editor •Write Unit tests for your scripts
  22. 22. PowerShell best practices • Develop code in IDE/ISE • Use source control • Run script analyzer for coding practices
  23. 23. Summary • Use existing PowerShell skills • Develop serverless code • Interact with other services • Generous free tier • functions.azure.com
  24. 24. Questions?

×