Commands › Power BI
Add-PowerBIEncryptionKey
Adds an encryption key for Power BI workspaces assigned to a capacity.
Quick start script
# Add-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
Add-PowerBIEncryptionKey -KeyVaultKeyUri <String> -Name <String> | Format-List
# 3. Export for evidence / drift tracking
Add-PowerBIEncryptionKey | Export-Clixml .\PowerBIEncryptionKey-$(Get-Date -Format yyyyMMdd).xml
Syntax — 3 parameter sets
DefaultAndActivate (Default)
Add-PowerBIEncryptionKey -Name <String> -KeyVaultKeyUri <String> [-Default] [-Activate] [<CommonParameters>]
Default
Add-PowerBIEncryptionKey -Name <String> -KeyVaultKeyUri <String> [-Default] [<CommonParameters>]
Activate
Add-PowerBIEncryptionKey -Name <String> -KeyVaultKeyUri <String> [-Activate] [<CommonParameters>]
Parameters (4)
Reference facts derived from Microsoft documentation, © Microsoft, licensed MIT; restructured with original guidance by serv365.ai.