Restore-PowerAppEnvironment
Restores an environment.
Syntax
Restore-PowerAppEnvironment
[-EnvironmentName] <String>
[-RestoreToRequestDefinition] <Object>
[[-WaitUntilFinished] <Boolean>]
[[-TimeoutInMinutes] <Int32>]
[[-ApiVersion] <String>]
[<CommonParameters>]
Description
The Restore-PowerAppEnvironment cmdlet restores an environment.
Examples
EXAMPLE 1
Restore-PowerAppEnvironment -EnvironmentName [Guid] -RestoreToRequestDefinition $restoreRequest
Restore environment [Guid].
$restoreRequest = \[pscustomobject\]@{
SourceEnvironmentId = [Guid]
TargetEnvironmentName = "Restored Environment"
TargetSecurityGroupId = "[Guid]"
RestorePointDateTime = $datetime.ToString("yyyy-MM-dd HH:mm:ss")
SkipAuditData: true
}
Restores the specified environment as defined by the restore request definition object.
Parameters
-ApiVersion
Version of Power Apps API to use.
| Type: | String |
| Position: | 5 |
| Default value: | 2019-05-01 |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
-EnvironmentName
ID of the target environment.
| Type: | String |
| Position: | 1 |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
-RestoreToRequestDefinition
Restore request definition object.
| Type: | Object |
| Position: | 2 |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
-TimeoutInMinutes
Timeout setting in minutes. The maximum timeout setting is 1 week (60 min x 24 hour x 7 day).
| Type: | Int32 |
| Position: | 4 |
| Default value: | 10080 |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
-WaitUntilFinished
If set to true, the command will not return until complete.
| Type: | Boolean |
| Position: | 3 |
| Default value: | True |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |