Командлет Disable-AzRecoveryServicesBackupRPMountScript отключает файлы точки восстановления, которая была подключена ранее с помощью командлета Get-AzRecoveryServicesBackupRPMountScript.
Примеры
Пример 1. Отключение точки восстановления
$namedContainer = Get-AzRecoveryServicesBackupContainer -ContainerType "AzureVM" -Status "Registered" -FriendlyName "V2VM"
$backupitem = Get-AzRecoveryServicesBackupItem -Container $namedContainer -WorkloadType "AzureVM"
$startDate = (Get-Date).AddDays(-7)
$endDate = Get-Date
$rp = Get-AzRecoveryServicesBackupRecoveryPoint -Item $backupitem -StartDate $startdate.ToUniversalTime() -EndDate $enddate.ToUniversalTime()
<# To mount files of the latest recovery point, obtain the script by #>
Get-AzRecoveryServicesBackupRPMountScript -RecoveryPoint $rp[0]
OsType Password Filename
------ -------- --------
Windows e3632984e51f496 V2VM_wus2_8287309959960546283_451516692429_cbd6061f7fc543c489f1974d33659fed07a6e0c2e08740.exe
<# When the script is run, it will mount the files of the recovery point $rp[0]
After the relevant files are copied, then you remove the files of the recovery point by running the disable cmdlet #>
Disable-AzRecoveryServicesBackupRPMountScript -RecoveryPoint $rp[0]
Пример 2
Отключает все файлы точки восстановления. (autogenerated)
Этот командлет поддерживает общие параметры: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction и -WarningVariable. Дополнительные сведения см. в разделе about_CommonParameters.
Источник этого содержимого можно найти на GitHub, где также можно создавать и просматривать проблемы и запросы на вытягивание. Дополнительные сведения см. в нашем руководстве для участников.