Stop-AzDeployment
Membatalkan penyebaran yang sedang berjalan
Sintaks
Stop-AzDeployment
[-Name] <String>
[-PassThru]
[-Pre]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Stop-AzDeployment
-Id <String>
[-PassThru]
[-Pre]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Stop-AzDeployment
-InputObject <PSDeployment>
[-PassThru]
[-Pre]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Deskripsi
Cmdlet Stop-AzDeployment membatalkan penyebaran pada cakupan langganan yang telah dimulai tetapi tidak selesai. Untuk menghentikan penyebaran, penyebaran harus memiliki status provisi yang tidak lengkap, seperti Provisi, dan bukan status selesai, seperti Disediakan atau Gagal.
Untuk membuat penyebaran di cakupan langganan, gunakan cmdlet New-AzDeployment.
Cmdlet ini hanya menghentikan satu penyebaran yang sedang berjalan. Gunakan parameter Nama untuk menghentikan penyebaran tertentu.
Contoh
Contoh 1
Stop-AzDeployment -Name "deployment01"
Perintah ini membatalkan penyebaran yang sedang berjalan "deployment01" pada cakupan langganan saat ini.
Contoh 2
Get-AzDeployment -Name "deployment01" | Stop-AzDeployment
Perintah ini mendapatkan penyebaran "deployment01" pada cakupan langganan saat ini dan membatalkannya.
Parameter
-Confirm
Meminta Anda mengonfirmasi sebelum menjalankan cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DefaultProfile
Kredensial, akun, penyewa, dan langganan yang digunakan untuk komunikasi dengan Azure.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Id
Id sumber daya penyebaran yang sepenuhnya memenuhi syarat. contoh: /subscriptions/{subId}/providers/Microsoft.Resources/deployments/{deploymentName}
Type: | String |
Aliases: | DeploymentId, ResourceId |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InputObject
Objek penyebaran.
Type: | PSDeployment |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Name
Nama penyebaran.
Type: | String |
Aliases: | DeploymentName |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PassThru
{{Fill PassThru Description}}
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Pre
Saat diatur, menunjukkan bahwa cmdlet harus menggunakan versi API pra-rilis saat secara otomatis menentukan versi mana yang akan digunakan.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WhatIf
Menunjukkan apa yang akan terjadi jika cmdlet berjalan. Cmdlet tidak dijalankan.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Input
Output
Azure PowerShell
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk