Create a new monitor dashboard

%3CLINGO-SUB%20id%3D%22lingo-sub-1120138%22%20slang%3D%22en-US%22%3ECreate%20a%20new%20monitor%20dashboard%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1120138%22%20slang%3D%22en-US%22%3E%3CP%3EHi%3C%2FP%3E%3CP%3EI'm%20new%20to%20Azure%20and%20am%20trying%20to%20setup%20a%20new%20dashboard%20that%20reports%20on%20machines%20that%20are%20online%20and%20offline.%20I%20think%20the%20heartbeat%20monitor%20should%20be%20used%20but%20I%20am%20struggling%20with%20the%20details%20of%20getting%20it%20just%20right%3C%2FP%3E%3CP%3EI%20cant%20seem%20to%20find%20any%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1120138%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20Log%20Analytics%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1121947%22%20slang%3D%22en-US%22%3ERe%3A%20Create%20a%20new%20monitor%20dashboard%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1121947%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F527004%22%20target%3D%22_blank%22%3E%40stuart355%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThere%20is%20a%20built-in%20%3CSTRONG%3EAzure%20Monitor%20Workbook%3C%2FSTRONG%3E%20(many%20Dashboards%20are%20now%20moved%20or%20are%20moving%20to%20Workbooks)%20called%20%22Agent%20Health%22.%26nbsp%3B%20All%20Workbooks%20can%20be%20adapted%20to%20suit%20and%20you%20can%20look%20at%20the%20Log%20Analytics%20query%20as%20well%2C%20for%20ideas%20or%20to%20adjust.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F166486i3E98BBD3F7744B4F%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_1.png%22%20title%3D%22clipboard_image_1.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F166485i0A2E7610A6243617%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_0.png%22%20title%3D%22clipboard_image_0.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAlso%20remember%20HeartBeat%20isn't%20necessarily%20offline%20%2F%20online.%26nbsp%3B%20%26nbsp%3Be.g.%20of%20a%20machine%20goes%20offline%20without%20updating%20the%20agent%20there%20will%20be%20no%20HeartBeat%20until%20it%20comes%20online%20again.%26nbsp%3B%20There%20is%20a%20similar%20Workbook%20for%20VM%20Availability.%3CBR%20%2F%3E%3CBR%20%2F%3EIn%20a%20Workbook%20you%20can%20also%20perform%20an%20Azure%20Resource%20Graph%20(ARG)%20query%2C%20also%20based%20on%20KQL.%26nbsp%3B%20See%20here%20for%20a%20sample%20workbook%3A%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fazure-sentinel%2Fazure-sentinel-and-azure-arc%2Fba-p%2F999379%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fazure-sentinel%2Fazure-sentinel-and-azure-arc%2Fba-p%2F999379%3C%2FA%3ESo%20for%20any%20Azure%20resource%20(such%20as%20a%20VM)%3B%20you%20can%20get%20an%20immediate%20status%20-%20this%20is%20a%20workbook%20that%20shows%20Security%20data%20about%20a%20VM%20as%20a%20sample.%26nbsp%3B%20there%20is%20also%20a%20ARG%20example%20at%20the%20end%20of%20the%20post.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EThis%20would%20also%20show%20Hybrid%20and%20VMs%20and%20their%20status.%3C%2FP%3E%0A%3CP%3E%26nbsp%3BFrom%20the%20ARG%20Explorer%20(in%20the%20Azure%20Portal)%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F166490i1B259779307BEF90%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_3.png%22%20title%3D%22clipboard_image_3.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%20resources%0A%7C%20where%20type%20in(%20%22microsoft.hybridcompute%2Fmachines%22%20%20%2C%20%22microsoft.compute%2Fvirtualmachines%22)%0A%7C%20extend%20statusState%20%3D%20trim('%20'%2C%20tostring(properties.provisioningState))%0A%7C%20project%20name%2C%20type%2C%20statusState%2C%20subscriptionId%0A%2F%2F%7C%20summarize%20count(name)%20by%20type%20%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F166489i85CA14B6641FF4E8%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_2.png%22%20title%3D%22clipboard_image_2.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1127647%22%20slang%3D%22en-US%22%3ERe%3A%20Create%20a%20new%20monitor%20dashboard%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1127647%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F239477%22%20target%3D%22_blank%22%3E%40Clive%20Watson%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%5Dfor%20that.%20I'm%20in%20the%20Workbooks%20and%20see%20this%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F167052i16CEEF5466D01DC8%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_0.png%22%20title%3D%22clipboard_image_0.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EProblem%20is%20I%20have%20no%20idea%20what%20to%20do%20next.%20Could%20you%20give%20some%20pointers%20please%3C%2FP%3E%3CP%3EMany%20thanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1127784%22%20slang%3D%22en-US%22%3ERe%3A%20Create%20a%20new%20monitor%20dashboard%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1127784%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F527004%22%20target%3D%22_blank%22%3E%40stuart355%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOk%2C%20try%20this%20step%20by%20step%20guide.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EStart%20with%20the%20%22Agent%20Health%22%20one%2C%20click%20on%20it%20to%20open%20it%2C%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F167063iBA9B5A53BB729510%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_2.png%22%20title%3D%22clipboard_image_2.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAfter%20it%20loads%20you%20need%20to%20set%20your%20%3CSTRONG%3ESubscription%3C%2FSTRONG%3E%20and%20%3CSTRONG%3EWorkspace%3C%2FSTRONG%3E%20from%20the%20Parameter%20drop%20downs%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F167060iA8C08B557C6A102E%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_0.png%22%20title%3D%22clipboard_image_0.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EThe%20main%20view%20is%20quite%20useful%20(assuming%20you%20have%20Heartbeat%20data).%26nbsp%3B%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F167062i91DE1A22697E06E7%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_1.png%22%20title%3D%22clipboard_image_1.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E------------------------------------------------%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENow%20if%20you%20wanted%20to%20update%20that%20Workbook.%26nbsp%3B%20Click%20on%20EDIT%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F167066iBDE9786A18A095C6%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_4.png%22%20title%3D%22clipboard_image_4.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ELets%20now%20update%20the%20Title.%26nbsp%3B%20There%20are%20EDIT%20buttons%20located%20(normally)%20below%20each%20section%2C%20so%20press%20the%20one%20marked.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F167068i217A1665B9710066%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_5.png%22%20title%3D%22clipboard_image_5.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20can%20now%20add%20some%20changed%20Text%20-%20press%20%22done%20Editing%22%20when%20you%20have%20finished%20with%20the%20Text%20box.%26nbsp%3B%20Its%20the%20%5Bdone%20editing%5D%20that%20relates%20to%20the%20section%20you%20want%20to%20press%2C%20not%20the%20overall%20one%20at%20the%20very%20top%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F167070iEA85A4FE7221D3AD%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_7.png%22%20title%3D%22clipboard_image_7.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F167069iE5DFA998728D2417%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_6.png%22%20title%3D%22clipboard_image_6.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENow%20lets%20use%20that%20Azure%20Resource%20Graph%20query%20I%20supplied.%3C%2FP%3E%0A%3CP%3EScroll%20to%20the%20bottom%2C%20and%20press%20%22Add%20Query%22%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F167071iD3C91DE40C4BFEEE%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_8.png%22%20title%3D%22clipboard_image_8.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESwap%20the%20%22data%20Source%22%20to%20Azure%20Resource%20Graph%22%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F167073i72E785966B734ADE%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_9.png%22%20title%3D%22clipboard_image_9.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThen%20paste%2C%20this%20text%20into%20the%20form%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%20resources%0A%7C%20where%20type%20in(%20%22microsoft.hybridcompute%2Fmachines%22%20%20%2C%20%22microsoft.compute%2Fvirtualmachines%22)%0A%7C%20extend%20statusState%20%3D%20trim('%20'%2C%20tostring(properties.provisioningState))%0A%7C%20project%20name%2C%20type%2C%20statusState%2C%20subscriptionId%0A%2F%2F%7C%20summarize%20count(name)%20by%20type%20%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3ENext%2C%20you%20need%20to%20tell%20the%20Query%20where%20to%20get%20its%20Data.%26nbsp%3B%20The%20Workspace%20name%20is%20on%20the%20drop%20down%20we%20used%20earlier%2C%20so%20set%20the%20%22Subscriptions%22%20option%20to%20%22workspace%22%20-%20essentially%2C%20whatever%20workspace%20name%20is%20selected%20will%20be%20used.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F167075i256BD0CCB8008290%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_10.png%22%20title%3D%22clipboard_image_10.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3EYou%20should%20get%20some%20data%20back%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F167078i807A0E84E3E16FDC%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_12.png%22%20title%3D%22clipboard_image_12.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20make%20it%20more%20readable%2C%20let%20do%20two%20things%3A%3C%2FP%3E%0A%3CP%3E1.%20Un-comment%20the%20last%20line%20of%20code%2C%20so%20it%20looks%20like%20this%20-%20remove%20the%20%22%2F%2F%22%3A%3C%2FP%3E%0A%3CDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3E%0A%3CDIV%3E%0A%3CDIV%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%20resources%0A%7C%20where%20type%20in(%20%22microsoft.hybridcompute%2Fmachines%22%20%20%2C%20%22microsoft.compute%2Fvirtualmachines%22)%0A%7C%20extend%20statusState%20%3D%20trim('%20'%2C%20tostring(properties.provisioningState))%0A%7C%20project%20name%2C%20type%2C%20statusState%2C%20subscriptionId%0A%7C%20summarize%20count(name)%20by%20type%20%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EThen%20press%20%22Run%20Query%22%3C%2FP%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3CP%3E2.%20Lets%20now%20turn%20that%20data%20into%20a%20Pie%20Chart%20-%20click%20%5BVisualizations%5D%20%2C%20and%20then%20%5BPie%20Chart%5D%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F167079i2F34B20514BACD03%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_13.png%22%20title%3D%22clipboard_image_13.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EPress%20%5BDone%20Editing%5D%20again%2C%20and%20you%20should%20have%20something%20like%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F167080iAF16D61FB59CDA46%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_14.png%22%20title%3D%22clipboard_image_14.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFinally%2C%20press%20the%20top%20%22Done%20Editing%22%20-%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Ethen%20%3CSTRONG%3ESAVE%20%3C%2FSTRONG%3E-%20and%20other%20details.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F167083i99ED1596B8EACE71%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_17.png%22%20title%3D%22clipboard_image_17.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20should%20have%20something%20that%20looks%20like%20this.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F167081i44DE10C1523B8FDC%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_15.png%22%20title%3D%22clipboard_image_15.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EDoes%20that%20help%2C%20a%20phase%20two%20would%20be%20to%2C%20maybe%20have%20a%20Drop%20Down%20Parameter%20-%20that%20allows%20you%20to%20select%20a%20computer%20you%20can%20see%20by%20the%20graph%20is%20having%20issues.%26nbsp%3B%20e.g.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F167085iFC56BB14CD872AFC%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_19.png%22%20title%3D%22clipboard_image_19.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1130855%22%20slang%3D%22en-US%22%3ERe%3A%20Create%20a%20new%20monitor%20dashboard%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1130855%22%20slang%3D%22en-US%22%3EThanks%20for%20that%20Clive%3CBR%20%2F%3ELooking%20at%20the%20default%20query%20for%20agent%20health%2C%20this%20is%20beyond%20my%20skills%20for%20writing%20queries.%20I%20was%20hoping%20there%20maybe%20somewhere%20where%20I%20can%20download%20templates%20for%20things%20like%20disk%20space%20and%20memory%2C%20or%20even%20Azure%20SQL%20related%20queries%3CBR%20%2F%3EMany%20thanks%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1130944%22%20slang%3D%22en-US%22%3ERe%3A%20Create%20a%20new%20monitor%20dashboard%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1130944%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F527004%22%20target%3D%22_blank%22%3E%40stuart355%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThere%20are%20quite%20a%20few%20examples%20within%20this%20community.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20can%20also%20see%20other%20examples%2C%20when%20you%20open%20a%20new%20Logs%20Pane%20in%20Log%20Analytics%20-%20just%20press%20run%20to%20see%20what%20they%20do%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F167467iC66E4CC047A942D0%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_0.png%22%20title%3D%22clipboard_image_0.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ETop%20tip%3A%20Use%20the%20free%20demo%20workspace%20for%20the%20above%20-%20as%20its%20fully%20(in%20most%20cases)%20populated%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fms.portal.azure.com%2F%23blade%2FMicrosoft_Azure_Monitoring_Logs%2FDemoLogsBlade%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fms.portal.azure.com%2F%23blade%2FMicrosoft_Azure_Monitoring_Logs%2FDemoLogsBlade%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThere%20are%20100s%20of%20samples%20in%20the%20Pluralsight%20course%20material%2C%20open%20Query%20Explorer%20(also%20from%20the%20above%20demo%20workspace)%26nbsp%3B%20%3CEM%3Esource%3C%2FEM%3E%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fwww.pluralsight.com%2Fcourses%2Fkusto-query-language-kql-from-scratch%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.pluralsight.com%2Fcourses%2Fkusto-query-language-kql-from-scratch%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F167469i14D7BD51FBB9EBA2%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_1.png%22%20title%3D%22clipboard_image_1.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAlso%20note%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F167471i57942AFC2EC2A7EF%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_2.png%22%20title%3D%22clipboard_image_2.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1131328%22%20slang%3D%22en-US%22%3ERe%3A%20Create%20a%20new%20monitor%20dashboard%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1131328%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F239477%22%20target%3D%22_blank%22%3E%40Clive%20Watson%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EI'd%20like%20to%20point%20out%20that%20while%20this%20is%20a%20great%20leap%20forward%20(workbooks%2C%20ARG%2C%20ARC)%2C%20Workbooks%20and%20ARG%20are%20severely%20limited%20for%20very%20large%20enterprises.%20For%20example%2C%20in%20our%20org%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CUL%3E%3CLI%3EThe%20Agent%20Health%20workbook%20times%20out--we%20apparently%20have%20far%20too%20many%20machines%3A%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F167548iB2DDD97383B06581%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_0.png%22%20title%3D%22clipboard_image_0.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3EARG%20is%20extremely%20limited%20on%20what%20it%20can%20return%20in%20large%20environments%20(status%20from%20running%20your%20query%20above)%3A%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F167552iB91FCA2ADC0C16CE%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_1.png%22%20title%3D%22clipboard_image_1.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3EThese%20limiting%20problems%20will%20only%20be%26nbsp%3B%3CSPAN%3Eexacerbated%20when%20we%20deploy%20ARC%20for%20servers.%20Here's%20to%20hoping%20that%20Microsoft%20doesn't%20forget%20the%20large%20enterprises!%20%3A)%3C%2Fimg%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1131430%22%20slang%3D%22en-US%22%3ERe%3A%20Create%20a%20new%20monitor%20dashboard%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1131430%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F151992%22%20target%3D%22_blank%22%3E%40Scott%20Allison%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E1.%20Thanks%20for%20the%20feedback%2C%20let%20me%20take%20a%20look%20at%20that%20workbook%20(its%20not%20mine!)%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E2.%20Regarding%20ARG%2C%20my%20original%20query%20was%20very%20basic%20and%20could%20well%20return%20too%20many%20rows.%26nbsp%3B%20This%20(sample)%20may%20improve%20things%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3Eresources%0A%7C%20where%20type%20in(%20%22microsoft.hybridcompute%2Fmachines%22%20%20%2C%20%22microsoft.compute%2Fvirtualmachines%22)%0A%7C%20extend%20statusState%20%3D%20trim('%20'%2C%20tostring(properties.provisioningState))%0A%7C%20project%20name%2C%20type%2C%20statusState%2C%20subscriptionId%0A%7C%20summarize%20count(name)%20by%20type%20%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3Eor%20better%20still%20a%20last%20row%20of%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%7C%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3Esummarize%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3Ecount%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E(%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3Ename%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E)%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3Eby%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%26nbsp%3Btype%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%2C%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%26nbsp%3BstatusState%3C%2FSPAN%3E%3C%2FP%3E%0A%3CDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3EI%20will%20keep%26nbsp%3Blooking%26nbsp%3Bat%20this....%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3EBest%20wishes%20Clive%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3C%2FDIV%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

Hi

I'm new to Azure and am trying to setup a new dashboard that reports on machines that are online and offline. I think the heartbeat monitor should be used but I am struggling with the details of getting it just right

I cant seem to find any  

7 Replies
Highlighted

@stuart355 

 

There is a built-in Azure Monitor Workbook (many Dashboards are now moved or are moving to Workbooks) called "Agent Health".  All Workbooks can be adapted to suit and you can look at the Log Analytics query as well, for ideas or to adjust. 

 

clipboard_image_1.png

 

clipboard_image_0.png

 

Also remember HeartBeat isn't necessarily offline / online.   e.g. of a machine goes offline without updating the agent there will be no HeartBeat until it comes online again.  There is a similar Workbook for VM Availability.

In a Workbook you can also perform an Azure Resource Graph (ARG) query, also based on KQL.  See here for a sample workbook: https://techcommunity.microsoft.com/t5/azure-sentinel/azure-sentinel-and-azure-arc/ba-p/999379So for any Azure resource (such as a VM); you can get an immediate status - this is a workbook that shows Security data about a VM as a sample.  there is also a ARG example at the end of the post. 

This would also show Hybrid and VMs and their status.

 From the ARG Explorer (in the Azure Portal) 

clipboard_image_3.png

 resources
| where type in( "microsoft.hybridcompute/machines"  , "microsoft.compute/virtualmachines")
| extend statusState = trim(' ', tostring(properties.provisioningState))
| project name, type, statusState, subscriptionId
//| summarize count(name) by type 

 

clipboard_image_2.png

 

 

 

Highlighted

@Clive Watson 

Thanks]for that. I'm in the Workbooks and see this

clipboard_image_0.png

 

Problem is I have no idea what to do next. Could you give some pointers please

Many thanks

Highlighted

@stuart355 

 

Ok, try this step by step guide.

 

Start with the "Agent Health" one, click on it to open it,

clipboard_image_2.png

 

After it loads you need to set your Subscription and Workspace from the Parameter drop downs

 

clipboard_image_0.png

The main view is quite useful (assuming you have Heartbeat data).  

 

clipboard_image_1.png

------------------------------------------------

 

Now if you wanted to update that Workbook.  Click on EDIT

 

clipboard_image_4.png

 

Lets now update the Title.  There are EDIT buttons located (normally) below each section, so press the one marked.

 

clipboard_image_5.png

 

You can now add some changed Text - press "done Editing" when you have finished with the Text box.  Its the [done editing] that relates to the section you want to press, not the overall one at the very top

clipboard_image_7.png

 

clipboard_image_6.png

 

Now lets use that Azure Resource Graph query I supplied.

Scroll to the bottom, and press "Add Query"

clipboard_image_8.png

 

Swap the "data Source" to Azure Resource Graph"

clipboard_image_9.png

 

Then paste, this text into the form

 resources
| where type in( "microsoft.hybridcompute/machines"  , "microsoft.compute/virtualmachines")
| extend statusState = trim(' ', tostring(properties.provisioningState))
| project name, type, statusState, subscriptionId
//| summarize count(name) by type 

Next, you need to tell the Query where to get its Data.  The Workspace name is on the drop down we used earlier, so set the "Subscriptions" option to "workspace" - essentially, whatever workspace name is selected will be used.

clipboard_image_10.png


You should get some data back:

clipboard_image_12.png

 

To make it more readable, let do two things:

1. Un-comment the last line of code, so it looks like this - remove the "//":

 
 resources
| where type in( "microsoft.hybridcompute/machines"  , "microsoft.compute/virtualmachines")
| extend statusState = trim(' ', tostring(properties.provisioningState))
| project name, type, statusState, subscriptionId
| summarize count(name) by type 

Then press "Run Query"

2. Lets now turn that data into a Pie Chart - click [Visualizations] , and then [Pie Chart]

clipboard_image_13.png

Press [Done Editing] again, and you should have something like:

 

 

clipboard_image_14.png

 

Finally, press the top "Done Editing" -

 

then SAVE - and other details.

clipboard_image_17.png

 

You should have something that looks like this.

 

clipboard_image_15.png

 

Does that help, a phase two would be to, maybe have a Drop Down Parameter - that allows you to select a computer you can see by the graph is having issues.  e.g.

 

clipboard_image_19.png

Highlighted
Thanks for that Clive
Looking at the default query for agent health, this is beyond my skills for writing queries. I was hoping there maybe somewhere where I can download templates for things like disk space and memory, or even Azure SQL related queries
Many thanks
Highlighted

@stuart355 

 

There are quite a few examples within this community.

 

You can also see other examples, when you open a new Logs Pane in Log Analytics - just press run to see what they do:

clipboard_image_0.png

Top tip: Use the free demo workspace for the above - as its fully (in most cases) populated https://ms.portal.azure.com/#blade/Microsoft_Azure_Monitoring_Logs/DemoLogsBlade 

 

There are 100s of samples in the Pluralsight course material, open Query Explorer (also from the above demo workspace)  sourcehttps://www.pluralsight.com/courses/kusto-query-language-kql-from-scratch

clipboard_image_1.png

 

Also note:

 

clipboard_image_2.png

Highlighted

@Clive Watson 

I'd like to point out that while this is a great leap forward (workbooks, ARG, ARC), Workbooks and ARG are severely limited for very large enterprises. For example, in our org:

 

  • The Agent Health workbook times out--we apparently have far too many machines:clipboard_image_0.png
  • ARG is extremely limited on what it can return in large environments (status from running your query above):
    clipboard_image_1.png

These limiting problems will only be exacerbated when we deploy ARC for servers. Here's to hoping that Microsoft doesn't forget the large enterprises! :) 

Highlighted

@Scott Allison 

 

1. Thanks for the feedback, let me take a look at that workbook (its not mine!)

 

2. Regarding ARG, my original query was very basic and could well return too many rows.  This (sample) may improve things

resources
| where type in( "microsoft.hybridcompute/machines"  , "microsoft.compute/virtualmachines")
| extend statusState = trim(' ', tostring(properties.provisioningState))
| project name, type, statusState, subscriptionId
| summarize count(name) by type 

or better still a last row of 

 

summarize count(name) by type, statusState

 
I will keep looking at this....
 
Best wishes Clive