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 questionsDomain Manage Azure identities and governance
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.
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.
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".
Keep practicing
Take the free AZ-104 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other AZ-104 practice questions
- Question 1You have an Azure App Services web app named App1. You plan to deploy App1 by using Web D…
- Question 2Your company has an azure subscription that includes a storage account, a resource group,…
- Question 5You have an Azure subscription. You plan to deploy an Azure Kubernetes Service (AKS) clus…
- Question 6You have an Azure virtual machine named VM1. VM1 was deployed by using a custom Azure Res…
- Question 7You need to ensure that VM1 can communicate with VM4. The solution must minimize administ…
- Question 9You have an Azure virtual machine named VM1 that runs Windows Server 2016. You need to cr…
