Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
Restore-PowerAppEnvironment
Restores an environment.
Syntax
Default (Default)
Restore-PowerAppEnvironment
[-EnvironmentName] <String>
[-RestoreToRequestDefinition] <Object>
[[-WaitUntilFinished] <Boolean>]
[[-TimeoutInMinutes] <Int32>]
[[-ApiVersion] <String>]
[<CommonParameters>]
Description
The Restore-PowerAppEnvironment cmdlet restores the specified Power Platform environment. Use Get-Help Restore-PowerAppEnvironment -Examples for more detail.
Examples
EXAMPLE 1
Restore-PowerAppEnvironment -EnvironmentName 0fc02431-15fb-4563-a5ab-8211beb2a86f -RestoreToRequestDefinition $restoreRequest
Restore environment 0fc02431-15fb-4563-a5ab-8211beb2a86f. $restoreRequest = [pscustomobject]@{ SourceEnvironmentId = 0fc02431-15fb-4563-a5ab-8211beb2a86f TargetEnvironmentName = "Restored Environment" TargetSecurityGroupId = "204162d5-59db-40c2-9788-2cda6b063f2b" RestorePointDateTime = $datetime.ToString("yyyy-MM-dd HH:mm:ss") SkipAuditData: true }
Parameters
-ApiVersion
The api version to call with.
Parameter properties
| Type: | String |
| Default value: | 2019-05-01 |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
-EnvironmentName
The target environment ID.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
-RestoreToRequestDefinition
The restore request definition object.
Parameter properties
| Type: | Object |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
-TimeoutInMinutes
The timeout setting in minutes.
Parameter properties
| Type: | Int32 |
| Default value: | 10080 |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
-WaitUntilFinished
If set to true, the cmdlet doesn't return until completed.
Parameter properties
| Type: | Boolean |
| Default value: | True |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
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.
