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 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 (?) , you can switch to a simple comment.
Switch to a voting comment New
Mev4953
Highly Voted 2 weeks, 2 days 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 14 times
Mev4953
2 years, 1 month 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, 7 months ago
B is correct
upvoted 5 times
18c2076
6 months, 3 weeks ago
no sht sherlock
upvoted 1 times
...
...
...
NaoVaz
Highly Voted 2 years 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 14 times
...
SeMo0o0o0o
Most Recent 3 weeks, 3 days 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
...
SeMo0o0o0o
1 month ago
Selected Answer: B
B is corerct
upvoted 1 times
...
vrm1358
1 month, 3 weeks 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
2 months, 3 weeks 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
4 months, 1 week ago
For EntraID, the powershell command is New-MgInvitation.
upvoted 1 times
...
tashakori
6 months, 2 weeks ago
No is right
upvoted 2 times
...
mojo86
6 months, 3 weeks 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 3 times
...
30th
7 months, 3 weeks 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
8 months ago
B is correct
upvoted 1 times
...
photon99
11 months, 3 weeks ago
New-AzureADMSInvitation is realted to Azure AD Powershell, why its included in AZ 104?
upvoted 2 times
...
james2033
1 year, 1 month 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, 3 months ago
Correct answer B
upvoted 1 times
...
iDrewax
1 year, 4 months ago
Please help, for me this is very confusing. When to use ‘New-AzureADUser -UserType “Guest” ‘ ??? I understand that with the command ‘New-AzureADMSInvitation’ you can INVITE a user from outside your company to your subscription, which makes sense, and also automatically creates a guest user. But what’s wrong with the first command ‘New-AzureADUser -UserType “Guest” ‘ ? The question doesn’t mention the word INVITATION… it just says that you need to create the guest users.
upvoted 3 times
8c5e41b
1 year, 3 months ago
The ‘New-AzureADUser -UserType “Guest” ‘ part according the the link below allows you to list and filter users of type "Guest".
upvoted 1 times
...
...
hz78
1 year, 5 months ago
A. Yes, this meets the goal. Using a PowerShell script with the New-AzureADUser cmdlet to create guest user accounts for external users is a valid solution to achieve the goal of creating a guest user account in Azure AD for each of the 500 external users. The New-AzureADUser cmdlet creates a new user in Azure AD, and it can be used to create both internal and external users. To create external users, you can specify the UserType parameter as "Guest" when running the cmdlet. Therefore, the correct answer is A. Yes, this meets the goal.
upvoted 3 times
...
Madbo
1 year, 5 months ago
The solution does not meet the goal because the New-AzureADUser cmdlet creates a new user in the Azure AD tenant, not a guest user account.
upvoted 2 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 ...