exam questions

Exam AZ-104 All Questions

View all questions & answers for the AZ-104 exam

Exam AZ-104 topic 1 question 38 discussion

Actual exam question from Microsoft's AZ-104
Question #: 38
Topic #: 1
[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-AzureADUser cmdlet for each 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 (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
NaoVaz
Highly Voted 2 years, 5 months ago
"New-AzureADUser" is for creating new Azure AD users not inviting Guests. To invite using Powershell one should use the "New-AzureADMSInvitation" cmdlet.
upvoted 19 times
...
Mev4953
Highly Voted 4 months, 3 weeks ago
#Read external users from CSV file $GuestUsers = Import-CSV "C:\Temp\GuestUsers.csv" $i = 0; $TotalUsers = $GuestUsers.Count #Iterate users and send guest invite one by one Foreach($GuestUser in $GuestUsers) { $GuestUserName = $GuestUser.'UserName' $GuestUserEmail = $GuestUser.'EmailAddress' $i++; Write-Progress -activity "Processing $GuestUserName - $GuestUserEmail" -status "$i out of $TotalUsers completed" Try { #Send invite $InviteResult = New-AzureADMSInvitation -InvitedUserDisplayName $GuestUserName -InvitedUserEmailAddress $GuestUserEmail -InviteRedirectURL https://myapps.microsoft.com -SendInvitationMessage $true Write-Host "Invitation sent to $GuestUserName ($GuestUserEmail)" -f Green } catch { Write-Host "Error occurred for $GuestUserName ($GuestUserEmail)" -f Yellow Write-Host $_ -f Red } }
upvoted 15 times
Mev4953
2 years, 5 months ago
Create with invitation could be better option. You can also create new user with "New-AzureADUser". But i am not sure about yes or not. there is no issue about "invitation". It is about "need to create" guest users. If you have better explanation, I am looking forward to it :)
upvoted 3 times
...
jackdryan
1 year, 11 months ago
B is correct
upvoted 5 times
18c2076
11 months, 1 week ago
no sht sherlock
upvoted 1 times
...
...
...
Vinny
Most Recent 2 days, 17 hours ago
Selected Answer: B
New-AzureADMSInvitation
upvoted 1 times
...
PixelG
1 week, 5 days ago
Selected Answer: B
Ans:- B. as New-AzureADUser would need parameter for guest account, and this command will create usual new user accounts.
upvoted 1 times
...
minura
2 months, 3 weeks ago
Selected Answer: B
To invite using Powershell we should use the "New-AzureADMSInvitation" cmdlet.
upvoted 1 times
minura
2 months, 3 weeks ago
The New-AzureADUser cmdlet is used to create new users in Azure AD, but it is not suitable for creating guest user accounts.
upvoted 1 times
...
...
[Removed]
5 months ago
Selected Answer: B
B is correct You create a PowerShell script that runs the New-AzureADMSInvitation cmdlet for each external user.
upvoted 2 times
...
[Removed]
5 months, 2 weeks ago
Selected Answer: B
B is corerct
upvoted 1 times
...
vrm1358
6 months ago
This question in not clear. because if the intention of the question is to creating guest users, so we can create guest users with this command: New-AzureADUser and the parmeter: -UserType. Therefore we can choose Yes for correct answer. but, if the intension of the question is only the command New-AzureADUser (without specific parameter like -UserType) then the answer should be No.
upvoted 1 times
...
Nico1973
7 months, 1 week ago
Answer: B. No Explanation: Running the New-AzureADUser cmdlet in PowerShell does not directly create guest user accounts in an Azure AD tenant. The New-AzureADUser cmdlet is typically used to create new user accounts within the organization's Azure AD, not for creating guest user accounts for external users. To achieve the goal of creating guest user accounts for the 500 external users in contoso.com, a different approach or command should be used, such as inviting external users as guests using the appropriate Azure AD cmdlets or methods.
upvoted 1 times
...
7658b84
8 months, 2 weeks ago
For EntraID, the powershell command is New-MgInvitation.
upvoted 2 times
...
tashakori
10 months, 4 weeks ago
No is right
upvoted 2 times
...
mojo86
11 months, 1 week ago
A is correct if used with the -UserType "Guest" parameter. The New-AzureADUser cmdlet is used in Azure Active Directory (Azure AD) to create a new user account. The -UserType "Guest" parameter specifies that the new user should be created as a guest user. Guest users are typically users from outside the Azure AD organization, such as partners or customers, who need access to resources within the organization. Creating a guest user allows you to grant them access to specific resources without requiring them to be a member of your organization's Azure AD directory.
upvoted 4 times
...
30th
1 year ago
Selected Answer: A
I am not sure about B. According to the task the account must be created user "in contoso.com". Invited users won't be a real members of contoso.com domain. Users are invited with their own E-Mails.
upvoted 1 times
...
Saurabh_Bhargav
1 year ago
B is correct
upvoted 1 times
...
photon99
1 year, 3 months ago
New-AzureADMSInvitation is realted to Azure AD Powershell, why its included in AZ 104?
upvoted 2 times
...
james2033
1 year, 5 months ago
Selected Answer: B
New-AzureADMSInvitation https://learn.microsoft.com/en-us/azure/active-directory/external-identities/bulk-invite-powershell#send-bulk-invitations
upvoted 1 times
...
dhivyamohanbabu
1 year, 7 months ago
Correct answer B
upvoted 1 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago