hands-on lab

Deploying Container App with Azure Function using Managed Identity Authentication

Up to 1h
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.
Lab 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


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

About the author
Learning paths

Parveen is an Azure advocate with previous experience in the professional consulting services industries. He specializes in infrastructure and DevOps with a wide range of knowledge in security and access management. He is also an Azure Certified - DevOps Engineer Expert, Security Engineer, Developer Associate, Administrator Associate, CompTIA Certified - Network+, Security+, and AWS Cloud Practitioner.
Parveen enjoys writing about cloud technologies and sharing the knowledge with the community to help students upskill in the cloud.

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