hands-on lab

Deploying Container App with Azure Function using Managed Identity Authentication

Difficulty: Advanced
Duration: Up to 1 hour
Students: 52
Rating: 5/5
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.

Description

Azure Functions are a serverless compute service in Microsoft Azure. You can use Azure Functions to deploy code without having to think about what servers the code will run on. The capabilities of the Azure function is endless as it enables you to deploy, destroy and update Azure resources programmatically using any programming language of your choice.

Developers often face the challenge of managing secrets and credentials for an application. Managed Identity eliminates the need to store credentials by offloading the authentication on the platform level and letting you generate unique access tokens during runtime. Currently, Azure offers System-assigned and User-assigned managed identities to achieve similar results.

In this hands-on lab, you will create an HTTP trigger function app with managed identity authentication that deploys a container instance programmatically and publish the app using Function Core Tools using an IDE environment.

Learning Objectives

Upon completion of this beginner/intermediate/advanced level lab, you will be able to:

  • Create an HTTP Trigger function app
  • Add Managed Identity Authentication to the function app
  • Use Function Core Tools to deploy the function app

Intended Audience

  • Candidates for Azure Developer Exam (AZ-204)
  • Cloud Architects
  • Data Engineers
  • DevOps Engineers
  • Software Engineers

Prerequisites

Familiarity with the following will be beneficial but is not required:

  • Azure Functions
  • Azure Container Instance

The following content can be used to fulfill the prerequisite:

Environment before

Environment after

Covered topics

Lab steps

Logging into Azure using Azure CLI
Creating and Deploying HTTP-Triggered PowerShell Function using Managed Identity Authentication
Logging in to the Microsoft Azure Portal
Executing Azure Function to Create Container based on HTTP Trigger