Azure Classroom Series – 08/Aug/2021

Overview of Azure Functions

  • With Azure Functions, we can start writing our application code without worrying about the application architecture and infrastructure required to run the application.
  • Features of Azure Functions
    • Browser-Based Interface: We can write and test the code directly in the interface (Azure portal) without using any IDE
    • Programming Languages: Azure functions support multiple languages such as
      • C#
      • JavaScript
      • F#
      • Java
      • Python
      • TypeScript
      • PHP
      • BATCH
      • Bash
      • PowerShell
    • Seamless integration with third-party apps: Azure functions integrate seamlessly with third-party apps such as Facebook, Google, Twitter, Twillo and other Azure Serviecs like CosmosDB, Azure Storage, Azure Service Bus and more. We can also integrate with existing apps using triggers and events
    • Continuous Deployment: Azure Functions support continuous deployment through Azure DevOps (VSTS), GitHub, XCode, Eclipse and IntelliJ IDEA

Azure Functions Pricing Plan

  • Consumption Plan:
    • With this play we pay only when our code is executing.
    • The metric used for calculating price in Azure functions is gigabyte-second (GB-s). This metric calcuates the memory uses and the total execution time for billing.
    • It is based on per-second resource executions and consumptions
    • In this plan you are granted 1 million requests and 400000 GB-s of resource consumption free per mont per subscription
  • App Service Plan:
    • Azure Functions App Service plan utilizes the same App Service plan used for hosting a website
    • Why do companies might want use the App Service Plan for Azure Functions?
      • The reason is that in the Consumption plan, functions have a time limit of five minutes, so if our Auzre Functions code runs more that five minutes in a single execution it will be time out, whereas for Azure functions in the App Service Plan there is no time limit.

Creating an Azure Function using Azure Portal

  • Launch Azure Functions from All Services Preview Preview Preview Preview Preview
  • Our Function app is ready and deployed, but it is not usable as we have no code written
  • Lets try to create our first azure function Preview Preview Preview Preview Preview

Configuring local developer environment with Visual Studio Code

  • Installing the Azure Functions core Tools
    • Ensure Azure CLI/Powershell is configured
    • Install Azure Functions core tools Refer Here
  • Install Visual Studio Extensions for Azure Functions Preview Preview
  • Configure the rest of the steps as shown in the class (View the recordings)
  • Refer Here for the sample Azure function to generate the random password

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About learningthoughtsadmin