Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam AZ-104 All Questions

View all questions & answers for the AZ-104 exam

Exam AZ-104 topic 2 question 82 discussion

Actual exam question from Microsoft's AZ-104
Question #: 82
Topic #: 2
[All AZ-104 Questions]

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
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
iamchoy
Highly Voted 1 year ago
Selected Answer: B
The `New-MgUser` cmdlet is part of the Microsoft Graph PowerShell module, and it's used for creating new users in Azure AD. However, when creating guest users (or B2B users), you typically would invite them rather than create them like regular members. The cmdlet you'd want to use for inviting external guest users is `New-AzureADMSInvitation` if you're using the AzureAD module or a related command in the Microsoft Graph module. Given the provided solution, the answer is: B. No
upvoted 15 times
...
Rams786
Highly Voted 1 year ago
This question was on my exam on 22 Sep 2023. scored 900 i answered B
upvoted 5 times
...
SeMo0o0o0o
Most Recent 1 month ago
Selected Answer: B
B is corerct
upvoted 1 times
...
Amir1909
7 months, 3 weeks ago
No is correct
upvoted 2 times
...
vsvaid
8 months, 2 weeks ago
Selected Answer: A
Although invitation url is not in the csv file, we can still create the user by specifying url when running the script like here https://learn.microsoft.com/en-us/entra/external-id/bulk-invite-powershell#send-bulk-invitations
upvoted 1 times
vsvaid
8 months, 2 weeks ago
Sorry wrong question, please ignore the above
upvoted 1 times
...
...
VV11_SS22
1 year, 1 month ago
answer is actually "B - No" because they are guest users and should be invited not created, therefore make use of Bulk invite - https://docs.microsoft.com/en-us/azure/active-directory/external-identities/tutorial-bulk-invite
upvoted 1 times
...
binhdortmund
1 year, 2 months ago
Do we have a similar question and the answer is no due to missing RedirectURL in the CSV?
upvoted 3 times
fead
1 year, 1 month ago
yeah, that was to be created from AZ portal
upvoted 2 times
...
...
MHguy
1 year, 2 months ago
new-mguser seems only for creating new users, not guest: https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.users/new-mguser?view=graph-powershell-1.0&preserve-view=true for the guest under microsoft graph is that one: New-MgInvitation https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.identity.signins/new-mginvitation?view=graph-powershell-1.0&preserve-view=true
upvoted 3 times
conip
1 year, 1 month ago
but ... -UserType A string value that can be used to classify user types in your directory, such as Member and Guest. Returned only on $select. Supports $filter (eq, ne, not, in, and eq on null values). NOTE: For more information about the permissions for member and guest users, see What are the default user permissions in Azure Active Directory https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.users/new-mguser?view=graph-powershell-1.0
upvoted 1 times
...
...
Pakawat
1 year, 3 months ago
Found this Q in the exam, 3/7/23
upvoted 3 times
...
tech07
1 year, 3 months ago
Selected Answer: B
New-AzureADMSInvitation or New-MgInvitation can be used to invite users, Not New-MgUser https://learn.microsoft.com/en-us/powershell/microsoftgraph/azuread-msoline-cmdlet-map?view=graph-powershell-1.0#users
upvoted 3 times
...
marlonbenfica
1 year, 3 months ago
Correct answer: B (NO). Since there is a .csv file with the data, just import it in bulk.
upvoted 2 times
...
fongode
1 year, 3 months ago
Answer is correct. New-MgUser is for Microsoft Graph and not for GuestInvite See also https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.users/new-mguser?view=graph-powershell-1.0
upvoted 1 times
pubalaji
1 year, 3 months ago
Are you saying the correct answer is Option B?
upvoted 3 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...