Create Automation Account Webhook

The following topics are covered:

Initial Setup

To verify that the virtual machine instances are running, perform the following steps:

  1. From Home, navigate to Azure services > Resource Group > <resource_group_name>.
    The selected resource group - Overview window is displayed.
  2. Under Resources tab, group the resources based on the resource type.
  3. 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:

  1. From Start menu, open PowerShell and navigate to the folder where you have downloaded the PowerShell template.
  2. 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
    

  3. Save this webhook url for future purpose.
  4. 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.
  5. Click Scaling from the left Settings panel.
    The selected VMSS - Scaling window is displayed.

    Figure 189 : VMSS-Scaling - Notify tab

  6. Select Notify tab.
  7. Copy the saved webhook url and paste it in the Webhook field.
  8. Click Save to save the changes.

Verify the Runbook Job creation

To verify the creation of runbook job, perform the following steps:

  1. From Home, navigate to Azure services > Automation Accounts > <automation_account_name>.
    The selected automation account - Overview window is displayed.
  2. 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

  3. Verify if the runbook job has completed status.
  4. Select the runbook job > All Logs tab to verify the logs.
    The selected automation account - selected job - Jobs window is displayed.
  5. Figure 191 : Selected runbook job window

COMPANY INFORMATION: Copyright © 2023 A10 Networks, Inc. All Rights Reserved. Legal Notice