question

GoelAkanksha-9319 avatar image
0 Votes"
GoelAkanksha-9319 asked GoelAkanksha-9319 commented

How to connect from Azure Appinsight ALert to service Now using Basic Auth (webhook)

We are trying to connect from Azure Alert to Service Now.
We want to create Incident once alert is generated through AppInsight Query.
We are utilizing webhook for that purpose.

We have Rest Api link which can be triggered along with Basic Authentication. We have used following documentation to connect using Basic Auth.

https://docs.servicenow.com/bundle/paris-it-operations-management/page/product/event-management/task/azure-events-webhook.html

https://<username>:<password>@<instance-name>.service-now.com/api/sn_em_connector/em/inbound_event?source=azuremonitor.
But, this is not working.

azure-monitor
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@GoelAkanksha-9319 Thanks for reaching out. To advise you better, can you please provide information to below questions

  • Are you using metric alert or log alert ?

  • Have you enabled common alert schema ?

Also, here are few references that might help you in providing workaround or troubleshooting your issue.

0 Votes 0 ·

Hi @SwathiDhanwada-MSFT ,

  1. We are using log alerts. Once the threshold is exceeded, it should generate an incident in Service Now Portal.

  2. Yes, I have enabled common schema. And, my JSON payload looks like:
    {
    "source": "DatahubAzure",
    "description": "DataHub Azure Testing",
    "type": "error loading page",
    "node": "120.12.10.12",
    "additional_info": "DOperate",
    "cmdb_ci": "DOperate",
    "severity": "2",
    "resource": "testing is in progress"
    }


  3. I am using webhook with Basic Auth: https://<username>:<password>@<instance-name>.service-now.com/api/sn_em_connector/em/inbound_event?source=azuremonitor.



Is there something missing

We don't want to use ITSM or logic Apps. Please can you suggest, how to use webhook to connect to service-now with Basic Auth?

0 Votes 0 ·

1 Answer

AdityanJawahar-7416 avatar image
0 Votes"
AdityanJawahar-7416 answered GoelAkanksha-9319 commented

Even i;m trying to integrate Azure alerts with service now to create incidents.webhook is not working
how to find the payload sent to Service now.can you please advise.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.