Commands › Power BI

Switch-PowerBIEncryptionKey

Power BI MicrosoftPowerBIMgmt Switch-*

Switch the encryption key for Power BI workspaces assigned to a capacity.

Quick start script

# Switch-PowerBIEncryptionKey — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-PowerBIServiceAccount -ServicePrincipal -CertificateThumbprint $thumb -ApplicationId $appId -Tenant $tenantId

# 2. Run and inspect
Switch-PowerBIEncryptionKey -KeyVaultKeyUri <String> -Name <String> | Format-List

# 3. Export for evidence / drift tracking
Switch-PowerBIEncryptionKey | Export-Clixml .\PowerBIEncryptionKey-$(Get-Date -Format yyyyMMdd).xml

Syntax

Switch-PowerBIEncryptionKey -Name <String> -KeyVaultKeyUri <String> [<CommonParameters>]

Parameters (2)

ParameterTypeRequiredWhat it controls
-KeyVaultKeyUri String yes Uri to the version of the "Azure Key Vault" key to be used. Only supports 4096 bytes key.
-Name String yes The name of the encryption key.

Reference facts derived from Microsoft documentation, © Microsoft, licensed MIT; restructured with original guidance by serv365.ai.