Cmdlet Remove-AzSqlInstanceLink menghilangkan tautan instans. Perintah ini dapat menyebabkan kehilangan data jika tautan dihilangkan dan LSN replika tidak disinkronkan dengan primer, sehingga pengguna harus secara eksplisit mengonfirmasi perintah ketika diminta, atau menggunakan parameter -Force.
This operation may cause data loss if replica's last hardened LSN is not in sync with the primary. Are you sure you want to proceed?
[Y] Yes [N] No [?] Help (default is "Y"): Y
Perintah ini menghapus tautan instans "Link01" dari instans terkelola "ManagedInstance01".
Contoh 2: Menghapus tautan instans dengan bendera -Force eksplisit
This operation may cause data loss if replica's last hardened LSN is not in sync with the primary. Are you sure you want to proceed?
[Y] Yes [N] No [?] Help (default is "Y"): Y
Perintah ini menghapus tautan instans dengan ID sumber daya tertentu.
Contoh 4: Menghapus tautan instans berdasarkan objek PowerShell-nya
This operation may cause data loss if replica's last hardened LSN is not in sync with the primary. Are you sure you want to proceed?
[Y] Yes [N] No [?] Help (default is "Y"): Y
Perintah ini menghapus tautan instans yang ditentukan oleh objek tautan instans.
Contoh 5: Menghapus tautan instans berdasarkan objek instans induknya
This operation may cause data loss if replica's last hardened LSN is not in sync with the primary. Are you sure you want to proceed?
[Y] Yes [N] No [?] Help (default is "Y"): Y
Perintah ini menghapus tautan instans "Link01" dari instans terkelola yang ditentukan oleh objek instans.
Contoh 6: Menghapus tautan instans menggunakan parameter posisi
This operation may cause data loss if replica's last hardened LSN is not in sync with the primary. Are you sure you want to proceed?
[Y] Yes [N] No [?] Help (default is "Y"): Y
Perintah ini menghapus tautan instans "Link01" dari instans terkelola "ManagedInstance01" menggunakan parameter posisi.
Contoh 7: Menghapus semua tautan instans dari instans induknya dengan mempipa objek tautan
This operation may cause data loss if replica's last hardened LSN is not in sync with the primary. Are you sure you want to proceed?
[Y] Yes [N] No [?] Help (default is "Y"): Y
Perintah ini menghapus tautan instans dari instans terkelola "ManagedInstance01" dan menghasilkan objek tautan instans yang dihapus.
Cmdlet ini mendukung parameter umum: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, dan -WarningVariable. Untuk informasi selengkapnya, lihat about_CommonParameters.
Sumber untuk konten ini dapat ditemukan di GitHub, yang juga dapat Anda gunakan untuk membuat dan meninjau masalah dan menarik permintaan. Untuk informasi selengkapnya, lihat panduan kontributor kami.