AZ-104 practice question 3 of 35

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-AzureADMSInvitation cmdlet for each external user. Does this meet the goal?

Full set: 569 questions

Domain Manage Azure identities and governance

Answer options
A: Yes Correct answer
B: No
Correct Answer:
A. Yes
Explanation

The proposed solution correctly meets the goal. The New-AzureADMSInvitation cmdlet, part of the AzureAD PowerShell module, is specifically designed to invite external users to an Azure Active Directory (Azure AD) tenant. When an invitation is created using this cmdlet, a corresponding guest user account is provisioned in the directory. Automating this process with a PowerShell script that reads user data from a CSV file is a standard and efficient method for performing bulk operations, such as inviting 500 users. The script would iterate through each record in the CSV file and execute the cmdlet, successfully creating a guest account for each external user.

Why Incorrect

B. No: This option is incorrect. The New-AzureADMSInvitation cmdlet is the appropriate tool for this task. Using it within a PowerShell script to process a list of users from a CSV file is the standard procedure for bulk-inviting guest users to Azure AD.

References

1. Microsoft Learn

Azure Active Directory Documentation. New-AzureADMSInvitation. This official documentation confirms that the cmdlet is used to invite a new external user to the directory.

Reference: learn.microsoft.com/en-us/powershell/module/azuread/new-azureadmsinvitation

2. Microsoft Learn

Azure Active Directory Documentation. Tutorial: Bulk invite Azure AD B2B collaboration users. This tutorial explicitly provides a sample PowerShell script that reads from a CSV file and uses the New-AzureADMSInvitation cmdlet to send bulk invitations.

Reference: learn.microsoft.com/en-us/azure/active-directory/external-identities/bulk-invite-powershell

Section: "Understand the PowerShell script".

Scroll to Top