guimatheus92 / Obtain-Power-BI-users-and-licenses-from-Azure-through-PowerShell

In this project you can retrieve metadata from Power BI services from a Powershell script.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Get Power BI users and licenses from Azure through PowerShell script

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\"

About

In this project you can retrieve metadata from Power BI services from a Powershell script.


Languages

Language:PowerShell 100.0%