Credential - Azure Subscription
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2023 10:53 AM
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)
Anyboy knows to solve this?
The steps that I followed:
Create Azure cloud credentials (servicenow.com)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2023 12:14 AM
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.