Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to exclude azure cloud service account in service graph connector

MDAQUIBK
Tera Contributor

Hello All,

 

We have azure discovery using graph connector . We have requirement to exclude around 10 cloud service account from azure discovery as it is no longer required . Please help . We have integration hub ETL but not sure where to start .

Please help !

 

 

2 REPLIES 2

Mani A
Tera Guru

add conditions in datasource /ETL on before script like

if source account ID not contains 10clound service accounts -> continue the process

 

example:

var arr=['acc1','acc2','acc3',..,'acc10']
if (arr.indexOf(source.account_id) != -1) {
continue;
}

MDAQUIBK
Tera Contributor

@Mani A 

I tried to exclude using the IntegrationHub but no luck . The On before will not work as there are multiple references to the cloud service account in different other data sources and mapping . The cloud account are getting discovered even after excluding .