2
Please I need help with a powershell script that can export all the groups and group members of an azure ad and their attributes to a storage account, table storage
Get a list of all Groups in AD first (Get-AzADGroup)
Loop through all Groups and get Members of the group
Loop through all members and get the member info (userprincipal, userid, user, givenname, surname, usertype, accountenabled, etc.) (Get-AzADGroupMember)
Connect to Table Storage (Get-AzStorageAccount)
Get Table Storage Rows (Get-AzTableRow)
Add a Table Row to Table Storage (Add-AzTableRow) using a consistent row key