Bagikan melalui


Start-AzureSiteRecoveryProtectionProfileDissociationJob

Memulai pekerjaan disosiasi pada kebijakan replikasi yang terkait dengan kontainer perlindungan Site Recovery.

Catatan

Cmdlet yang dirujuk dalam dokumentasi ini adalah untuk mengelola sumber daya Azure warisan yang menggunakan API Azure Service Manager (ASM). Modul PowerShell warisan ini tidak disarankan saat membuat sumber daya baru karena ASM dijadwalkan untuk dihentikan. Untuk informasi selengkapnya, lihat Penghentian Azure Service Manager.

Modul Az PowerShell adalah modul PowerShell yang direkomendasikan untuk mengelola sumber daya Azure Resource Manager (ARM) dengan PowerShell.

Sintaks

Start-AzureSiteRecoveryProtectionProfileDissociationJob
     -ProtectionProfile <ASRProtectionProfile>
     -PrimaryProtectionContainer <ASRProtectionContainer>
     [-Profile <AzureSMProfile>]
     [<CommonParameters>]
Start-AzureSiteRecoveryProtectionProfileDissociationJob
     -ProtectionProfile <ASRProtectionProfile>
     -PrimaryProtectionContainer <ASRProtectionContainer>
     -RecoveryProtectionContainer <ASRProtectionContainer>
     [-Profile <AzureSMProfile>]
     [<CommonParameters>]

Deskripsi

Cmdlet Start-AzureSiteRecoveryProtectionProfileDissociationJob memulai pekerjaan disosiasi pada kebijakan replikasi yang terkait dengan kontainer perlindungan Azure Site Recovery.

Contoh

Contoh 1: Memisahkan profil perlindungan

PS C:\> $ProtectionContainer01 = Get-AzureSiteRecoveryProtectionContainer -Id "5ba2ea95-856d-4033-9ca3-91e3e2c080b9"
PS C:\> $ProtectionContainer02 = Get-AzureSiteRecoveryProtectionContainer -Id "cf011f2a-aa19-443c-9f60-357f6b8afb77"
PS C:\> Start-AzureSiteRecoveryProtectionProfileDissociationJob -PrimaryProtectionContainer $ProtectionContainer01 -ProtectionProfile $ProtectionContainer01.AvailableProtectionProfiles[0] -RecoveryProtectionContainer $ProtectionContainer02
Name             : MyProtectionProfile
ID               : 51978b0f-9241-4153-9171-2e19344f0805
ClientRequestId  : bb6f3200-b7c6-4c6f-bcbc-a70bb9946f03-2015-01-30 02:55:55Z-P
State            : NotStarted
StateDescription : NotStarted
StartTime        : 
EndTime          : 
AllowedActions   : 
Tasks            : {}
Errors           : {}

Perintah pertama mendapatkan kontainer perlindungan dengan menggunakan cmdlet Get-AzureSiteRecoveryProtectionContainer , lalu menyimpan kontainer tersebut dalam variabel $ProtectionContainer 01.

Perintah kedua mendapatkan kontainer perlindungan, lalu menyimpannya dalam variabel $ProtectionContainer 02.

Perintah akhir memisahkan profil perlindungan dari kontainer yang disimpan di $ProtectionContainer 01 sebagai kontainer perlindungan utama. Perintah memisahkan kontainer yang disimpan di $ProtectionContainer 02 sebagai kontainer perlindungan pemulihan.

Parameter

-PrimaryProtectionContainer

Menentukan kontainer perlindungan utama.

Jenis:ASRProtectionContainer
Position:Named
Nilai default:None
Diperlukan:True
Terima input alur:False
Terima karakter wildcard:False

-Profile

Menentukan profil Azure tempat cmdlet ini dibaca. Jika Anda tidak menentukan profil, cmdlet ini akan membaca dari profil default lokal.

Jenis:AzureSMProfile
Position:Named
Nilai default:None
Diperlukan:False
Terima input alur:False
Terima karakter wildcard:False

-ProtectionProfile

Menentukan pengaturan profil perlindungan untuk memisahkan diri dari kontainer perlindungan. Menentukan pengaturan profil perlindungan untuk diterapkan ke kontainer perlindungan. Untuk mendapatkan objek ASRProtectionProfile , gunakan cmdlet New-AzureSiteRecoveryProtectionProfileObject.

Jenis:ASRProtectionProfile
Position:Named
Nilai default:None
Diperlukan:True
Terima input alur:True
Terima karakter wildcard:False

-RecoveryProtectionContainer

Menentukan kontainer perlindungan pemulihan.

Jenis:ASRProtectionContainer
Position:Named
Nilai default:None
Diperlukan:True
Terima input alur:False
Terima karakter wildcard:False