Azure / azure-resource-manager-schemas

Schemas used to author and validate Resource Manager Templates. These schemas power the intellisense and syntax completion in our ARM Tools VSCode extension, as well as the Export Template API
MIT License
610 stars 517 forks source link

Microsoft.Automation/automationAccounts/webhooks differs from the powershell version #697

Open FranckSix opened 5 years ago

FranckSix commented 5 years ago

Wen I create a WebHook with powershell, service return the uri created to call this WebHook. But not with ARM Template...

If I use [reference ]ARM function, the uri returned is empty. How can I retrieve this uri to instrument my other services ???

Also the documentation of the webhook template specidfie that the URI is optional (which corresponds to the PowerShell call that generates the link) But in reality the template asks me to instrument this value? For me it does not make sense.

ghost commented 4 years ago

Hello @zjalexander! It looks like there is a schemas issue that needs your attention. Please investigate and confirm it is on your end. Thanks :smile:

jaspkaur28 commented 4 years ago

This is a known issue & we have it tracked in our backlog . Please expect an update by Q4 CY20.

marrim-myob commented 4 years ago

Hi , I am trying to add automation run book to the alerts action group using arm templates, arm template requiring "serviceUri": "", , where as documention mentions it is optional .When i added runbook using arm template ,it does not map to right runbook . It fails with 404 issue when i browse from the action group .

I also tried to create webhook based on arm template ,but it fails with invalid uri ,where uri would be optional parameter.

SlothCroissant commented 3 years ago

Can confirm this issue is still ongoing. Falling back to REST API instead in the meantime.

jaspkaur28 commented 3 years ago

Runbooks can now be invoked using webhooks through ARM template as documented here : https://docs.microsoft.com/en-us/azure/automation/automation-webhooks#use-a-webhook-from-an-arm-template

stephaniezyen commented 3 years ago

@FranckSix does this fix your problem? @jaspkaur28 if yes, can you close this issue?