How to Consume Azure REST API in ServiceNow OutBound REST Message

Narasinhak
Tera Expert

I need to call following azure API from ServiceNow REST Message.

https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/start?api-version=2021-03-01

What are the steps to achieve this?

 

 

1 ACCEPTED SOLUTION

Ben Carlsten -
Giga Guru
Have you tried using the links in the REST API reference to try the call? It will give you the command to use in the Try it space, just need to translate it to a REST call from servicenow from there. https://docs.microsoft.com/https://docs.microsoft.com/en-us/rest/api/compute/virtual-machines/list-all-us/rest/api/compute/virtual-machines/start

View solution in original post

6 REPLIES 6

Ben Carlsten -
Giga Guru
Have you tried using the links in the REST API reference to try the call? It will give you the command to use in the Try it space, just need to translate it to a REST call from servicenow from there. https://docs.microsoft.com/https://docs.microsoft.com/en-us/rest/api/compute/virtual-machines/list-all-us/rest/api/compute/virtual-machines/start

Dhanunjay
Kilo Contributor
Hi Kamath, I have similar requirement, but with token I need to connect Azure. Let me know if you have achieved setting up connection with Azure, would require your help. Thanks, Jay