Exam AZ-104 All QuestionsBrowse all questions from this exam
Question 134

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?

    Correct Answer: B

    To create a guest user account for external users in Azure AD, you should use the 'New-MgInvitation' cmdlet. This cmdlet is specifically designed to invite external users to your directory by sending them an invitation. The 'New-MgUser' cmdlet, on the other hand, is used for creating regular user accounts within the directory, not guest accounts. Therefore, the solution provided does not meet the goal.

Discussion
rajneeshverma2020

This question is repeated multiple times, can admin remove duplicates

BabustestOption: B

'New-MgInvitation' is the command to add external users to the organization. https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.identity.signins/new-mginvitation?view=graph-powershell-1.0

VestibalOption: B

Instead use the New-AzureADMSInvitation cmdlet which is used to invite a new external user to your directory. Reference: https://docs.microsoft.com/en-us/powershell/module/azuread/new-azureadmsinvitation New-MgUser —> https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.users/new-mguser?view=graph-powershell-1.0

bryant12138Option: B

should do the invite cmdlet rather than the create one

ProfesorF

ive seen this question like 10 times wow

AlbertKwanOption: A

Voting for A to test if admin actually reads my comment here.

CfernandesOption: B

Resposta é B Este cmdlet é usado para convidar um novo usuário externo para o seu diretório. referencia: https://learn.microsoft.com/en-us/powershell/module/azuread/new-azureadmsinvitation?view=azureadps-2.0