Azure Functions pattern is not working in cloud discovery, sample error in pattern:

"Identification Engine: Discovery status is FAILURE, CI Type cmdb_ci_cloud_function cannot be created since there are no attributes defined. Debug pattern to understand why no attributes have been assigned."

Steps to Reproduce

Download store app pattern Azure Functions

Run cloud resource discovery which executes Azure Functions pattern


As the current implementation was only looking for type = functionapp, but in one of the customer instance we found that type can contain multiple values so changes the condition from 'equals' to 'contains'

Now if the value [String] of type is having "functionapp" in it, it will be treated as the valid value.

Step which got updated:
8. Filter non function apps
Condition to filter the table should be  [$func_info_table[].type  contains "functionapp"]


Also, we have placed an additional check of processing only "functionapp" before creating the CI. 
If we don't have any records of type "functionapp" then we're skipping the step of creating the CI.

Create an additional step as an additional check before creating the CI [Create Main CI step]:
Step Name: Validate if we got functionapp to create CI
Condition: $func_info_table IsNotEmpty
Termination Type: Expected
Information Message: "No web app of type 'functionapp' found"

Related Problem: PRB1406241

Seen In

SR - ITOM - CMDB CI Class Models - 201909
SR - ITOM - Discovery and Service Mapping - 201908

Intended Fix Version

SR - ITOM - Discovery and Service Mapping - 202007

Safe Harbor Statement

This "Intended Fix Version" information is meant to outline ServiceNow's general product direction and should not be relied upon in making a purchasing decision. The information provided here is for information purposes only and may not be incorporated into any contract. It is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. The development, release, and timing of any features or functionality described for our products remains at ServiceNow's sole discretion.

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2020-09-08 22:08:46