Link to home
Start Free TrialLog in
Avatar of Timothy "Malachi" Kern
Timothy "Malachi" Kern

asked on

How do I bulk add Security Groups to Azure Office 365 Cloud using Powershell?

How do I bulk add Security Groups to Azure Office 365 using powershell?  These are not AD groups, only cloud only groups.
Avatar of Darrell Porter
Darrell Porter
Flag of United States of America image

Just to be clear - Are you 100% certain you are not trying to add Security Groups to an Azure AD instance?
If you are, to what type of directory service are you adding the groups to?
Avatar of Timothy "Malachi" Kern
Timothy "Malachi" Kern

ASKER

This is a cloud only Security Group In O365
I'm trying to add groups in bulk.  This particular document shows how this can be done one at a time, I have over 200 groups to add and don't want to add them one at a time.  

https://docs.microsoft.com/en-us/powershell/module/azuread/new-azureadgroup?view=azureadps-2.0#related-links
Hello Saif, thanks for your comment, I'm only trying to add multiple Security Group only, this article is for adding multiple users.
ASKER CERTIFIED SOLUTION
Avatar of Vasil Michev (MVP)
Vasil Michev (MVP)
Flag of Bulgaria image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks everyone
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
By the way, I am not a huge fan of single-line, overly-complicated, unreadable scripts.
I prefer to write scripts that can be understood by a wider audience.