Freigeben über


Copy-PowerAppEnvironment

Copy an environment from source to target.

Syntax

Copy-PowerAppEnvironment
    [-EnvironmentName] <String>
    [-CopyToRequestDefinition] <Object>
    [[-WaitUntilFinished] <Boolean>]
    [[-TimeoutInMinutes] <Int32>]
    [[-ApiVersion] <String>]
    [<CommonParameters>]

Description

The Copy-PowerAppEnvironment cmdlet copies an environment from source to target. Use Get-Help Copy-PowerAppEnvironment -Examples for more detail.

Examples

EXAMPLE 1

Copy-PowerAppEnvironment -EnvironmentName 0fc02431-15fb-4563-a5ab-8211beb2a86f -CopyToRequestDefinition $copyToRequest

Copy a source environment to 0fc02431-15fb-4563-a5ab-8211beb2a86f. $copyToRequest = [pscustomobject]@{ SourceEnvironmentId = $sourceEnvironment.EnvironmentName TargetEnvironmentName = "Copied from source" TargetSecurityGroupId = "204162d5-59db-40c2-9788-2cda6b063f2b" CopyType = "MinimalCopy" SkipAuditData: true }

Parameters

-ApiVersion

The api version to call with.

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

-CopyToRequestDefinition

The copy request definition object.

Type:Object
Position:2
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-EnvironmentName

The target environment ID.

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

-TimeoutInMinutes

The timeout setting in minutes.

Type:Int32
Position:4
Default value:10080
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-WaitUntilFinished

If set to true, the cmdlet doesn't return until completed.

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