Using Azure monitor workbook templates as source for groups from template

Sriram J Iyer 0 Reputation points
2024-12-09T15:21:44.3866667+00:00

Is use of workbook templates (not workbooks) as source for groups supported? It works well when I use workbook resource IDs, but I get this error when I use workbook template IDs. Is there a different format for templates? User's image

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,526 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Pavan Minukuri 1,235 Reputation points Microsoft External Staff
    2024-12-12T19:33:11.76+00:00

    Hi Sriram J Iyer
    Thanks for reply back
    To clarify the use of sourceContent in your JSON schema, first understand the schema's structure and purpose, especially for workbooks and workbook templates.
    Understanding JSON schema structure:
    1.JSON Schema Basics: A JSON schema defines the structure, required fields, and data types of a JSON object using keywords like $schema, type, properties, and required.

    2.Using sourceContent : If sourceContent is not defined in your schema, it won't be recognized during validation. Define it explicitly in the properties section.

    {
      "$schema": "http://json-schema.org/draft-07/schema#",
      "type": "object",
      "properties": {
        "sourceContent": {
          "type": "string",
          "description": "The content source for the workbook"
        }
      },
      "required": ["sourceContent"]
    }
    
    

    3.Common Issues: Replacing loadFromTemplateId with sourceContent without defining sourceContent can cause errors or unexpected behavior. Ensure all properties are properly defined.

    4.Debugging Steps:

    Check if loadFromTemplateId is referenced elsewhere and ensure its functionality matches your intent for sourceContent.

    Validate the updated schema using a validator tool to avoid syntax errors before applying changes.

    If you required anything let us know.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.