Muokkaa

Jaa


Set-PowerBICapacityEncryptionKey

Updates the encryption key for the Power BI capacity.

Syntax

Set-PowerBICapacityEncryptionKey
   -KeyName <String>
   -CapacityId <Guid>
   [<CommonParameters>]
Set-PowerBICapacityEncryptionKey
   -KeyName <String>
   -Capacity <Capacity>
   [<CommonParameters>]
Set-PowerBICapacityEncryptionKey
   -Key <EncryptionKey>
   -CapacityId <Guid>
   [<CommonParameters>]

Description

Updates the encryption key associated with the Power BI capacity. Encryption key for the tenant must be exist before calling this cmdlet.

Before you run this command, make sure you log in using Connect-PowerBIServiceAccount. This cmdlet requires the calling user to be a tenant administrator of the Power BI service.

Examples

Example 1

PS C:\> Set-PowerBICapacityEncryptionKey -CapacityId 08d57fce-9e79-49ac-afac-d61765f97f6f -KeyName 'Contoso Sales'

Parameters

-Capacity

The capacity entity to update.

Type:Capacity
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-CapacityId

ID of the capacity to update.

Type:Guid
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Key

The encryption key entity to use.

Type:EncryptionKey
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-KeyName

Name of the encryption key to use.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.PowerBI.Common.Api.Encryption.EncryptionKey

Microsoft.PowerBI.Common.Api.Capacities.Capacity

Outputs

System.Object