This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Connect-PowerBIServiceAccount | |
#Get-PowerBIWorkspace | Get-Member | |
#$ws = Get-PowerBIWorkspace -Scope Organization -Filter "tolower(name) eq 'testworkspace'" | |
#$ws = Get-PowerBIWorkspace -Scope Organization | Where {($_.IsOnDedicatedCapacity -eq $true) -and ($_.State -eq "Active") -and ($_.Type -ne "PersonalGroup")} | |
$ws = Get-PowerBIWorkspace -Scope Organization -All | |
$workspace = | |
foreach ($w in $ws) { | |
[PSCustomObject] @{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PARAM( | |
[string] [Parameter(Mandatory = $True, HelpMessage = "Choose subscription you want be inventored")] $SubscriptionName | |
) | |
#Variables | |
$ReportDate = (Get-Date).ToString("yyyy-MM-dd HH:mm") | |
#Login to Azure | |
Connect-AzAccount |