
This video provides an overview of the entire course.
You have an idea what Azure Functions are, but you’re not sure what all the hype is about. Can you give them a trial run without following a lot of steps?
• Log into the Try AzureFunction swebsite
• Make a timer-triggered C# function
• Modify the log message and the schedule for the Azure Function
In order to use Azure Functions you need an Azure account, but how do I sign up for an Azure account?
• Visit azure.com and click the sign up button
• Enter your phone number and payment information
• Confirm your details and log into your new account
You’d like to create more Azure Functions, but you want to do it inside your Azure subscription. How do you create an Azure Function app?
• Log in to the Azure portal
• Create a Function app
• Create an HTTP Trigger/Webhook function in C# and modify it
Before you go too crazy creating Azure Functions, you want to know how you can architect your solution without breaking the bank. How can you predict your cloud costs when you build your infrastructure using Functions?
• Visit the functions pricing page
• Calculate how many function calls you’ll need and the resource usage
• Determine your price
You may know some JavaScript, but you don’t know how you can use it in an Azure Function. What limitations are there?
• Create a JavaScript Azure Function
• Modify it using the built-in JavaScript functionality
• Add external libraries
C# is the most popular language among .NET programmers. How to use C# in Azure Functions?
• Create a C# Azure Function
• Make Functions that you can call from other Functions
• Add multiple C# files and libraries
F# is growing in popularity and is a first-class citizen in Azure Functions. How to use F# in Azure Functions?
• Create an F# Azure Function
• Make Functions that you can call from other Functions
• Add multiple F# files and libraries
Python is a very popular language among scientists and DevOps engineers. How can you use it in Azure Functions?
• Create a Python Azure Function
• Make Functions that you can call from other Functions
• Add multiple Python files and libraries
PHP is massively popular among the Open Source community. You can run your PHP scripts in Azure Functions.
• Create a PHP Azure Function
• Make Functions that you can call from other Functions
• Add multiple PHP files and libraries
What if you are using something a little less standard? Can you use other languages on Azure Functions?
• Create a batch file Azure Function
• Create a bash script Azure Function
• Create an executable Azure Function
It is important to grasp the concept of triggering a function from an event and bind your input or output to another Azure service.
• Define triggers
• Define bindings
• Go through the different types of triggers and bindings and how to manage them
We’ve been using triggers in our previous videos without really knowing it. We need to understand the basics of basic triggers and how we can use some basic bindings to interact with our caller.
• Create a Github webhook and look at the function.json file
• Change our HTTP trigger into a Timer trigger using the Integrate tab
• Change our timer triggered to an HTTP trigger function by modifying the function.json file
Have you ever had to write a service to “poll” a directory or queue to see if something happened? Do you have services that must be called by your client until something happens? In this video, we’ll show how you can eliminate that messy logic and replace it with Azure Functions that fire from storage events.
• Create a blob-storage triggered function that resizes files. The output is bound to blob storage
• An Azure Function that responds to queue message and process’s it.
• When queue message is processed, it writes it to a table
What if you have the need to trigger your Azure Function from a stream of real-time data or from an event from Event Hub? Why would you need this and how would you do it?
• Explain event hubs and the Azure Service Bus
• Show how you’d trigger and bind to an Event Hub event
• Show how you’d trigger and bind from an Azure Service Bus event
Sometimes you just need to do a little more complex job when your function does it’s magic. In this video we’ll cover some of the more advanced bindings.
• How to send an e-mail with SendGrid
• How to send a text with Twilio
Maybe, Azure Functions aren’t the ideal approach for your solution. You may be better served using Microsoft Flow, Logic Apps or Azure WebJobs. How do you decide?
• Introduce Microsoft Flow and its strengths. Compare it with Azure Functions
• Introduce Logic Apps and its strengths. Compare it with Azure Functions
• Introduce Azure WebJobs and its strengths. Compare it with Azure Functions
We’ve seen the Hosting Plan dropdown. It seems important but you may not know what it means. Should you use a consumption plan or an App Service plan?
• Introduce the consumption Plan and its strengths/weaknesses
• Introduce the App Service Plan and its strengths/weaknesses
• Compare the consumption plan and app service plan side by side and give examples for when you should choose one over the other
No one wants to build something that requires continuous maintenance. What are some tips to follow to prevent problems with our Azure Functions down the road?
• Problem prevention practices
• Performance improvement practices
• Defensive coding best practices
In the previous video, we went over someb est practices for your Azure Functions to help with durable, performant apps. This video will now share some best practices for security.
• Share general tips
• Show AuthLevel and how it affects security
• Show how you can integrate with Azure Active Directory to enforce authentication at the function level
If you’re interested in Azure Functions, you’ve probably heard about serverless architecture. However, you may not be clear on what it means. In this video, I will help you understand what it is.
• Explain the traditional client-server architecture
• Show a modern serverless architecture
• Describe BaaS and FaaS as two competing definitions of “serverless” and point out that both are correct
In the previous video,youlearned what a serverless architecture is. Now let’s discover why it has becomeso popular among software architects recently.
• Benefits for developers
• Benefits for project managers
• Benefits for the business.
You’re excited about serverless. You may even have ported everything over to Azure Functions in your head! Before you start shutting down your traditional servers, let’s take a sober look at some things that you should consider before you have 400 Azure Functions taking over your life.
• Execution challenges
• Development challenges
• Systems architecture challenges
In our previous video, we talked about some of the challenges you may have if you rely on a serverless architecture. In this video, I’m going to give you some hope; there are some practices you can follow that will help you maintain your sanity in your serverless home.
• Follow microservices best practices
• Keep your Functions small
• The right tool for the job
In the previous video, we gave you some best practices for a serverless architecture. Now you’re ready to start moving your big monolithic application to lightweight Functions that don’t require you to manage the infrastructure. In this video, I’ll give you some pointers on moving to a serverless architecture.
• Start small
• Organizational structure
• Break up the monolith
To ensure that your Azure Functions are running properly, you may want to use integration tests in your projects. How would you use them properly?
• Create a function app with a sum function in it
• Create a Visual Studio solution with unit tests
• Write tests to cover the test cases we expect
Calling a sophisticated REST endpoint is hard to set up with your browser or with an integration test. But there is a free tool that makes it super easy. It’s called Postman. How to use the Postman tool?
• Show how to set up a collection with REST calls in it for your function app
• Use environment variables and create several calls to the function
• Set up test cases and use the rest runner
How can you tell if your Azure Functions are running properly? This is really important if you’re trying to maintain a reliable infrastructure.
• Show logging for individual Functions; real-time logging
• Create a function that throws exceptions and view the exception in the logs
• Set up application insights and show how those exceptions stick out like a sore thumb
What if you can’t figure out why your Azure Function is failing? Can you debug the code? Can you step through your Azure Function remotely on the server?
• Install prerequisites to Visual Studio
• Use Server explorer or Cloud Explorer to download the function script locally
• Fix the code and re-deploy
Is there a good tool for developers to use for develop Azure Functions locally? Is it free and easy to use?
• Download and install Azure Functions Core Tools and Visual Studio Code
• Create a new function from the command line andedit it with Visual Studio Code
• Run and test the function running locally on your machine.
If you’re editing Azure Functions directly in the web editor in the Azure Portal, you’re probably going to have a big problem. Is it possible to use source control to protect your function’s source code? Can you use Git to automatically deploy changes to your Azure Functions?
• Creating an Azure Function backed by a local Git repository
• Using Azure Functions Core Tools to develop Functions locally
• Deploy your Functions using Git push. Rollback your function app to a previous version.
When you learn about infrastructure as code in Azure, you should learn about Azure Resource Manager, or ARM for short. It can be a little tricky to understand, but once you start using it, you’ll want to manage all your infrastructure with it.
• Cover what ARM is
• Cover why you would use it
• Break down a sample ARM template.
ARM templates for storage accounts and VMs are pretty straightforward, but they are a little tricky with Function Apps. How can we create a reusable template for our function apps?
• Show how you can download a good starting point ARM template from the Azure Portal
• Tweak the template so that it is tied to a particular branch in a publicly-available Github repo
• Use deployment options to create a webhook for deploying after Git pushes
We covered some of the techniques you can use to automate deployment in your Azure Function apps. This video will give you a general overview and help give you some tips to use in your organization.
• Recommendations of deployment configuration options (pros and cons)
• Visual Studio versus Visual Studio Code
• Azure Resource Manager pros and cons
This video gives a glimpse of the entire course.
Learn an overview about Microsoft Azure and how it would help you build reliable and professional applications with simple steps.
Get started with services offered by Microsoft Azure
Sign up to Microsoft Azure’s subscription
Get a walk through to Azure Portal
Learning about the important tools to install and get your environment ready to start coding.
Install your editor to write HTML/JavaScript code
Install Node.jS
Get ready by start working either locally or using Azure portal
Introducing Azure Functions and Node.js Overview.
Learn Azure function definition and features
Learn why using Azure functions is beneficial
Learn Node.jS overview and coding examples
Understand the definition of Serverless.
Learn the main advantages of Serverless applications
Learn the types of Serverless applications provided by Microsoft Azure
Steps to get started with creating Serverless applications
Getting started with building Hello World Azure Function and exploring the configurations and creation items to be considered.
Learn how to create Azure function from Azure portal
Explore the considerations to be taken while creating functions
Explore the code for the first created Azure function
Learn how to create Azure function through command line.
Install the necessary tools to start working with Azure CLI
Create Azure function through Azure CLI
Start and run Azure function through Azure CLI
Learn how to create a function that accepts parameters.
Create HTTP Trigger function
Update the configuration and code to accept parameters
Run and explore the function and passing parameters to requests
Explore different ways of testing Azure functions.
Introduce different methods for testing Azure functions
Learn how to install the necessary tools for testing
Practice testing Azure functions using different methods
Learn how to call a function action from another function.
Implement output binding
Trigger another function through binding
Run and test both functions working together
Getting started with building a complete serverless e-commerce application.
Create the solution files
Select the application’s UI template
Explore template code and add it to the solution of the application
Learn how to apply signup and login functionality to the applications using Azure Functions.
Create HTTP triggers for the features of signup and login
Explore different responses of the Azure functions
Bind the functions through AJAX calls to the application
Learn how to save data and use databases from Azure function app and bind them to the e-commerce application.
Install NPM packages to Azure function apps
Install Azure Cosmos DB package and perform actions on the dd using Azure function
Secure the signup/login feature with token based authentication
Learn how to query database from Azure functions.
Query database from Azure function to get the list of products
Implement dynamic binding in the e-commerce application
Customize the e-commerce application to list products received from Azure function
Build shopping cart and save items added in the cart from the logged in user to the database.
Build shopping cart design
Save shopping cart items
Retrieve and display shopping cart items
Learning how to handle payments in the application.
Create Stripe account
Update application’s UI
Add API keys
Learn how to complete payment charge using Stripe and Azure function.
Create Azure function
Install Stripe NPM
Complete charges action
Learn how to send emails using Azure functions and SendGrid integration.
Create SendGrid account
Create API Keys
Send confirmation emails
Learn how to integrate output of type Azure Cosmos DB.
Create new output in payment handler function
Configure Azure Cosmos DB binding
Bind data in the function’s context binding to be saved in Azure Cosmos DB collection
In this video, you will get to learn how to work with a timer trigger function.
Create timer trigger function
Send status emails
Update notification flags for email delivery
This video will walk you through the timer object and the cron expressions to set the execution frequency of the timer function.
Explore timer object
Explore the definition and structure of cron expressions
Explore different examples for defining execution frequency
In this video you will learn how to directly trigger Azure function from Azure Cosmos DB and handle order status.
Create a trigger function from Azure Cosmos DB
Trigger the function on updating the orders collection
Send status emails
Explore all integrated feature of the e-commerce application and learn how to make shared files over the whole function app.
Review all integrated features we built on our application
Open the function app settings.
Explore environment files and folders
Learn how to deploy our e-commerce application to Azure with different methods.
Deploy app directly from Visual Studio
Deploy app using publish profiles
Explore FTP deployment information
Learn how to add the application to source control using git.
Explore the basic git commands to add the application to a git repository
Explore the git tools in Visual Studio
Apply changes to source control
Learn how to use git to automatically deploy any synced changes.
Explore deployment center
Attach git account and repository
Perform changes and test continuous deployment
Learn how to create different slots of the deployed application.
Upgrade the app service plan
Create staging deployment slot
Deploy to staging deployment slot
Review all the accomplishments done and where to go from here.
Review accomplishment summary
Where to go from here
Azure is Microsoft’s public cloud computing platform. It provides a range of cloud services, including those for compute, analytics, storage, and networking. You can pick and choose from these services to develop and scale new applications, or run existing applications, in the public cloud. Node.js makes it easy to create powerful applications. These applications can be efficiently deployed on cloud platforms such as Azure using Azure functions which help you run code easily in the cloud; you can write code and not worry about the infrastructure required to run it.
This course is a one-stop guide for those who want to use Microsoft Azure for developing and deploying secure, resilient, robust, and scalable Node.js applications. You will learn how to easily build, monitor, and deploy serverless Node.js applications that are always available and fault-tolerant. Along the way, you will get introduced to several DevOps practices that will help you manage the full lifecycle of your application, from laptop to cloud and into the hands of your customers, while using state of the art tooling that comes out of the box with Azure.
Contents and Overview
This training program includes 2 complete courses, carefully chosen to give you the most comprehensive training possible.
The first course, Getting Started with Azure Functions, starts with teaching you the basics of Azure Functions and then shows you how to create functions such as WebHooks, Azure Connected, and event processing. You will then learn how to develop, manage, deploy, and monitor your Azure functions in almost any language such as C#, F#, Node.js, Python, PHP, as well as scripting options such as Bash, Batch, and PowerShell. You will also see how to scale your functions and use them to process data, integrate systems, and build simple APIs and microservices. Finally, you will learn some diagnostic techniques with Azure App Services and the best practices of working with Azure Functions.
The second course, Serverless App Development with Node.js and Azure Functions, will show you how to build a serverless app with Node.js and Azure Functions. Using Functions, you will easily build the apps you need using simple, serverless functions that scale to meet demand. You will build an e-commerce application using Node.js from creation to deployment and practice saving data to Azure Cosmos DB, which prompts Azure Functions output and input integration. You will then see how to integrate Azure functions with SendGrid and process notification emails and also how to integrate Stripe JS payment portal to your application. Finally, you will learn to handle continuous deployment using Azure App Services.
By the end of this course, you will be equipped with the knowledge to build scalable and cost-efficient Node.js applications and deploy them on the Azure using Azure functions.
Meet Your Expert(s):
We have the best work of the following esteemed author(s) to ensure that your learning journey is smooth:
Paul Oliver is the Principal Software Architect at Vosaic. Vosaic helps its users unlock insights with video for education and simulations. Vosaic is closely aligned with Hudl, which is the premier video platform for sports. Before taking on the role at Vosaic, he worked as a software developer and architect in the banking and criminal justice industries. Throughout his career, he's been passionate about building well-architected software solutions with the security of primary importance. He's architected several applications in the cloud using Microsoft Azure, Amazon Web Services, and Heroku.
Eman Hassan is a Microsoft Certified Professional with more than 8 years of experience and has a passion to learn, teach, and develop simplified techniques for better programming and more enjoyable experience. Eman has solid hands-on experience in cloud computing using Microsoft Azure and this experience grows ever larger by passing her knowledge to students and working with them in the journey to the future of cloud applications.