你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Update-AzNetAppFilesBackupPolicy

Updates an Azure NetApp Files (ANF) backup policy to the optional modifiers provided.

Syntax

Update-AzNetAppFilesBackupPolicy
      -ResourceGroupName <String>
      -Location <String>
      -AccountName <String>
      -Name <String>
      [-DailyBackupsToKeep <Int32>]
      [-WeeklyBackupsToKeep <Int32>]
      [-MonthlyBackupsToKeep <Int32>]
      [-Tag <Hashtable>]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Update-AzNetAppFilesBackupPolicy
      -Name <String>
      [-DailyBackupsToKeep <Int32>]
      [-WeeklyBackupsToKeep <Int32>]
      [-MonthlyBackupsToKeep <Int32>]
      [-Tag <Hashtable>]
      -AccountObject <PSNetAppFilesAccount>
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Update-AzNetAppFilesBackupPolicy
      [-DailyBackupsToKeep <Int32>]
      [-WeeklyBackupsToKeep <Int32>]
      [-MonthlyBackupsToKeep <Int32>]
      [-Tag <Hashtable>]
      -ResourceId <String>
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Update-AzNetAppFilesBackupPolicy
      [-DailyBackupsToKeep <Int32>]
      [-WeeklyBackupsToKeep <Int32>]
      [-MonthlyBackupsToKeep <Int32>]
      [-Tag <Hashtable>]
      -InputObject <PSNetAppFilesBackupPolicy>
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

The Update-AzNetAppFilesBackupPolicy cmdlet modifies an ANF backup policy .

Examples

Example 1

Update-AzNetAppFilesBackupPolicy -ResourceGroupName "MyRG" -AccountName "MyAccount" -Name "MyBackupPolicy" -DailyBackupsToKeep 2

This command changes the ANF backup policy "MyBackupPolicy" to have the given DailyBackupsToKeep.

Parameters

-AccountName

The name of the ANF account

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

-AccountObject

The Account object containing the Backup Policy to update

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

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DailyBackupsToKeep

Daily backups count to keep

Type:Nullable<T>[Int32]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-InputObject

The BackupPolicy object to remove

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

-Location

The location of the resource

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

-MonthlyBackupsToKeep

Monthly backups count to keep

Type:Nullable<T>[Int32]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Name

The name of the ANF backup policy

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

-ResourceGroupName

The resource group of the ANF account

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

-ResourceId

The resource id of the ANF Backup Policy

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

-Tag

A hashtable array which represents resource tags

Type:Hashtable
Aliases:Tags
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-WeeklyBackupsToKeep

Weekly backups count to keep

Type:Nullable<T>[Int32]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

String

PSNetAppFilesAccount

PSNetAppFilesBackupPolicy

Outputs

PSNetAppFilesBackupPolicy