The Manage-AutomationWebHook action provides a seamless experience for managing Azure Automation Account Webhooks. It checks for webhook expiration in the automation account and automatically creates a new instance when the webhook is about to expire.
Integrate this action into your GitHub workflow to fully automate your Webhook deployments!
The logic of this action relies on a predefined directory structure, primarily focusing on the Definitions folder where your webhook JSON definitions are stored.
text -Definitions -Webhooks -my-webhook.json -Source -Common
Example of a webhook file named my-webhook.json:
json { "Name": "my-webhook", "RunbookName": "test", "IsEnabled": true, "ExpiryTime": "2026-12-31T00:00:00Z" }
- environmentName (required) - Defines the environment for which you want to perform synchronization.
- projectDir (required) - Defines the path where the predefined directory structure is located.
- subscription (required) - Defines the subscription in which Azure Automation resides.
- azureSubscription (required) - Defines the Azure credentials.
- resourceGroup (required) - Defines the resource group.
- automationAccount (required) - The name of the Azure Automation account.
- fullSync - Defines whether or not to remove any existing items from the automation account that are not source-controlled.
- cloudEnvironment - Select the target Azure cloud environment (e.g., AzureCloud, AzureUSGovernment, AzureChinaCloud). Default is AzureCloud.