TypeError: Cannot find function discoverDatacenters in object [object Object].

gconway
Tera Contributor

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.

servicenow_azure_service_account.png

1 ACCEPTED SOLUTION
6 REPLIES 6

GB14
Kilo Patron

Hello,

 

We you able to resolve this? We are getting the same error. 

gconway
Tera Contributor

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. 

@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. 

 

gconway
Tera Contributor

@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!