Jaa


Set-PowerAppProtectionStatus

Set environment protection status.

Syntax

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.

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

-EnvironmentName

Environment ID to change the protection status.

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

-ProtectionKeyManagedBy

Protection key managed by (Microsoft or Customer).

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

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