Notice: Trying to get property 'post_excerpt' of non-object in /home/n3svtp4r09fz/technet.vn/wp-content/themes/darknews/single.php on line 43
Module1. Lab 01 – Manage Azure Active Directory Identities
Student lab manual
Lab scenario
In order to allow Contoso users to authenticate by using Azure AD, you have been tasked with provisioning users and group accounts. Membership of the groups should be updated automatically based on the user job titles. You also need to create a test Azure AD tenant with a test user account and grant that account limited permissions to resources in the Contoso Azure subscription.
Objectives
In this lab, you will:
- Task 1: Create and configure Azure AD users
- Task 2: Create Azure AD groups with assigned and dynamic membership
- Task 3: Create an Azure Active Directory (AD) tenant
- Task 4: Manage Azure AD guest users
Estimated timing: 30 minutes
Instructions
Exercise 1
Task 1: Create and configure Azure AD users
In this task, you will create and configure Azure AD users.
>**Note**: If you have previously used the Trial license for Azure AD Premium on this Azure AD Tenant you will need a new Azure AD Tenant or perform the Task 2 after Task 3 in that new Azure AD tenant.
- In the Azure portal, search for and select Azure Active Directory.
- On the Azure Active Directory blade, scroll down to the Manage section, click User settings, and review available configuration options.
- On the Azure Active Directory blade, in the Manage section, click Users, and then click your user account to display its Profile settings.
- Click edit, in the Settings section, set Usage location to United States and save the change.
Note: This is necessary in order to assign an Azure AD Premium P2 license to your user account later in this lab.
- Navigate back to the Users – All users blade, and then click + New user.
- Create a new user with the following settings (leave others with their defaults):
Setting | Value |
User name | az303-01a-aaduser1 |
Name | az303-01a-aaduser1 |
Let me create the password | enabled |
Initial password | Pa55w.rd124 |
Usage location | United States |
Job title | Cloud Administrator |
Department | IT |
- Note: Copy to clipboard the full User Principal Name (user name plus domain). You will need it later in this task.
- In the list of users, click the newly created user account to display its blade.
- Review the options available in the Manage section and note that you can identify the Azure AD roles assigned to the user account as well as the user account’s permissions to Azure resources.
- In the Manage section, click Assigned roles, then click + Add assignment button and assign the User administrator role to az303-01a-aaduser1.
Note: You also have the option of assigning Azure AD roles when provisioning a new user.
- Open an InPrivate browser window and sign in to the Azure portal using the newly created user account. When prompted to update the password, change the password for the user.
Note: Rather than typing the user name (including the domain name), you can paste the content of Clipboard.
- In the InPrivate browser window, in the Azure portal, search for and select Azure Active Directory.
Note: While this user account can access the Azure Active Directory tenant, it does not have any access to Azure resources. This is expected, since such access would need to be granted explicitly by using Azure Role-Based Access Control.
- In the InPrivate browser window, on the Azure AD blade, scroll down to the Manage section, click User settings, and note that you do not have permissions to modify any configuration options.
- In the InPrivate browser window, on the Azure AD blade, in the Manage section, click Users, and then click + New user.
- Create a new user with the following settings (leave others with their defaults):
Setting | Value |
User name | az303-01a-aaduser2 |
Name | az303-01a-aaduser2 |
Let me create the password | enabled |
Initial password | Pa55w.rd124 |
Usage location | United States |
Job title | System Administrator |
Department | IT |
- Sign out as the az303-01a-aaduser1 user from the Azure portal and close the InPrivate browser window.
Task 2: Create Azure AD groups with assigned and dynamic membership
In this task, you will create Azure Active Directory groups with assigned and dynamic membership.
- Back in the Azure portal where you are signed in with your user account, navigate back to the Overview blade of the Azure AD tenant and, in the Manage section, click Licenses.
Note: Azure AD Premium P1 or P2 licenses are required in order to implement dynamic groups.
- In the Manage section, click All products.
- Click + Try/Buy and activate the free trial of Azure AD Premium P2.
- Refresh the browser window to verify that the activation was successful.
- From the Licenses – All products blade, select the Azure Active Directory Premium P2 entry, and assign all license options of Azure AD Premium P2 to your user account and the two newly created user accounts.
- In the Azure portal, navigate back to the Azure AD tenant blade and click Groups.
- Use the + New group button to create a new group with the following settings:
Setting | Value |
Group type | Security |
Group name | IT Cloud Administrators |
Group description | Contoso IT cloud administrators |
Membership type | Dynamic User |
- Note: If the Membership type drop-down list is grayed out, wait a few minutes and refresh the browser page.
- Click Add dynamic query.
- On the Configure Rules tab of the Dynamic membership rules blade, create a new rule with the following settings:
Setting | Value |
Property | jobTitle |
Operator | Equals |
Value | Cloud Administrator |
- Save the rule and, back on the New Group blade, click Create.
- Back on the Groups – All groups blade of the Azure AD tenant, click the + New group button and create a new group with the following settings:
Setting | Value |
Group type | Security |
Group name | IT System Administrators |
Group description | Contoso IT system administrators |
Membership type | Dynamic User |
- Click Add dynamic query.
- On the Configure Rules tab of the Dynamic membership rules blade, create a new rule with the following settings:
Setting | Value |
Property | jobTitle |
Operator | Equals |
Value | System Administrator |
- Save the rule and, back on the New Group blade, click Create.
- Back on the Groups – All groups blade of the Azure AD tenant, click the + New group button, and create a new group with the following settings:
Setting | Value |
Group type | Security |
Group name | IT Lab Administrators |
Group description | Contoso IT Lab administrators |
Membership type | Assigned |
- Click No members selected.
- From the Add members blade, search and select the IT Cloud Administrators and IT System Administrators groups and, back on the New Group blade, click Create.
- Back on the Groups – All groups blade, click the entry representing the IT Cloud Administrators group and, on then display its Members blade. Verify that the az303-01a-aaduser1 appears in the list of group members.
- Navigate back to the Groups – All groups blade, click the entry representing the IT System Administrators group and, on then display its Members blade. Verify that the az303-01a-aaduser2 appears in the list of group members.
Note: You might experience delays with updates of the dynamic membership groups. To expedite the update, navigate to the group blade, display its Dynamic membership rules blade, Edit the rule listed in the Rule syntax textbox by adding a whitespace at the end, and Save the change.
Task 3: Create an Azure Active Directory (AD) tenant
In this task, you will create a new Azure AD tenant.
- In the Azure portal, search for and select Azure Active Directory.
- Click + Create a tenant and specify the following setting:
Setting | Value |
Directory type | Azure Active Directory |
Organization name | Contoso Lab |
Initial domain name | any valid DNS name consisting of lower case letters and digits and starting with a letter |
Country/Region | United States |
- Note: The green check mark in the Initial domain name text box will indicate that the domain name you typed in is valid and unique.
- Click Review + create and then click Create.
- Display the blade of the newly created Azure AD tenant by using the Click here to navigate to your new directory: Contoso Lab link or the Directory + Subscription button (directly to the right of the Cloud Shell button) in the Azure portal toolbar.
Task 4: Manage Azure AD guest users.
In this task, you will create Azure AD guest users and grant them access to resources in an Azure subscription.
- In the Azure portal displaying the Contoso Lab Azure AD tenant, in the Manage section, click Users, and then click + New user.
- Create a new user with the following settings (leave others with their defaults):
Setting | Value |
User name | az303-01b-aaduser1 |
Name | az303-01b-aaduser1 |
Let me create the password | enabled |
Initial password | Pa55w.rd124 |
Job title | System Administrator |
Department | IT |
- Note: Copy to clipboard the full User Principal Name (user name plus domain). You will need it later in this task.
- Switch back to your default Azure AD tenant by using the Directory + Subscription button (directly to the right of the Cloud Shell button) in the Azure portal toolbar.
- Navigate back to the Users – All users blade, and then click + New guest user.
- Create a new guest user with the following settings (leave others with their defaults):
Setting | Value |
Name | az303-01b-aaduser1 |
Email address | any valid email address not matching any of user principal names in the current tenant |
Usage location | United States |
Job title | Lab Administrator |
Department | IT |
- Click Invite.
- Back on the Users – All users blade, click the entry representing the newly created guest user account.
- On the az303-01b-aaduser1 – Profile blade, click Groups.
- Click + Add membership and add the guest user account to the IT Lab Administrators group.
Clean up resources
Note: Remember to remove any newly created Azure resources that you no longer use. Removing unused resources ensures you will not incur unexpected costs. While, in this case, there are no additional charges associated with Azure Active Directory tenants and their objects, you might want to consider removing the user accounts, the group accounts, and the Azure Active Directory tenant you created in this lab.
- Navigate to the Azure Active Directory Premium P2 – Licensed users blade, select the user accounts to which you assigned licenses in this lab, click Remove license, and, when prompted to confirm, click OK.
- In the Azure portal, navigate to the Users – All users blade, click the entry representing the az303-01b-aaduser1 guest user account, on the az303-01b-aaduser1 – Profile blade click Delete, and, when prompted to confirm, click OK.
- Repeat the same sequence of steps to delete the remaining user accounts you created in this lab.
- Navigate to the Groups – All groups blade, select the groups you created in this lab, click Delete, and, when prompted to confirm, click OK.
- In the Azure portal, display the blade of the Contoso Lab Azure AD tenant by using the Directory + Subscription button (directly to the right of the Cloud Shell button) in the Azure portal toolbar.
- Navigate to the Users – All users blade, click the entry representing the az303-01b-aaduser1 user account, on the az303-01b-aaduser1 – Profile blade click Delete, and, when prompted to confirm, click OK.
- Navigate to the Contoso Lab – Overview blade of the Contoso Lab Azure AD tenant, click Delete tenant, on the Delete directory ‘Contoso Lab’ blade, click the Get permission to delete Azure resources link, on the Properties blade of Azure Active Directory, set Access management for Azure resources to Yes and click Save.
- Sign out from the Azure portal and sign in back.
- Navigate back to the Delete directory ‘Contoso Lab’ blade and click Delete.
Note: You will have to wait for license expiration before you can delete the tenant. This does not incur any additional cost.
Review
In this lab, you have:
- Created and configured Azure AD users
- Created Azure AD groups with assigned and dynamic membership
- Created an Azure Active Directory (AD) tenant
- Managed Azure AD guest users