Azure Cloud Discovery - Exception message - Unknown property 'account_id' on class 'class java.util.

Kelly Logan
Kilo Sage

We are using Azure Cloud Discovery on a Zurich system. We have successfully set up Azure authentication using a service principal and have created a management group with the id "mg-firstonsite-root". We create a cloud service account using this management group and tried to Refresh Sub Accounts and the job will run until cancelled. 

 

We set MID server configuration parameter "mid.log.level" to "debug" and tried again. In the logs, we can see that all 18 subcriptions in the management group are pulled: 

2026-10-19 12:24:59-0600 DEBUG (Worker-Interactive:HorizontalDiscoveryProbe-6342221d394cd310ee8efc53b5536949) [GeneratedMethodAccessor244:-1] (123)AbstractApiCall script include. -  performNextRequests: result after first execute={"totalRecords":18,"count":18,"data":[{"id":"/subscriptions/1c7af711-9172-4a71-80c0-10a82b528f82","name":"ca-bi-dev","type":"microsoft.resources/subscriptions","tenantId":"9f175ec5-875a-4cc2-b995-e65d79bb421e","kind":"","location":"","resourceGroup":"","subscriptionId":"1c7af711-9172-4a71-80c0-10a82b528f82","managedBy":"","sku":null,"plan":null,"properties":{"managementGroupAncestorsChain":[{"displayName":"CA BI Dev","name":"mg-firstonsite-ca-bi-dev"},{"displayName":"CA BI","name":"mg-firstonsite-ca-bi"},{"displayName":"CA Landing Zones","name":"mg-firstonsite-ca-landingzones"}, . . .

but then there is this at the end of the list:

2026-10-19 12:24:59-0600 DEBUG (Worker-Interactive:HorizontalDiscoveryProbe-6342221d394cd310ee8efc53b5536949) [ExecutionContextImpl:739] (123)ExecutionContextImpl - setAttribute(subscriptions_response,........)
The max object size reached the maximum limit of [10000]. To adjust this use the mid property mid.sm.discolog.max_object_size.

Note, this is after increasing the max to 10k from 5k.

More concerning though is this set of exceptions which seems to point to a problem with the probes themselves:

2026-10-19 12:24:59-0600 DEBUG (Worker-Interactive:HorizontalDiscoveryProbe-6342221d394cd310ee8efc53b5536949) [DefaultPatternExecutor:131] (123)DefaultPatternExecutor - Starting step: 8 [name='Prepare Primary Account Info', functor=TransformTableClosure:TRANSFORM_TABLE:125d5f8a-20ad-4990-af1e-1d7391dcdb77]
2026-10-19 12:24:59-0600 DEBUG (Worker-Interactive:HorizontalDiscoveryProbe-6342221d394cd310ee8efc53b5536949) [XPathResolver:43] (123)XPathResolver - Exception occurred when resolving attributes(service_account).account_id expression in execution context. Exception message - Unknown property 'account_id' on class 'class java.util.ArrayList'

These exceptions continue for several pages, one for each attribute it tries to use. 
Has anyone seen this before? 

 

 

2 REPLIES 2

Kelly Logan
Kilo Sage

Found an AI suggestion from a close but not quite match to the issue: https://support.servicenow.com/kb?id=kb_article_view&sys_kb_id=c207faca47ed47583542f24c736d43e8 

No joy on my fix, but adding here in case someone found this and has that issue instead.

 

Suggestion by ServiceNow AI:
The error "Unknown property 'account_id' on class 'class java.util.'" in Azure Cloud Discovery may be caused by an incorrect parameter value in the discovery_ptrn_lnch_param_def_ext table.
To resolve this, on an out-of-box (OOB) instance, search the discovery_ptrn_lnch_param_def_ext table for records where the parameter is set to service_account. You should find one such record.
Back up this record to XML, then import it into your instance.
Delete any old record where the parameter may have been modified (for example, changed to cmdb_ci_cloud_service_account).
After these steps, the Azure - Virtual Machine (LP) pattern should correctly populate the Subscription and complete execution

 

Examined this table:
There are 73 entries where the 'Discovery Pattern' starts with "Azure" and 'CI Class' is cmdb_ci_cloud_service_account, but the Parameter is service_account, including
"Azure - Sub Account (LP)" (updated 2026-06-26 06:12:54 AM admin) and
"Azure Datacenter discovery" (updated 2026-06-26 06:12:54 AM admin).
25 entries updated the same date/time, though created on different dates.
https://firstonsitedev.service-now.com/now/nav/ui/classic/params/target/discovery_ptrn_lnch_param_de...
exported these 25 entries.
Table isn't audited, but on creation the Parameter was still service_account, so that wasn't changed.
CI attributes weren't changed either.
account_id,datacenter_discovery_status,datacenter_type,datacenter_url,discovery_credentials,is_master_account,name,object_id,source_native_key

Kelly Logan
Kilo Sage

It is odd that we are getting over 10K object responses for this customer though. They are not a large company, with devices in the tens, not the thousands. Could there be some kind of loop?