你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Update-AzNetAppFilesBackupPolicy
将Azure NetApp 文档 (ANF) 备份策略更新为提供的可选修饰符。
语法
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>]
说明
Update-AzNetAppFilesBackupPolicy cmdlet 修改 ANF 备份策略。
示例
示例 1
Update-AzNetAppFilesBackupPolicy -ResourceGroupName "MyRG" -AccountName "MyAccount" -Name "MyBackupPolicy" -DailyBackupsToKeep 2
此命令将 ANF 备份策略“MyBackupPolicy”更改为具有给定的 DailyBackupsToKeep。
参数
-AccountName
ANF 帐户的名称
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-AccountObject
包含要更新的备份策略的 Account 对象
类型: | PSNetAppFilesAccount |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-Confirm
提示你在运行 cmdlet 之前进行确认。
类型: | SwitchParameter |
别名: | cf |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-DailyBackupsToKeep
要保留的每日备份计数
类型: | Nullable<T>[Int32] |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-DefaultProfile
用于与 Azure 通信的凭据、帐户、租户和订阅。
类型: | IAzureContextContainer |
别名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-InputObject
要删除的 BackupPolicy 对象
类型: | PSNetAppFilesBackupPolicy |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-Location
资源的位置
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-MonthlyBackupsToKeep
要保留的每月备份计数
类型: | Nullable<T>[Int32] |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Name
ANF 备份策略的名称
类型: | String |
别名: | BackupPolicyName |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-ResourceGroupName
ANF 帐户的资源组
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-ResourceId
ANF 备份策略的资源 ID
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-Tag
表示资源标记的哈希表数组
类型: | Hashtable |
别名: | Tags |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-WeeklyBackupsToKeep
要保留的每周备份计数
类型: | Nullable<T>[Int32] |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-WhatIf
显示运行该 cmdlet 时会发生什么情况。 cmdlet 未运行。
类型: | SwitchParameter |
别名: | wi |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
输入
输出
相关链接
- Get-AzNetAppFilesSnapshotPolicy
- New-AzNetAppFilesSnapshotPolicy
- Remove-AzNetAppFilesSnapshotPolicy
- Set-AzNetAppFilesSnapshotPolicy
- Get-AzNetAppFilesSnapshot
- New-AzNetAppFilesSnapshot
- Remove-AzNetAppFilesSnapshot
- Get-AzNetAppFilesVolume
- New-AzNetAppFilesVolume
- Update-AzNetAppFilesVolume
- Remove-AzNetAppFilesVolume