Partilhar via


Set-AdminPowerAppEnvironmentBackupRetentionPeriod

Updates the environment backup retention period.

Syntax

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.

Type:String
Position:Named
Default value:2021-04-01
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-EnvironmentName

The environment ID.

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

-NewBackupRetentionPeriodInDays

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

Type:Int32
Position:Named
Default value:0
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-TimeoutInMinutes

The client timeout setting in minutes.

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

-WaitUntilFinished

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

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