0
votes

im trying to use azure function app to extract a list of all Azure Active Directory users through Powershell and save as a csv and then upload to a ftp server

there is a lot of old articles but azure seemed to build out more functions...

my first challenge is getting the powershell commands to read our aad environment

any information, articles or pointers will be greatly appreciated

1
Install the AzureAD module. To get info on AAD users you can use mainly Get-AzureADUser.Santiago Squarzon
ive found the following support.gridprosoftware.com/hc/en-us/articles/… i believe this would be a start to adding azure AD i have the Get-AzureADuser ps script it runs locally but not through azure functionsuser2514909

1 Answers

0
votes

Use the below powershell script :

>Get-AzureAdUser

This will list use users in Ad

To Export the list in csv use the below query :

>Get-AzureADUser | export-csv file.csv

enter image description here