Azure Monitor workbook - In which format should I pass table to visualize nodes relations as Graph

Nikifor Ostanin 0 Reputation points
2025-03-03T13:35:02.2166667+00:00

I'm trying to do simple visualization in Azure Monitor of my entities.

User's image

When I created relations manually:

datatable(nodeId: string, SourceId: string, targetId: string)
[
"node1", "", "node1",
"node2", "node1", "node2",
"node3", "node2", "node3", 
"node3", "node4", "node3",
"node4", "", "node4",
"node5", "node1", "node5",
"node3", "node5", "node3"
]

Then I've got undesired result, containing proper nodes with relations and useless

User's image

Ahat kind of relation should be passed to be visualized as Graph (nodes as unique entities and edges as source-target relations)

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,574 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vinod Pittala 1,600 Reputation points Microsoft External Staff
    2025-04-15T04:53:12.68+00:00

    Hello Nikifor Ostanin,

    I understand that when you are trying to visualize the relations in the graph, you are encountering unwanted nodes in the graphical visualization.

    To remove these unwanted nodes, kindly use the following relation order:

    datatable(nodeId: string, SourceId: string, targetId: string)
    [
    "node1", "", "node1",
    "node2","node1","node2",
    "node3","node2","node3",
    "node4", "", "node4",
    "","node4","node3",
    "node5", "node1", "node5",
    "","node5","node3"
    ]
    
    

    I have reproduced the issue in my environment and got the same visualization order as you expected.

    Please find the below evidence for your reference.

    User's image

    Output:

    User's image


    If the provided solution works for your query, please do not forget to click Upvote Button. this can be beneficial to other community members.it would be greatly appreciated and helpful to others

    Thanks


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.