Partilhar via


New-PowerAppImportProtectionKey

Imports a Power Platform environment protection key.

Syntax

New-PowerAppImportProtectionKey
   -LocationName <String>
   -KeyName <String>
   -KeyType <Int32>
   -KeyPassword <String>
   -Key <Byte[]>
   [-ApiVersion <String>]
   [<CommonParameters>]

Description

The New-PowerAppImportProtectionKey cmdlet imports a new protection key. Use Get-Help New-PowerAppImportProtectionKey -Examples for more detail.

Examples

EXAMPLE 1

New-PowerAppImportProtectionKey -LocationName $LocationName -KeyName $KeyName -KeyType $KeyType -KeyPassword $KeyPassword -Key $Key

Imports a new protection key.

Parameters

-ApiVersion

Specifies the Api version that is called.

Type:String
Position:Named
Default value:2020-06-01
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Key

The key value.

Type:Byte[]
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-KeyName

The key name.

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

-KeyPassword

The key password.

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

-KeyType

The key type.

Type:Int32
Position:Named
Default value:0
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-LocationName

The location name.

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