- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Cloud
- Security

Create a Managed Identity
Automation and Security go hand-in-hand in the Cloud services of today, and securely representing Azure Resources to the Authentication services that validate them is a common requirement. In this hands-on lab, engineers create a User Assigned Managed Identity, deploy a virtual machine member server to Azure, and then attach the Managed Identity to it. In addition to utilizing the User Assigned Identity, a System Assigned Identity will also be enabled to demonstrate automation at work.

Lab Info
Table of Contents
-
Challenge
Create a User Assigned Managed Identity
Create a User Assigned Managed Identity with the name of MythicalUAMI001. When creating it, use
West US
when asked a location and a resource group; it should be the only available option. -
Challenge
Create and Deploy a Virtual Machine
Note: Use 'West US' when asked location and asked for a resource group; the only available option.
Deploy a VM:
- The VM name can be anything (MythicalVM001 in this example)
- The VM should be imaged with Windows Server 2019.
- The VM Size should be
B2ms
. - Username/Password can be anything (mythicaladmin and Crystal1Montana! in this example).
- Change Public Inbound Ports to 'None'.
- Set NIC NSG to
Advanced
. - Set Boot Diagnostics to
Off
.
-
Challenge
Associate UAMI and enable SAMI
Navigate back to your Virtual Machine, then scroll down to the Identity link on the left-hand menu. Click Identity. There, attach the User assigned managed identity. Then enable System assigned managed identity.
About the author
Real skill practice before real-world application
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Learn by doing
Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.
Follow your guide
All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.
Turn time into mastery
On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.