Get Automation Runbook Webhook URL

895 views Asked by At

I want to retrieve existing Runbook webhook url using powershell script.

I have some existing webhook's which URL I need to retrieve, as given in below image: enter image description here

How can we get the URL using Powershell commandlet?

Thank you.

1

There are 1 answers

0
VenkateshDodda On BEST ANSWER

We have tried to pulling the webhook url using the 'Get-AzAutomationWebhook' cmdlet this cmdlet is executing successfully but it is showing the webhook url property as null as shown in below.

enter image description here

Based on the Azure documentation, we cannot pull the webhook url using PowerShell. The URL contains a security token that allows a third-party system to invoke the runbook with no further authentication. For this reason, you should treat the URL like a password. For security reasons, you can only view the URL in the Azure portal when creating the webhook. Note the URL in a secure location for future use.