Skip to content
This repository was archived by the owner on Jun 13, 2024. It is now read-only.
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
12 changes: 10 additions & 2 deletions LoadTestingPowerShellTool/Initiate_Load.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,17 @@ while($reportCount -gt 0)
{
Write-Host "Gathering inputs for report $increment" -ForegroundColor Red

# Get required inputs from user
# Get required inputs from user if the user in china ,use Connect-PowerBIServiceAccount -Environment China . remember to install this in powershell first: Install-Module -Name MicrosoftPowerBIMgmt
Write-Host "Select Id to authenticate to Power BI" -ForegroundColor Yellow
Login-PowerBI
$response = Read-Host "Are you using chinese Azure?[y/n]"
if ( $response -eq 'y' )
{
Connect-PowerBIServiceAccount -Environment China
}
if ( $response -eq 'n' )
{
Login-PowerBI
}

#Accessing list of workspaces
$workSpaceList = Get-PowerBIWorkspace
Expand Down