Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Fixed comment #45

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions takeover-dataset.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ $datasetId = " FILL ME IN " # the ID of dataset to rebind
# Login to the Power BI service with your Power BI credentials
Login-PowerBI

# Make the request to bind to a gateway
# Make the request to take over the dataset
$uri = "groups/$groupId/datasets/$datasetId/Default.TakeOver"

# Try to bind to a new gateway
# Try to take over the dataset
try {
Invoke-PowerBIRestMethod -Url $uri -Method Post

Expand All @@ -40,4 +40,4 @@ try {

$errmsg = Resolve-PowerBIError -Last
$errmsg.Message
}
}