exam questions

Exam AZ-100 All Questions

View all questions & answers for the AZ-100 exam

Exam AZ-100 topic 5 question 12 discussion

Actual exam question from Microsoft's AZ-100
Question #: 12
Topic #: 5
[All AZ-100 Questions]

You have an Azure Active Directory (Azure AD) tenant named contoso.onmicrosoft.com.
You hire a temporary vendor. The vendor uses a Microsoft account that has a sign-in of [email protected].
You need to ensure that the vendor can authenticate to the tenant by using [email protected].
What should you do?

  • A. From Windows PowerShell, run the New-AzureADUser cmdlet and specify the ""UserPrincipalName [email protected] parameter.
  • B. From the Azure portal, add a custom domain name, create a new Azure AD user, and then specify [email protected] as the username.
  • C. From Azure Cloud Shell, run the New-AzureADUser cmdlet and specify the ""UserPrincipalName [email protected] parameter.
  • D. From the Azure portal, add a new guest user, and then specify [email protected] as the email address.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️
UserPrincipalName - contains the UserPrincipalName (UPN) of this user. The UPN is what the user will use when they sign in into Azure AD. The common structure is @, so for Abby Brown in Contoso.com, the UPN would be [email protected]
Example:
To create the user, call the New-AzureADUser cmdlet with the parameter values: powershell New-AzureADUser -AccountEnabled $True -DisplayName "Abby Brown" -PasswordProfile $PasswordProfile -MailNickName "AbbyB" -
UserPrincipalName "[email protected]"
References:
https://docs.microsoft.com/bs-cyrl-ba/powershell/azure/active-directory/new-user-sample?view=azureadps-2.0

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
fonov
Highly Voted 5 years, 4 months ago
I think, the right answer is D. We should use Azure portal, add a new guest user, and then specify [email protected] as the email address. The New-AzureADUser cmdlet creates a new user not a new guest user. The New-AzureADMSInvitation cmdlet is used to invite a new external user to your directory, but the cmdlet uses the -InvitedUserEmailAddress parameter instead of -UserPrincipalName.
upvoted 7 times
jmyers43
5 years, 4 months ago
I agree
upvoted 2 times
...
...
Ragdoll
Most Recent 4 years, 9 months ago
Definitely D
upvoted 1 times
...
GParreiras
4 years, 10 months ago
answer is D
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 ...