Using Service Principal Identity to List AD Roles

45 minutes
  • 2 Learning Objectives

About this Hands-on Lab

In this hands-on lab, you are tasked with gathering the role definitions and role assignments for your organization. You do not have access to the portal, so you must collect this information via SSH connection, by using a Linux VM and a service principal. Once access to the Azure subscription has been gained, use the Azure CLI to collect the required information, and output to a file so you can email it to your manager.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Log in to Azure using the Service Principal
  1. Once connected to the Linux VM, perform the az login command with the --service-principal flag to login to the Azure account.
List the Role Definitions and Role Assignments
  1. Enter the Azure CLI command to list the role definitions and output to a file named roleinfo.json.
  2. Enter the Azure CLI command to list the role assignments and append the output to the same file.

Additional Resources

You have been given login credentials to a Linux VM and a service principal. Connect to the VM with the credentials, and using the service principal, access the Azure subscription.

Once you have gained access to the Azure subscription, perform the steps listed in the objectives to complete this hands-on lab.

NOTE: The tenant will be 3617ef9b-98b4-40d9-ba43-e1ed6709cf0d Please wait about 2 minutes before connecting via ssh to give the lab time to fully provision.

What are Hands-on Labs

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.

Get Started
Who’s going to be learning?

How many seats do you need?

  • $499 USD per seat per year
  • Billed Annually
  • Renews in 12 months

Ready to accelerate learning?

For over 25 licenses, a member of our sales team will walk you through a custom tailored solution for your business.


$2,495.00

Checkout
Sign In
Welcome Back!
Thanks for reaching out!

You’ll hear from us shortly. In the meantime, why not check out what our customers have to say about ACG?