Microsoft Azure Administrator — Question 100
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 user.
Does this meet the goal?
Answer options
- A. Yes
- B. No
Correct answer: B
Explanation
The solution does not meet the goal because the New-MgUser cmdlet is used for creating regular users, not guest users. To create guest accounts, the appropriate cmdlet would be New-MgUser with the GuestInvite parameter or using the invitation API. Therefore, the correct answer is B, as the proposed method does not allow for the creation of guest accounts in Azure AD.