- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2023 10:41 AM
Dear all,
I'm trying to configure Azure Cloud Service Account to prepare for discovery but somehow I'm receiveing "TypeError: Cannot find function discoverDatacenters in object [object Object]." The service principal credential does work because I was able to pull over 200 subscriptions, I tried looking in logs, but couldn't find anything relevant. Thank you in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2023 11:02 AM
UPDATE:
I was able to fix it by adding "sn_cmp.cloud_admin" role to the admin account.
https://docs.servicenow.com/bundle/tokyo-it-operations-management/page/product/cloud-management-v2-s...
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1227869
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2023 10:53 AM
Hello,
We you able to resolve this? We are getting the same error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2023 11:12 AM
Hi, actually I wasn't able to fix it. Probably the whole discovery feature is useless without a MID server. I don't have one just yet. Until now, I didn't even have the discovery plugin, due to investigation on pricing. Now it's active, but I am still getting the same error message. I added the role described by you to my admin account, but it didn't resolve the problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2023 11:32 AM
@gconway if you just added the role, please make sure you log out and in ServiceNow. I was able to proceed to the next step.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2023 12:27 PM
@GB14 Hi, I did that. I am now getting a different error. It's "Failed with status code and message: 404: {"error":{"code":"SubscriptionNotFound". This is probably because I have over 200 subscriptions, and I don't know which one to pick.. Thank you for your help anyways!