Commands › Power BI
Set-PowerBIWorkspace
Updates a Power BI workspace.
Quick start script
# Set-PowerBIWorkspace — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-PowerBIServiceAccount -ServicePrincipal -CertificateThumbprint $thumb -ApplicationId $appId -Tenant $tenantId
# 2. Capture the current state first — you cannot roll back what you never recorded
$before = Get-PowerBIWorkspace
$before | Format-List
# 3. Make the change
Set-PowerBIWorkspace -CapacityId <Guid> -Id <Guid> -Workspace <Workspace>
# 4. Verify and diff
$after = Get-PowerBIWorkspace
Compare-Object ($before | Out-String) ($after | Out-String)
Syntax — 3 parameter sets
Properties (Default)
Set-PowerBIWorkspace [-Scope <PowerBIUserScope>] -Id <Guid> [-Name <String>] [-Description <String>]
[<CommonParameters>]
Workspace
Set-PowerBIWorkspace [-Scope <PowerBIUserScope>] -Workspace <Workspace> [<CommonParameters>]
Capacity
Set-PowerBIWorkspace [-Scope <PowerBIUserScope>] -Id <Guid> -CapacityId <Guid> [<CommonParameters>]
Parameters (6)
Reference facts derived from Microsoft documentation, © Microsoft, licensed MIT; restructured with original guidance by serv365.ai.