Closed byteboy78 closed 8 months ago
@byteboy78, I've attached a customized version of Fetch - Graph.ps1
which automatically:
Az.Accounts
module if it is not already installedFetch - Utils.psm1
module from the same folder where the script is stored$config
properties if the $config
parameter is not specifiedGet-AzAccessToken
) if Service Principal credentials are not found in $config
parameterDownload here: FetchGraph.zip
Note: The Fetch - Utils.psm1
module must remain in the same folder with the script, or you'll have to modify the path on line 14 of the script.
I just tested the attached script by extracting the zip file into a new folder and executing it from there with no parameters. It successfully authenticated with my current user account, called the Graph APIs, and dumped the expected data into a new folder called graph
. I'm marking this issue as closed for now, but if it doesn't work for you, please tag me in a new comment, and I'll re-open the issue.
Hi,
This uses access token. Is there another way to login interactively and extract this data?
Thanks.