Cloud Discovery: Azure Subscriptions Not Returning

Marskh11
Tera Guru

Community, 

I am setting up Cloud Discovery and our first trial is for Azure discovery. The Azure service principal was created and given read access to the subscription. The service principle credential is stored in the instance. The mid server is placed properly but when I run discover subscriptions - nothing comes back. One subscription should come back. Has anyone seen this before? 

16 REPLIES 16

Ashutosh Munot1
Kilo Patron
Kilo Patron

Hi,

Can you tell us how are you doing this?

 

I faced this issue because the role was not properly associated with the subscription you use. Check that once. I believe you are saving credentials with Type as Azure and then clicked on discover subscription right?

Also check the sn_cmp_order.LIST Table.

Thanks,
Ashutosh

Correct. Credential is Azure Service Principle. Saving that then hitting "discover subscriptions". In the sn_cmp_order.LIST it seems like its running but pulling back null for everything. 

Marskh11
Tera Guru

turns out itom pattern plugin hadn't activatd whihc resolved the pattern issue. However, I am still unable to find subscriptions. In the logs I receive the following error: Failed to parse the output of new CMPCIRelationshipUtil().getLdcAndServiceAccount(''), exception: : com.fasterxml.jackson.databind.exc.MismatchedInputException: No content to map due to end-of-input

Seems like some issue with your service account - are they the right credentials? Please check if you have sufficient roles. You can also check below:

1. Does your account have "API Management Service Reader role" in Azure console?

2. If you're able to make "https://management.azure.com/subscriptions/<subscription id>/resources" call with the account via a REST client.

3. Make sure the identification rules are proper in CI Class Manager > Hierarchy for the CI since it looks like you're using custom operations. The rule should have object_id as identifier.

 

Badarinarayan Burli,

Staff Software Engineer, Cloud Management.

 

General note: Please mark the answers as 'Helpful' or 'Correct' as appropriate. This will help in building a repository of solved problems that would be invaluable for everyone in the community.

 

So figured out bit mistake on my end - discovering azure government and had to update some mid properties. still having some errors returning subscriptions due to token error but getting there!