共用方式為


Reset-PowerAppEnvironment

Resets the specified environment.

Syntax

Reset-PowerAppEnvironment
     [-EnvironmentName] <String>
     [-ResetRequestDefinition] <Object>
     [[-WaitUntilFinished] <Boolean>]
     [[-TimeoutInMinutes] <Int32>]
     [[-ApiVersion] <String>]
     [<CommonParameters>]

Description

The Reset-PowerAppEnvironment cmdlet resets the specified environment using the parameters specified in the ResetRequestDefinition object. Use Get-Help Reset-PowerAppEnvironment -Examples for more detail.

Examples

EXAMPLE 1

Reset-PowerAppEnvironment -EnvironmentName 0fc02431-15fb-4563-a5ab-8211beb2a86f -ResetRequestDefinition $resetRequest

Resets environment 0fc02431-15fb-4563-a5ab-8211beb2a86f with $resetRequest object. $resetRequest = [pscustomobject]@{ FriendlyName = "Friendly Name" DomainName = "url" Purpose = "purpose" BaseLanguageCode = 1 Currency = [pscustomobject]@{ Code = "USD" Name = "USD" Symbol = "$" } SecurityGroupId = "204162d5-59db-40c2-9788-2cda6b063f2b" Templates = @() }

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

-EnvironmentName

The environment ID.

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

-ResetRequestDefinition

The ResetRequestDefinition object.

Type:Object
Position:2
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:True
Required:False
Accept pipeline input:False
Accept wildcard characters:False