Skip to Content

AZ-104: How to create guest user accounts in Azure AD using PowerShell

Learn how to use the New-AzureADMSInvitation cmdlet to create guest user accounts in Azure AD from a CSV file.

Table of Contents

Question

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.

After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.

You have an Azure Active Directory (Azure AD) tenant named contoso.com.

You have a CSV file that contains the names and email addresses of 500 external users.

You need to create a guest user account in contoso.com for each of the 500 external users.

Solution: You create a PowerShell script that runs the New-MgUser cmdlet for each external user.

Does this meet the goal?

A. Yes
B. No

Answer

B. No

Explanation

The New-MgUser cmdlet creates a new user account in Azure AD, not a guest user account. To create a guest user account, you need to use the New-AzureADMSInvitation cmdlet, which sends an invitation email to the external user and adds them to the tenant as a guest.

Microsoft Azure Administrator AZ-104 certification exam practice question and answer (Q&A) dump with detail explanation and reference available free, helpful to pass the Microsoft Azure Administrator AZ-104 exam and earn Microsoft Azure Administrator AZ-104 certification.