Compartilhar via


Set-PowerAppTenantProtectionKey

Sets the Power Platform protection key.

Syntax

Set-PowerAppTenantProtectionKey
   -LocationName <String>
   -KeyName <String>
   [-WaitUntilFinished <Boolean>]
   [-TimeoutInMinutes <Int32>]
   [-ApiVersion <String>]
   [<CommonParameters>]

Description

The Set-PowerAppTenantProtectionKey cmdlet sets an existing tenant protection key. Use Get-Help Set-PowerAppTenantProtectionKey -Examples for more detail.

Examples

EXAMPLE 1

Set-PowerAppTenantProtectionKey -LocationName $LocationName -KeyName $KeyName

Sets the protection key using the specified 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

-KeyName

The key name.

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

-LocationName

The location name. For a list of location names, use the Get-AdminPowerAppEnvironmentLocations cmdlet.

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

-TimeoutInMinutes

The client timeout setting in minutes.

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

-WaitUntilFinished

Default is false. If set to true, then the cmdlet doesn't return until operation completes.

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