Set-AzAutomationWebhook
Memodifikasi webhook untuk runbook Automation.
Sintaks
Set-AzAutomationWebhook
[-Name] <String>
[-IsEnabled] <Boolean>
[[-Parameters] <IDictionary>]
[-RunOn <String>]
[-ResourceGroupName] <String>
[-AutomationAccountName] <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Deskripsi
Cmdlet Set-AzAutomationWebhook memodifikasi webhook untuk runbook Azure Automation.
Contoh
Contoh 1: Menonaktifkan webhook
Set-AzAutomationWebhook -Name "Webhook01" -ResourceGroupName "ResourceGroup01" -AutomationAccountName "AutomationAccount01" -IsEnabled $False
Perintah ini menonaktifkan webhook bernama Webhook01 di akun Automation bernama AutomationAccount01.
Contoh 2
Set-AzAutomationWebhook -Name "Webhook01" -ResourceGroupName "ResourceGroup01" -AutomationAccountName "AutomationAccount01" -RunOn 'Windows'
Perintah ini mengatur nilai run on untuk webhook dan memaksa runbook dijalankan pada grup Hybrid Worker yang disebut Windows.
Contoh 3
Set-AzAutomationWebhook -Name "Webhook01" -ResourceGroupName "ResourceGroup01" -AutomationAccountName "AutomationAccount01" -RunOn $null
Perintah ini memperbarui nilai run on untuk webhook dan memaksa runbook dijalankan pada pekerja runbook Azure.
Parameter
-AutomationAccountName
Menentukan nama akun Automation tempat cmdlet ini memodifikasi webhook.
Type: | String |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
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 |
-IsEnabled
Menentukan apakah webhook diaktifkan.
Type: | Nullable<T>[Boolean] |
Position: | 3 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Name
Menentukan nama webhook yang dimodifikasi cmdlet ini.
Type: | String |
Position: | 2 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Parameters
Menentukan kamus pasangan kunci/nilai. Kuncinya adalah nama parameter runbook. Nilainya adalah nilai parameter runbook. Ketika runbook dimulai sebagai respons terhadap webhook, parameter ini diteruskan ke runbook.
Type: | IDictionary |
Position: | 4 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ResourceGroupName
Menentukan nama grup sumber daya tempat cmdlet ini memodifikasi webhook.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-RunOn
Nama opsional agen hibrid yang harus menjalankan runbook
Type: | String |
Aliases: | HybridWorker |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Input
Nullable<T>[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]
Output
Link Terkait
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