Share via


Set-AdminPowerAppEnvironmentBackupRetentionPeriod

Updates the environment backup retention period.

Syntax

Default (Default)

Set-AdminPowerAppEnvironmentBackupRetentionPeriod
    -EnvironmentName <String>
    -NewBackupRetentionPeriodInDays <Int32>
    [-WaitUntilFinished <Boolean>]
    [-TimeoutInMinutes <Int32>]
    [-ApiVersion <String>]
    [<CommonParameters>]

Description

The Set-AdminPowerAppEnvironmentBackupRetentionPeriod cmdlet updates the backup retention period of the specified environment. Use Get-Help Set-AdminPowerAppEnvironmentBackupRetentionPeriod -Examples for more detail.

Examples

EXAMPLE 1

Set-AdminPowerAppEnvironmentBackupRetentionPeriod -EnvironmentName 8d996ece-8558-4c4e-b459-a51b3beafdb4 -NewBackupRetentionPeriodInDays 7

Updates the backup retention period of environment '8d996ece-8558-4c4e-b459-a51b3beafdb4' to seven days.

EXAMPLE 2

Set-AdminPowerAppEnvironmentBackupRetentionPeriod -EnvironmentName 8d996ece-8558-4c4e-b459-a51b3beafdb4 -NewBackupRetentionPeriodInDays 28

Updates the backup retention period of environment '8d996ece-8558-4c4e-b459-a51b3beafdb4' to 28 days.

Parameters

-ApiVersion

The api version to call with.

Parameter properties

Type:String
Default value:2021-04-01
Supports wildcards:False
DontShow:False

Parameter sets

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

-EnvironmentName

The environment ID.

Parameter properties

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

Parameter sets

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

-NewBackupRetentionPeriodInDays

The new backup retention period of the environment in days. Valid values are 7, 14, 21, or 28.

Parameter properties

Type:Int32
Default value:0
Supports wildcards:False
DontShow:False

Parameter sets

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

-TimeoutInMinutes

The client timeout setting in minutes.

Parameter properties

Type:Int32
Default value:10080
Supports wildcards:False
DontShow:False

Parameter sets

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

-WaitUntilFinished

Default is true. When set to true, then the cmdlet doesn't return until the operation completes.

Parameter properties

Type:Boolean
Default value:True
Supports wildcards:False
DontShow:False

Parameter sets

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