Azure Datacenter in Cloud Discovery Schedule is empty

motsuki17
Tera Guru

When I try to get Datacenters after validating my Service Account and Principle, the error message shows "Exploring Partial CI Pattern Pattern name: Azure Datacenter discovery" but when I checked it in the system logs, there are no errors in the steps, there is data of the datacenters, but they are not created in cmdb_ci_azure_datacenter nor in the Cloud Discovery Datacenters list as shown in the screenshots attached.

 

When I also try to get the subscription in my azure_service_principal by clicking the Related Link "Discover Subscription", its Discovery Status > Discovery Log returns these information:
Azure Datacenter.ListSubscriptions.Azure Datacenter.Compute Interface.ListSubscriptions -- エラー
Discovery Subscription 処理でエラーが発生しました

 

and this error:
Discovery Subscription エラー : Failed to execute API - Request not sent to uri= https://login.windows.net/MY_TENANT_ID/oauth2/token : org.apache.commons.httpclient.HttpException: The host did not accept the connection within timeout of 10000 ms login.windows.net (script_include:AzureAPIInvoker; line 38)

 

Also, the MID Server is installed in the Virtual Machine which is in the Azure Cloud.

 

Anyone know how to fix?

1 ACCEPTED SOLUTION

motsuki17
Tera Guru

This is fixed. We had a change one of the fields in cmdb_ci into mandatory which caused non of the datacenters to be inserted even though they were discovered during the pattern execution.

 

So just don't set mandatory fields to true for logical datacenter fields. But ACL's and UI Policies will still work.

View solution in original post

2 REPLIES 2

motsuki17
Tera Guru

This is fixed. We had a change one of the fields in cmdb_ci into mandatory which caused non of the datacenters to be inserted even though they were discovered during the pattern execution.

 

So just don't set mandatory fields to true for logical datacenter fields. But ACL's and UI Policies will still work.