Share via


Set-PowerAppLockAllEnvironments

Lock all environments for the tenant that have customer managed encryption key enabled.

Syntax

Default (Default)

Set-PowerAppLockAllEnvironments
    -LocationName <String>
    -KeyName <String>
    [-ApiVersion <String>]
    [<CommonParameters>]

Description

The Set-PowerAppLockAllEnvironments cmdlet locks all environments for the tenant that have customer managed encryption key enabled. Be warned that this action disables all the environments that are in the tenant. All locked environments remain inaccessible to everyone, including Microsoft, until unlocked. Use Get-Help Set-PowerAppLockAllEnvironments -Examples for more detail.

Examples

EXAMPLE 1

Set-PowerAppLockAllEnvironments -LocationName $LocationName

Locks all environments in the tenant.

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.

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

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.