Add-PowerBIEncryptionKey

Adds an encryption key for Power BI workspaces assigned to a capacity.

语法

DefaultAndActivate (默认值)

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>]

说明

Associates an encryption key for Power BI workspaces that is assigned to a premium capacity. Make sure to grant wrap and unwrap key permissions for Power BI service in the Azure Key Vault.

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.

示例

Example 1

PS C:\> Add-PowerBIEncryptionKey -Name 'Contoso Sales' -KeyVaultKeyUri 'https://contoso-vault2.vault.azure.net/keys/ContosoKeyVault/b2ab4ba1c7b341eea5ecaaa2wb54c4d2'

参数

-Activate

Indicates to activate any inactivated capacities to use this key for its encryption

参数属性

类型:SwitchParameter
默认值:None
支持通配符:False
不显示:False

参数集

DefaultAndActivate
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False
Activate
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-Default

Indicates that this key is set as default for the entire tenant. Any new capacity creation will inherit this key upon creation.

参数属性

类型:SwitchParameter
默认值:None
支持通配符:False
不显示:False

参数集

DefaultAndActivate
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False
Default
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-KeyVaultKeyUri

Uri to the version of the "Azure Key Vault" key to be used. Only supports 4096 bytes key.

参数属性

类型:String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:True
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-Name

The name of the encryption key.

参数属性

类型:String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:True
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

输入

None

输出

Microsoft.PowerBI.Common.Api.Encryption.EncryptionKey