Credential - Azure Subscription

rogerio_felix
Tera Contributor

I am trying to discovery CIs on the Azure Cloud, I follow these steps:

 

1 - On Azure, I created a application with the role Reader.

 

2 - On ServiceNow, I created a new credential as "Azure Service Principal".

 

3 - When click on "Discovery Subscritions"  is created a new discovery searching for subscriptions, none is found.... when I look for de discovery logs I got the following:

 

Discovery Subscription Error : Failed to execute API - Request not sent to uri= https://login.windows.net/8c6184c7-8dbe-49d3-bf18-d59b3e87fd30/oauth2/token : org.apache.commons.httpclient.HttpException: DEF length 99 object truncated by 31 (script_include:AzureAPIInvoker; line 38)

 

rogerio_felix_0-1690307302819.png

 

Anyboy knows to solve this?

 

The steps that I followed:

Create Azure cloud credentials (servicenow.com)

 

 

 

 

 

 

1 REPLY 1

SiD2
ServiceNow Employee
ServiceNow Employee

Hi @rogerio_felix 

 

I guess you are still using legacy CAPI based discovery and you should now migrate to pattern based discovery.

 

Install the "Discovery and Service Mapping Patterns" store plugin and then do "Migrate CPG to Pattern" from the navigator.

 

Then create a service account in the snow table and link credentials to it and use the "Cloud Discovery" button from the Discovery Schedules page to start discovering.

 

Please mark Helpful / Accept Solution so that it helps others with similar questions.