A document repository can also be found in my profile article at Medium.
The first step is to install Azure modules on PowerShell:
Install-Module -Name AzureRM -Force
Install-Module -Name AzureAD -Force
The second step is to change your Azure connections:
# Account and Azure data to be able to access
$PBIAdminUPN = “youremail@email.com.br”
$PBIAdminPW = “yourpassword”
$MyOrgTenantID = “your tenant”
$MyOrgBIAppID = “your ID from your Azure app”
$MyOrgBIThumbprint = “thumbprint id
If you want, you can change the folder where you want to download the CSV files
$BasePath = "D:\Azure\"