次の方法で共有


Set-PowerAppProtectionStatus

Set environment protection status.

Syntax

Default (Default)

Set-PowerAppProtectionStatus
    -EnvironmentName <String>
    -ProtectionKeyManagedBy <String>
    [-WaitUntilFinished <Boolean>]
    [-TimeoutInMinutes <Int32>]
    [-ApiVersion <String>]
    [<CommonParameters>]

Description

The Set-PowerAppProtectionStatus cmdlet updates the environment protection status. Use Get-Help Set-PowerAppProtectionStatus -Examples for more detail.

Examples

EXAMPLE 1

Set-PowerAppProtectionStatus -EnvironmentName $EnvironmentName -ProtectionKeyManagedBy Microsoft

Set environment protection managed by using the default Microsoft key.

Parameters

-ApiVersion

Specifies the Api version that is called.

Parameter properties

Type:String
Default value:2019-10-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

-EnvironmentName

Environment ID to change the protection status.

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

-ProtectionKeyManagedBy

Protection key managed by (Microsoft or Customer).

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 true. If set to true, then the cmdlet doesn't return until the 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.