Browsed by
Category: POWERSHELL

Get Power BI Metadata with Scanner API

Get Power BI Metadata with Scanner API

In today’s post, we will discuss how to get metadata for a requested list of Workspaces using the Power BI Scanner API. The result shows Data sources and connection details for each Workspace, Data sources used by each Dataset, and Reports connected to each Dataset. For the Datasets, you can also extract metadata like tables, columns, measures, DAX expressions, mashup queries, and so on. To accomplish this, we will use 4 Scanner APIs: The user must be an administrator to…

Read More Read More

HOW TO RESTRICT PERSONAL GATEWAY INSTALLATION FOR POWER BI

HOW TO RESTRICT PERSONAL GATEWAY INSTALLATION FOR POWER BI

Manage gateway installers On Power BI service Gateway management or Power platform Admin center, a Global admin or a Power BI service admin can use Manage gateway installers to manage who can install an on-premises data gateway in a tenant. This feature does not apply to personal gateways. A Power BI idea for approval process before gateway becomes active has been completed. However, to restrict or prevent users from installing personal gateways in a Power BI tenant, you need to…

Read More Read More

Automate Export of Power BI Contents using PowerShell

Automate Export of Power BI Contents using PowerShell

In today’s post, we will discuss how to automate exporting Power BI Workspaces, Datasets, Reports and Dashboards using PowerShell. Step one: To use PowerShell cmdlets for managing and interacting with Power BI, you first need to install the module: MicrosoftPowerBIMgmt Install-Module -Name MicrosoftPowerBIMgmt Step two: Sign in to Power BI using below command, a prompt will pop up to authenticate to Power BI. For this example, I am authenticating as Power BI Admin. Connect-PowerBIServiceAccount Note: You can also authenticate using…

Read More Read More

ADDING AZURE AD SECURITY GROUP TO POWER BI WORKSPACE USING POWERSHELL

ADDING AZURE AD SECURITY GROUP TO POWER BI WORKSPACE USING POWERSHELL

In this post, we will discuss how to add an AD Security group to Power BI Workspace using PowerShell script. If you have many users in your organization, it can be tedious to add users one by one as members or Admins to a Power BI Workspace. With PowerShell, you can add an AD group to Power BI Workspace using the Groups – Add Group User API or Add-PowerBIWorkspaceUser Cmdlet. What you will need: Object ID for the group From…

Read More Read More

Automate Power BI Gateway installation and configuration

Automate Power BI Gateway installation and configuration

Power BI has introduced a new PowerShell cmdlets which enable automation of On-Premises Gateway installation. In this post, we will walk-through how to install and configure Power BI gateway using PowerShell cmdlets. These cmdlets require PowerShell 7 or higher. Before we begin, you will see that I have published a report using On-Premises datasource to Power BI service, but there is no Gateway configured to refresh the dataset. Let’s walk-through the steps: Install the package : Install-Module -Name DataGateway Connect…

Read More Read More