Commands › Power BI
Switch-PowerBIEncryptionKey
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)
Reference facts derived from Microsoft documentation, © Microsoft, licensed MIT; restructured with original guidance by serv365.ai.