Share via


Backup-PowerAppEnvironment

Backup an environment.

Syntax

Default (Default)

Backup-PowerAppEnvironment
    [-EnvironmentName] <String>
    [-BackupRequestDefinition] <Object>
    [[-ApiVersion] <String>]
    [<CommonParameters>]

Description

The Backup-PowerAppEnvironment cmdlet backs up the specified environment. Use Get-Help Backup-PowerAppEnvironment -Examples for more detail.

Examples

EXAMPLE 1

Backup-PowerAppEnvironment -EnvironmentName 0fc02431-15fb-4563-a5ab-8211beb2a86f -BackupRequestDefinition $backupRequest

Backup environment 0fc02431-15fb-4563-a5ab-8211beb2a86f. $backupRequest = [pscustomobject]@{ Label = "this is a label" Notes = "this is a note" }

Parameters

-ApiVersion

The api version to call with. Default 2018-01-01.

Parameter properties

Type:String
Default value:2019-05-01
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:3
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-BackupRequestDefinition

The backup request definition object.

Parameter properties

Type:Object
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:2
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-EnvironmentName

The target environment ID.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:1
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
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.