Partilhar via


Set-PowerAppTenantProtectionKey

Sets the Power Platform protection key.

Syntax

Default (Default)

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.

Parameter properties

Type:String
Default value:2020-06-01
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-KeyName

The key name.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-LocationName

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

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-TimeoutInMinutes

The client timeout setting in minutes.

Parameter properties

Type:Int32
Default value:10080
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-WaitUntilFinished

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

Parameter properties

Type:Boolean
Default value:True
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments: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.