Create Automation Account Webhook
The following topics are covered:
Initial Setup
To verify that the virtual machine instances are running, perform the following steps:
- From Home, navigate to Azure services > Resource Group > <resource_group_name>.
The selected resource group - Overview window is displayed.
- Under Resources tab, group the resources based on the resource type.
- Select the virtual machine scale set instance under Virtual machine scale set type and verify that the instance is in Start mode.
Figure 188 : VMSS window
Create a Webhook
To create a webhook, perform the following steps:
- From Start menu, open PowerShell and navigate to the folder where you have downloaded the PowerShell template.
- Run the following command to create the webhook:
PS C:\Users\TestUser\Templates> .\CREATE_WEBHOOK_4.ps1 -runBookName "<runbook_name>"
Example:
PS C:\Users\TestUser\Templates> .\CREATE_WEBHOOK_4.ps1 -runBookName "SLB-Config"
After the webhook installation is complete, the webhook url is displayed.
Save this URL :
https://fa72c8e5-xxxx-xxxx-9dc5-b4a71eec0a95.webhook.scus.azure-automation.net/webhooks?token=Q*****pG4UEOScfqdEGEAkqJPgdK%2bOpusoUAWk*****%3d
- Save this webhook url for future purpose.
- From Home, navigate to Azure services > Virtual machine scale set > <vmss_name>.
The selected VMSS - Overview window is displayed. Here, the VMSS name is vth-server-vmss
.
- Click Scaling from the left Settings panel.
The selected VMSS - Scaling window is displayed.
Figure 189 : VMSS-Scaling - Notify tab
- Select Notify tab.
- Copy the saved webhook url and paste it in the Webhook field.
- Click Save to save the changes.
Verify the Runbook Job creation
To verify the creation of runbook job, perform the following steps:
- From Home, navigate to Azure services > Automation Accounts > <automation_account_name>.
The selected automation account - Overview window is displayed.
- Click Jobs from the left Process Automation panel.
The selected automation account - Jobs window is displayed. Here, the job is SLB-Config
.
Figure 190 : Selected automation account - Jobs window
- Verify if the runbook job has completed status.
- Select the runbook job > All Logs tab to verify the logs.
The selected automation account - selected job - Jobs window is displayed.
Figure 191 : Selected runbook job window