Reputation: 3736
In Azure Active Directory, I need to add 500k test users. Is there a powershell command that I could use in order to add n number of users into Azure Active Directory. Please let me know.
Upvotes: 1
Views: 716
Reputation: 16438
Please refer to this blog.
You can prepare users information to be created in a CSV file and then use Import-csv
to import them.
And then use New-AzureADUser command to create users.
Sample logic:
foreach($user in import-csv "C:\userinfo.csv")
{
New-AzureADUser -DisplayName $user.DisplayName ... and so on..
}
UPDATE:
Please note (see Azure AD service limits and restrictions):
A maximum of 50,000 Azure AD resources can be created in a single tenant by users of the Free edition of Azure Active Directory by default. If you have at least one verified domain, the default Azure AD service quota for your organization is extended to 300,000 Azure AD resources. Azure AD service quota for organizations created by self-service sign-up remains 50,000 Azure AD resources even after you performed an internal admin takeover and the organization is converted to a managed tenant with at least one verified domain. This service limit is unrelated to the pricing tier limit of 500,000 resources on the Azure AD pricing page. To go beyond the default quota, you must contact Microsoft Support.
So I'm afraid that you can't create 500K users in a tenant.
Upvotes: 1