Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
Azure function pattern getting empty cmdb_ci_cloud_function - Known Error
  • >
  • Knowledge Base
  • >
  • Known Error (Knowledge Base)
  • >
  • Azure function pattern getting empty cmdb_ci_cloud_function
KB0829781

Azure function pattern getting empty cmdb_ci_cloud_function


1218 Views Last updated : Apr 8, 2024 public Copy Permalink
KB Summary by Now Assist

Description

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

Workaround

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
Operation:Match
Condition: $func_info_table IsNotEmpty
Termination Type: Expected
Information Message: "No web app of type 'functionapp' found"



Related Problem: PRB1406241

The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.