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 83 discussion

Actual exam question from Microsoft's AZ-104
Question #: 83
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-MgInvitation cmdlet for each external user.

Does this meet the goal?

  • A. Yes
  • B. No
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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: A
The New-MgInvitation cmdlet is part of the Microsoft Graph PowerShell module. It's used to create an invitation to an external user. When the invited user redeems their invitation, a guest user is created in the directory. If you use a PowerShell script that loops through each external user in the CSV file and runs the New-MgInvitation cmdlet for each of them, it will send out invitation emails to each of those external users. Once an external user accepts the invitation, they'll be added to the Azure AD tenant as a guest user. So, using the New-MgInvitation cmdlet in a PowerShell script for each external user does meet the goal of creating a guest user account in contoso.com for each of the 500 external users. The answer is: A. Yes
upvoted 27 times
Shark006
11 months, 4 weeks ago
The cmdlet New-MgInvitation requires the Redirection URL. "The URL the user should be redirected to once the invitation is redeemed. Required." Reference: https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.identity.signins/new-mginvitation?view=graph-powershell-1.0 So the answer is: B. No
upvoted 11 times
Batiste2023
11 months ago
As you run the command from a script, you can hardcode a redirection URL into it. A is correct, I would say!
upvoted 7 times
...
SDiwan
8 months ago
the correct answer is "A". We can assume that invitation url is present in the powershell script. also, it mentions the command is used for "each" user, so assuming there is a loop and this command runs for each user inside the loop.
upvoted 1 times
...
...
...
tech07
Highly Voted 1 year, 3 months ago
Selected Answer: A
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 5 times
...
SeMo0o0o0o
Most Recent 1 month ago
Selected Answer: A
it´s A
upvoted 2 times
...
60ties
2 months, 3 weeks ago
Selected Answer: A
As per this link: “https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.identity.signins/new-mginvitation?view=graph-powershell-1.0” The “InviteRedirectUrl” requirement is a Boolean. So can be included (as True) or ignored (as False). So A is the correct answer
upvoted 3 times
...
Dil_12345
4 months, 1 week ago
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.
upvoted 1 times
...
3c5adce
4 months, 4 weeks ago
A. YES - using a PowerShell script with the New-MgInvitation cmdlet is an effective way to meet the requirement of creating guest user accounts for 500 external users in the contoso.com Azure AD tenant. This approach leverages the power of automation and Microsoft's API to accomplish the task efficiently and effectively.
upvoted 1 times
...
tashakori
6 months, 2 weeks ago
Yes is correct
upvoted 1 times
...
MatAlves
7 months, 1 week ago
CSV doesn't need to contain the -InviteRedirectUrl. It can be added later. https://learn.microsoft.com/en-us/entra/external-id/bulk-invite-powershell#send-bulk-invitations
upvoted 1 times
...
e004a35
8 months, 1 week ago
The CSV is missing a Redirect URL and the New-MgInvitation command requires it. Correct answer is No.
upvoted 1 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 2 times
...
ggogel
10 months, 1 week ago
There simply is no clear answer to this question! If you use the CSV in PowerShell, you would need another Cmdlet Import-Csv to read the CSV file. Then, you could iterate over the email addresses and specify the same redirection URL for every guest. On the other hand, there is the same question about using Azure Portal Bulk Import. I could also argue that I can simply open the file in Excel and set a redirection URL for every user. So it really comes down to how you interpret the question. Suppose you can just use the existing CSV and the given Cmdlet or Azure Bulk Import, then the answer is always FALSE. If you can add one extra step or Cmdlet, then it is always TRUE.
upvoted 4 times
ggogel
10 months, 1 week ago
After reading the question again, it says: "you create a PowerShell script". In my opinion, this implies that we can use other Cmdlets. So I would lean towards "YES" here.
upvoted 4 times
...
...
clg003
10 months, 3 weeks ago
Selected Answer: A
Yes with New-MgInvitation the -InviteRedirectUrl flag is not required. You can also put one in with the command line. "-InviteRedirectUrl Required: False" https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.identity.signins/new-mginvitation?view=graph-powershell-1.0
upvoted 3 times
ggogel
10 months, 1 week ago
In the text explaining the parameter, it says "Required". In the tables, it says "Required: False" for every parameter, even the mail address.
upvoted 1 times
...
bhadrisn
10 months ago
Selected Answer : B For "InvitedUserEmailAddress" also it states that Required: False But this is essential. So the Answer should be "B-No" where without a redirect URL you cannot invite an external user
upvoted 1 times
...
...
ziggy1117
11 months, 1 week ago
Selected Answer: B
needs redirection URL
upvoted 3 times
...
amsioso
11 months, 1 week ago
By portal you need to include the Redirection URL in the csv. https://learn.microsoft.com/en-us/entra/external-id/tutorial-bulk-invite Making it with Powershell yo dont need to include in the csv the Redirection URL. If we can change New-AzureADMSInvitation for New-MgInvitation in the PowerShell script then the answer is A. https://learn.microsoft.com/en-us/entra/external-id/bulk-invite-powershell?source=recommendations#send-bulk-invitations
upvoted 2 times
amsioso
11 months, 1 week ago
Seem like Yes https://learn.microsoft.com/en-us/powershell/microsoftgraph/azuread-msoline-cmdlet-map?view=graph-powershell-1.0#users But we need to install the M Graph PowerShell SDK https://learn.microsoft.com/en-us/powershell/microsoftgraph/migration-steps?view=graph-powershell-1.0 https://learn.microsoft.com/en-us/powershell/microsoftgraph/installation?view=graph-powershell-1.0
upvoted 1 times
...
...
Shark006
1 year ago
Selected Answer: B
The question is: You need to CREATE a guest user account in contoso.com for each of the 500 external users. The command provided as an answer to this question is New-MgInvitation, it INVITES guest users and do NOT create users. Answer is B: No. Reference: https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.identity.signins/new-mginvitation?view=graph-powershell-1.0
upvoted 1 times
Shark006
12 months ago
The answer is B but the justification is wrong after reconsideration. "The URL the user should be redirected to once the invitation is redeemed. Required." Reference: https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.identity.signins/new-mginvitation?view=graph-powershell-1.0
upvoted 6 times
...
...
Vestibal
1 year ago
Selected Answer: B
La respuesta correcta es la B. In this quickstart, you’ll use the New-MgInvitation command to add one guest user to your Azure tenant. Habla de un usuario, en singular. Además, la documentación oficial los ejemplos es de un usuario, no de forma masiva como es la pregunta. https://learn.microsoft.com/en-us/azure/active-directory/external-identities/b2b-quickstart-invite-powershell https://learn.microsoft.com/en-us/azure/active-directory/external-identities/bulk-invite-powershell
upvoted 1 times
...
Korny11
1 year ago
I would go for B. The cmdlet is correct but the required parameter "-InviteRedirectUrl" is missing in the CSV as mentioned here https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.identity.signins/new-mginvitation?view=graph-powershell-1.0&preserve-view=true#-inviteredeemurl
upvoted 4 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 ...