SOLVED

Azure Backup Report

%3CLINGO-SUB%20id%3D%22lingo-sub-1511843%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20Backup%20Report%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1511843%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F723478%22%20target%3D%22_blank%22%3E%40Kalaimani%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAzure%20Backup%20example%20queries%20are%20here%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fbackup%2Fbackup-azure-monitoring-use-azuremonitor%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fbackup%2Fbackup-azure-monitoring-use-azuremonitor%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EEnable%20the%20logging%20here%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fbackup%2Fbackup-azure-diagnostic-events%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fbackup%2Fbackup-azure-diagnostic-events%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThen%20use%20the%20first%20links%20to%20create%20the%20reports%20you%20need%3CBR%20%2F%3EThanks%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1514439%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20Backup%20Report%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1514439%22%20slang%3D%22en-US%22%3Esorry%20it%20not%20working...%20but%20below%20one%20its%20working%3CBR%20%2F%3E%3CBR%20%2F%3Elet%20Events%20%3D%20AzureDiagnostics%20%7C%20where%20Category%20%3D%3D%20%22AzureBackupReport%22%3B%20Events%3CBR%20%2F%3E%7C%20where%20OperationName%20%3D%3D%20%22Job%22%3CBR%20%2F%3E%7C%20where%20TimeGenerated%20%26gt%3B%20ago(30d)%3CBR%20%2F%3E%7C%20where%20*%20has%20%22VT-PRD-CA02%22%3CBR%20%2F%3E%7C%20project%20BackupItemUniqueId_s%20%2C%20JobStatus_s%20%2C%20JobStartDateTime_s%3CBR%20%2F%3E%7C%20join%20kind%3Dinner%20(Events%20%7C%20where%20OperationName%20%3D%3D%20%22BackupItem%22%3CBR%20%2F%3E%7C%20distinct%20BackupItemUniqueId_s%2C%20BackupItemFriendlyName_s%3CBR%20%2F%3E%7C%20project%20BackupItemUniqueId_s%2C%20BackupItemFriendlyName_s%20)%20on%20BackupItemUniqueId_s%3CBR%20%2F%3E%7C%20project%20BackupItemFriendlyName_s%20%2C%20JobStatus_s%2C%20JobStartDateTime_s%3CBR%20%2F%3E%3CBR%20%2F%3Ea)%20Need%20it%20for%20multiple%20servers%3CBR%20%2F%3Ewhere%20*%20has%20%22VT-PRD-CA02%22%20provides%20me%20the%20result%20for%20one.%3CBR%20%2F%3EI%20tried%20various%20combinations%20eg%20%7C%20where%20BackupItemFriendlyName_s%20in%20(%22Client1%22%2C%22Client2%22)%20etc%20but%20that%20is%20not%20giving%20me%20any%20result.%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3Eb)%20need%20failed%20and%20completed%20status%20for%20single%20report%20for%20one%20server%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1514771%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20Backup%20Report%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1514771%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F723478%22%20target%3D%22_blank%22%3E%40Kalaimani%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20think%20you%20need%20to%20add%20the%20filter%20later%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-cpp%22%3E%3CCODE%3Elet%20Events%20%3D%20AzureDiagnostics%20%7C%20where%20Category%20%3D%3D%20%22AzureBackupReport%22%3B%20%0AEvents%0A%7C%20where%20OperationName%20%3D%3D%20%22Job%22%0A%7C%20where%20TimeGenerated%20%26gt%3B%20ago(30d)%0A%7C%20project%20BackupItemUniqueId_s%20%2C%20JobStatus_s%20%2C%20JobStartDateTime_s%0A%7C%20join%20kind%3Dinner%20%0A(%0A%20%20%20%20Events%0A%20%20%20%20%7C%20where%20OperationName%20%3D%3D%20%22BackupItem%22%0A%20%20%20%20%7C%20distinct%20BackupItemUniqueId_s%2C%20BackupItemFriendlyName_s%0A%20%20%20%20%7C%20project%20BackupItemUniqueId_s%2C%20BackupItemFriendlyName_s%20%0A)%20on%20BackupItemUniqueId_s%0A%7C%20where%20BackupItemFriendlyName_s%20in%20(%22CH-DCVM10%22%2C%22FAKEVM0001%22%2C%22FAKE1111%22)%0A%7C%20summarize%20count()%20by%20%20BackupItemFriendlyName_s%2C%20JobStatus_s%2C%20JobStartDateTime_s%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%3CBR%20%2F%3E%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fms.portal.azure.com%23%4072f988bf-86f1-41af-91ab-2d7cd011db47%2Fblade%2FMicrosoft_Azure_Monitoring_Logs%2FDemoLogsBlade%2FresourceId%2F%252FDemo%2Fsource%2FLogsBlade.AnalyticsShareLinkToQuery%2Fq%2FH4sIAAAAAAAAA31RW0vDMBR%25252BH%25252FQ%25252FHPLUQoUWH6XCbDedMgV1ey1Zc6jZ1qTmonT44007ayesnqec5HyXfGePBmYfKIyGBKYHqzDjtBRSG15o%25252BILPN1QIKTVYStVAkgDppm5osbP1M9ZSGXIF3uRI4k16yFONihouxSOtsMPdyw0Z3l95hbco2iFkcA20lP5lxIJ2olZyi4WBo8jCYLUS%25252FN3iguUaQnBEL4Yaq086ZTJH1JLmnYmt5AJ2XLCECyfiDPreBFz1PtvzuNdBmfSjjLtMxIir8OR2rjgKtm9asvxX6b8%25252FjaOd7wCkOIsashxFuwx8kt5dZOl6GUckJPPpw2y9jKIo%25252FmliV6QLXduqooofEApphfED2DQwSv1nC%25252BeX8A2CGVRtWwIAAA%25253D%25253D%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EGo%20to%20Log%20Analytics%20and%20run%20query%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1517060%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20Backup%20Report%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1517060%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%3BThanks%20Dear%2C%26nbsp%3BI%20really%20appreciate%20your%20response.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eis%20there%20any%20possibility%20to%20send%20the%20failed%20backup%20report%20to%20email.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1518256%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20Backup%20Report%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1518256%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F723478%22%20target%3D%22_blank%22%3E%40Kalaimani%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFor%20this%20I'd%20typically%20suggest%20a%20Playbook%20to%20automate%20the%20report.%26nbsp%3B%20Here%20I%20show%20an%20example%20of%20a%20report%20that%20runs%20at%20the%20sane%20time%20each%20week.%26nbsp%3B%20You%20could%20also%20do%20a%20similar%20task%2C%20but%20creating%20a%20Azure%20Monitor%20Alert%20using%20your%20query%20and%20sending%20that%2C%20when%20the%20job%20finishes.%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-monitor%2Fplatform%2Falerts-overview%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-monitor%2Fplatform%2Falerts-overview%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorClive%20Watson_0%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3E%3CSTRONG%3EStep1%3C%2FSTRONG%3E%20%E2%80%93%20establish%20a%20schedule%2Frecurrence%20(this%20is%20a%20weekly%20example%2C%20runs%20on%20Friday)%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22step1%20.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F204993iD32ECF5BC5945E17%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22step1%20.jpg%22%20alt%3D%22step1%20.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EStep2%3C%2FSTRONG%3E%20%E2%80%93%20run%20the%20KQL%26nbsp%3B%20(I'm%20running%20two%20separate%20queries%20and%20sending%20to%20two%20different%20emails%20-%20so%20you%20can%20ignore%20the%20right-hand%20parallel%20branch)%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Step%202.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F204994iE87D3BFFCC6D84A2%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Step%202.jpg%22%20alt%3D%22Step%202.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EStep%203%3C%2FSTRONG%3E%2C%20email%20the%20chart%20(this%20will%20be%20a%20JPG)%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%20image-alt%3D%22step3.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F204995i5991006342AE3C6E%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22step3.jpg%22%20alt%3D%22step3.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1519182%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20Backup%20Report%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1519182%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F723478%22%20target%3D%22_blank%22%3E%40Kalaimani%3C%2FA%3E%26nbsp%3B-%20adding%20my%20reply%20back%20to%20the%20thread%20(from%20a%20private)%20so%20its%20useful%20to%20others.%26nbsp%3B%20This%20change%20displays%20a%20column%20%22%3CSTRONG%3ENewDateTime%3C%2FSTRONG%3E%22%20which%20is%20in%20the%20%3CSTRONG%3EUTC%3C%2FSTRONG%3E%20format%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-cpp%22%3E%3CCODE%3Elet%20Events%20%3D%20AzureDiagnostics%20%0A%7C%20where%20Category%20%3D%3D%20%22AzureBackupReport%22%3B%20Events%20%0A%7C%20extend%20JobOperationSubType_s%20%3D%20columnifexists(%22JobOperationSubType_s%22%2C%20%22%22)%20%0A%7C%20where%20OperationName%20%3D%3D%20%22Job%22%20and%20JobOperation_s%20%3D%3D%20%22Backup%22%20and%20JobOperationSubType_s%20!%3D%20%22Log%22%20and%20JobOperationSubType_s%20!%3D%20%22Recovery%20point_Log%22%0A%7C%20distinct%20JobUniqueId_g%2C%20BackupItemUniqueId_s%2C%20JobStatus_s%2C%20Resource%2C%20JobFailureCode_s%2C%20JobStartDateTime_s%0A%7C%20project%20BackupItemUniqueId_s%2C%20JobStatus_s%2C%20Resource%2C%20JobFailureCode_s%2C%20JobStartDateTime_s%0A%7C%20join%20kind%3Dleftouter%20(%20Events%20%0A%7C%20where%20OperationName%20%3D%3D%20%22BackupItem%22%0A%7C%20distinct%20BackupItemUniqueId_s%2C%20BackupItemFriendlyName_s%20%0A%7C%20project%20BackupItemUniqueId_s%20%2C%20BackupItemFriendlyName_s%20)%20on%20BackupItemUniqueId_s%20%0A%7C%20project%20BackupItemFriendlyName_s%2C%20BackupItemUniqueId_s%2C%20JobStatus_s%2C%20Resource%2C%20JobFailureCode_s%2C%20JobStartDateTime_s%0A%7C%20extend%20Vault%3D%20Resource%20%0A%7C%20extend%20dt%20%3D%20todatetime(JobStartDateTime_s)%0A%7C%20summarize%20count()%20by%20BackupItemFriendlyName_s%2C%20JobStatus_s%2C%20Vault%2C%20BackupItemUniqueId_s%2C%20JobFailureCode_s%2C%20NewDateTime%3Ddt%2C%20JobStartDateTime_s%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1522849%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20Backup%20Report%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1522849%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%3Bthank%20you%20So%20much%20Sir%2C%20you%20certainly%20deserve%20a%20Great%20Thanks%20for%20your%20excellent%20support.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%204%26nbsp%3BLog%20Analytics%20Servers%2C%20is%20there%20any%20option%20can%20get%20the%20report%20in%20a%20single%20shot%20(like%20one%20scrip%20adding%20all%204%20servers%20)%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1522890%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20Backup%20Report%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1522890%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F723478%22%20target%3D%22_blank%22%3E%40Kalaimani%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20%22run%20query%20and%20visualise%20results%22%20control%20in%20the%20Logic%20App%20(playbook)%20has%20the%20%3CSTRONG%3Eworkspace%3C%2FSTRONG%3E%20as%20an%20entry%2C%20so%20you%20can%20run%204%20parallel%20jobs%20to%20get%20the%20data%20from%20each%20workspace%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1532582%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20Backup%20Report%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1532582%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%3Bthank%20you%20Sir%2C%20but%20really%20I'm%20not%20sure%20how%20to%20do%20that%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1545286%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20Backup%20Report%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1545286%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%20Dear%20Sir%2C%26nbsp%3BI%20have%20around%20500%20subscriptions%20but%20I%20am%20looking%20for%20only%20150%20subscriptions%20to%20generate%20the%20report.%20if%20it's%20possible.%20can%20you%20help%20me%20with%20this%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1570069%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20Backup%20Report%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1570069%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%3BHi%20Sir%2C%20I%20would%20like%20to%20get%20the%20OS%20version%20also(like%20its%20windows%20server%202008%20R2)%2C%20can%20you%20help%20me%20with%20this%2C%20please.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1511480%22%20slang%3D%22en-US%22%3EAzure%20Backup%20Report%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1511480%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Team%2C%26nbsp%3B%20Can%20anyone%20help%20me%20to%20generate%20the%20report%20using%26nbsp%3B%3CSPAN%3ELog%20Analytics%20workspace%20in%20azure%20backup%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1511480%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAlerts%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ELog%20Analytics%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EQuery%20Language%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1594037%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20Backup%20Report%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1594037%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F723478%22%20target%3D%22_blank%22%3E%40Kalaimani%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFor%20Q1%2C%20you%20could%20add%20a%20list%20of%20150%20subs%20(see%20line%201%20and%20last%20line)%3F%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-cpp%22%3E%3CCODE%3Elet%20include_subs%20%3D%20dynamic(%5B%225733bcb3-7fde-4caf-8629-nnnnn%22%2C%2212345%22%2C%22678910%22%5D)%3B%0Alet%20Events%20%3D%20AzureDiagnostics%20%0A%7C%20where%20Category%20%3D%3D%20%22AzureBackupReport%22%3B%20%0AEvents%20%0A%7C%20where%20SubscriptionId%20in%20(include_subs)%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EFor%20Q2%2C%20what%20data%20sources%20do%20you%20have%20that%20contain%20this%20info%3F%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CP%3EThis%20tells%20you%20the%20table%20name(s)%2C%20you%20would%20then%20have%20to%20confirm%20the%20data%20and%20then%20JOIN%20the%20computer%20name%20from%20the%20report%20to%20this%20table.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-cpp%22%3E%3CCODE%3Esearch%20%22Windows%20Server%22%0A%7C%20summarize%20count()%20by%20Type%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1595379%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20Backup%20Report%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1595379%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%20Thank%20you%2C%20Sir%2C%20The%20Q2%20getting%20the%20computer%20name(Os%20Name)%20in%20the%20report%2C%20it's%20not%20working%20for%20me.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Elet%20Events%20%3D%20AzureDiagnostics%3CBR%20%2F%3E%7C%20where%20Category%20%3D%3D%20%22AzureBackupReport%22%3B%20Events%3CBR%20%2F%3E%7C%20extend%20JobOperationSubType_s%20%3D%20columnifexists(%22JobOperationSubType_s%22%2C%20%22%22)%3CBR%20%2F%3E%7C%20where%20OperationName%20%3D%3D%20%22Job%22%20and%20JobOperation_s%20%3D%3D%20%22Backup%22%20and%20JobOperationSubType_s%20!%3D%20%22Log%22%20and%20JobOperationSubType_s%20!%3D%20%22Recovery%20point_Log%22%3CBR%20%2F%3E%7C%20distinct%20JobUniqueId_g%2C%20BackupItemUniqueId_s%2C%20JobStatus_s%2C%20Resource%2C%20JobFailureCode_s%2C%20JobStartDateTime_s%3CBR%20%2F%3E%7C%20project%20BackupItemUniqueId_s%2C%20JobStatus_s%2C%20Resource%2C%20JobFailureCode_s%2C%20JobStartDateTime_s%3CBR%20%2F%3E%7C%20join%20kind%3Dleftouter%20(%20Events%3CBR%20%2F%3E%7C%20where%20OperationName%20%3D%3D%20%22BackupItem%22%3CBR%20%2F%3E%7C%20distinct%20BackupItemUniqueId_s%2C%20BackupItemFriendlyName_s%3CBR%20%2F%3E%7C%20project%20BackupItemUniqueId_s%20%2C%20BackupItemFriendlyName_s%20)%20on%20BackupItemUniqueId_s%3CBR%20%2F%3E%7C%20project%20BackupItemFriendlyName_s%2C%20BackupItemUniqueId_s%2C%20JobStatus_s%2C%20Resource%2C%20JobFailureCode_s%2C%20JobStartDateTime_s%3CBR%20%2F%3E%7C%20extend%20Vault%3D%20Resource%3CBR%20%2F%3E%7C%20extend%20dt%20%3D%20todatetime(JobStartDateTime_s)%3C%2FP%3E%3CP%3Esearch%20%22Windows%20Server%22%3CBR%20%2F%3E%7C%20summarize%20count()%20by%20BackupItemFriendlyName_s%2C%20JobStatus_s%2C%20Vault%2C%20BackupItemUniqueId_s%2C%20JobFailureCode_s%2C%20NewDateTime%3Ddt%2C%20JobStartDateTime_s%2C%20type%3C%2FP%3E%3CDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1595694%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20Backup%20Report%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1595694%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F723478%22%20target%3D%22_blank%22%3E%40Kalaimani%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20was%20to%20run%20on%20it's%20own%2C%20to%20discover%20if%20you%20have%20the%20data%20in%20any%20of%20your%20tables%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-csharp%22%3E%3CCODE%3Esearch%20%22Windows%20Server%22%0A%7C%20summarize%20count()%20by%20Type%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWhen%20I%20ran%20the%20above%20(slightly%20modified)%20I%20see%20I%20have%20the%20data%20in%20VMCONNECT%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-csharp%22%3E%3CCODE%3Esearch%20%22Windows%20Server%202008%22%0A%7C%20where%20TimeGenerated%20%26gt%3B%20ago(7d)%0A%7C%20summarize%20count()%20by%20Type%0A%7C%20order%20by%20count_%20desc%0A%3C%2FCODE%3E%3C%2FPRE%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%0A%3CPRE%20class%3D%22lia-code-sample%20language-cpp%22%3E%3CCODE%3EVMComputer%0A%7C%20summarize%20by%20%20OperatingSystemFullName%20%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20can%20use%20this%20to%20JOIN%20with%2C%20if%20you%20don't%20have%20data%20that%20has%20the%20OS%20version%20%2F%20Name%20this%20wont%20work.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-csharp%22%3E%3CCODE%3Elet%20Events%20%3D%20AzureDiagnostics%0A%7C%20where%20Category%20%3D%3D%20%22AzureBackupReport%22%3B%20Events%0A%7C%20extend%20JobOperationSubType_s%20%3D%20columnifexists(%22JobOperationSubType_s%22%2C%20%22%22)%0A%7C%20where%20OperationName%20%3D%3D%20%22Job%22%20and%20JobOperation_s%20%3D%3D%20%22Backup%22%20and%20JobOperationSubType_s%20!%3D%20%22Log%22%20and%20JobOperationSubType_s%20!%3D%20%22Recovery%20point_Log%22%0A%7C%20distinct%20JobUniqueId_g%2C%20BackupItemUniqueId_s%2C%20JobStatus_s%2C%20Resource%2C%20JobFailureCode_s%2C%20JobStartDateTime_s%0A%7C%20project%20BackupItemUniqueId_s%2C%20JobStatus_s%2C%20Resource%2C%20JobFailureCode_s%2C%20JobStartDateTime_s%0A%7C%20join%20kind%3Dleftouter%20(%20Events%0A%7C%20where%20OperationName%20%3D%3D%20%22BackupItem%22%0A%7C%20distinct%20BackupItemUniqueId_s%2C%20BackupItemFriendlyName_s%0A%7C%20project%20BackupItemUniqueId_s%20%2C%20BackupItemFriendlyName_s%20)%20on%20BackupItemUniqueId_s%0A%7C%20project%20BackupItemFriendlyName_s%2C%20BackupItemUniqueId_s%2C%20JobStatus_s%2C%20Resource%2C%20JobFailureCode_s%2C%20JobStartDateTime_s%0A%7C%20extend%20Vault%3D%20Resource%0A%7C%20extend%20dt%20%3D%20todatetime(JobStartDateTime_s)%0A%2F%2F%20this%20is%20a%20sample%20-%20and%20only%20works%20if%20you%20have%20this%20Table!%0A%7C%20join%20%0A%20%20VMComputer%0A%20%20on%20%24left.BackupItemFriendlyName_s%20%3D%3D%20%24right.HostName%0A%7C%20project%20Computer%2C%20HostName%2C%20OperatingSystemFullName%20%20%3C%2FCODE%3E%3C%2FPRE%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-1598791%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20Backup%20Report%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1598791%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%3BHi%20Sir%2C%20its%20failed%20with%20the%20bellow%20error%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3E'join'%20operator%3A%20Failed%20to%20resolve%20table%20or%20column%20expression%20named%20'VMComputer'%20If%20issue%20persists%2C%20please%20open%20a%20support%20ticket.%20Request%20id%3A%201ba0f22c-512e-409d-8112-4ae0afe11ef8%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3Ewe%20are%20using%26nbsp%3BAzure%20Backup%20Monitoring%20Solution.%20is%20there%20any%20way%20to%20get%20the%20computer%20name%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1767710%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20Backup%20Report%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1767710%22%20slang%3D%22en-US%22%3E%3CP%20data-unlink%3D%22true%22%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F723478%22%20target%3D%22_blank%22%3E%40Kalaimani%3C%2FA%3E%26nbsp%3B-%20Dear%26nbsp%3BClive%20Watson%20%26nbsp%3B-%20we%20are%20able%20to%20get%20up%20to%2010000%20results%20only.%20can%20you%20help%20me%20to%20get%20the%20complete%20result%3F%26nbsp%3B%3C%2FP%3E%3CP%20data-unlink%3D%22true%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20data-unlink%3D%22true%22%3Ethis%20the%20warring%20getting%20while%20running%20the%20query%26nbsp%3B%3C%2FP%3E%3CP%20data-unlink%3D%22true%22%3E%26nbsp%3B%3C%2FP%3E%3CDIV%20class%3D%22notification-wrapper%20ng-star-inserted%22%3E%3CDIV%20class%3D%22notification-container%20info%22%3E%3CDIV%20class%3D%22notification-content%22%3E%3CDIV%20class%3D%22notification-message%20ng-star-inserted%22%3EShowing%20the%20first%2010%2C000%20results.%20%3CA%20target%3D%22_blank%22%3ELearn%20more%3C%2FA%3E%20on%20how%20to%20narrow%20down%20the%20result%20set.%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22container-end%22%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1770310%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20Backup%20Report%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1770310%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F723478%22%20target%3D%22_blank%22%3E%40Kalaimani%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E10k%20is%20the%20query%20limit%20(and%20while%20its%20possible%20to%20get%20500k%20with%20the%20api)%3B%20most%20people%20will%20want%20a%20short%20report%20of%20the%20data%20-%20I%20doubt%20you'll%20want%20to%20read%2010k%20rows%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20could%20swap%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-csharp%22%3E%3CCODE%3E%7C%20project%20Computer%2C%20HostName%2C%20OperatingSystemFullName%20%20%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Eto%20something%20like%20this%2C%20the%20important%20part%20is%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fdata-explorer%2Fkusto%2Fquery%2Fsummarizeoperator%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Esummarize%3C%2FA%3E%20which%20allows%20you%20to%20group%20your%20returned%20values.%26nbsp%3B%20So%20rather%20than%20getting%20many%20rows%20for%20each%20%22BackupFriendlyName_s%22%20they%20are%20grouped%20together%2C%26nbsp%3B%20I%20used%20count()%20so%20you%20can%20see%20how%20many%20are%20as%20well.%26nbsp%3B%20You%20may%20need%20to%20experiment%20to%20find%20a%20method%20that%20works%20for%20you.%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CPRE%20class%3D%22lia-code-sample%20language-cpp%22%3E%3CCODE%3E%7C%20summarize%20count()%20by%20BackupItemFriendlyName_s%2C%20JobFailureCode_s%2C%20Resource%2C%20JobStatus_s%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1796076%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20Backup%20Report%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1796076%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%20Dear%20Sir%2C%3C%2FP%3E%3CP%3EYes%2C%20we%20have%20more%20than%2015000%20servers%20in%20the%20cloud.%20those%20all%20need%20to%20be%20generated%20in%20a%20single%20backup%20report.%20so%20need%20to%20get%20more%20than%26nbsp%3B10000.%20we%20are%20using%20the%20below%20query%20to%20get%20the%20result%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Elet%20Events%20%3D%20AzureDiagnostics%3C%2FP%3E%3CP%3E%7C%20where%20Category%20%3D%3D%20%22AzureBackupReport%22%3B%20Events%3C%2FP%3E%3CP%3E%7C%20extend%20JobOperationSubType_s%20%3D%20columnifexists(%22JobOperationSubType_s%22%2C%20%22%22)%3C%2FP%3E%3CP%3E%7C%20where%20OperationName%20%3D%3D%20%22Job%22%20and%20JobOperation_s%20%3D%3D%20%22Backup%22%20and%20JobOperationSubType_s%20!%3D%20%22Log%22%20and%20JobOperationSubType_s%20!%3D%20%22Recovery%20point_Log%22%3C%2FP%3E%3CP%3E%7C%20distinct%20JobUniqueId_g%2C%20BackupItemUniqueId_s%2C%20JobStatus_s%2C%20Resource%2C%20JobFailureCode_s%2C%20JobStartDateTime_s%3C%2FP%3E%3CP%3E%7C%20project%20BackupItemUniqueId_s%2C%20JobStatus_s%2C%20Resource%2C%20JobFailureCode_s%2C%20JobStartDateTime_s%3C%2FP%3E%3CP%3E%7C%20join%20kind%3Dleftouter%20(%20Events%3C%2FP%3E%3CP%3E%7C%20where%20OperationName%20%3D%3D%20%22BackupItem%22%3C%2FP%3E%3CP%3E%7C%20distinct%20BackupItemUniqueId_s%2C%20BackupItemFriendlyName_s%3C%2FP%3E%3CP%3E%7C%20project%20BackupItemUniqueId_s%20%2C%20BackupItemFriendlyName_s%20)%20on%20BackupItemUniqueId_s%3C%2FP%3E%3CP%3E%7C%20project%20BackupItemFriendlyName_s%2C%20BackupItemUniqueId_s%2C%20JobStatus_s%2C%20Resource%2C%20JobFailureCode_s%2C%20JobStartDateTime_s%3C%2FP%3E%3CP%3E%7C%20extend%20Vault%3D%20Resource%3C%2FP%3E%3CP%3E%7C%20extend%20dt%20%3D%20todatetime(JobStartDateTime_s)%3C%2FP%3E%3CP%3E%7C%20summarize%20count()%20by%20BackupItemFriendlyName_s%2C%20JobStatus_s%2C%20Vault%2C%20BackupItemUniqueId_s%2C%20JobFailureCode_s%2C%20NewDateTime%3Ddt%2C%20JobStartDateTime_s%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ebelow%20warring%2C%20we%20are%20getting%20while%20running%20the%20above%20query.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3ECompleted%3C%2FSTRONG%3E.%20Showing%20partial%20results%20from%20the%20last%2024%20hours.%3C%2FP%3E%3CP%3E00%3A06.0%3C%2FP%3E%3CP%3E10%2C000%2B%20records%3C%2FP%3E%3CP%3EShowing%20the%20first%2010%2C000%20results.%20Learn%20more%20on%20how%20to%20narrow%20down%20the%20result%20set.%3C%2FP%3E%3CP%3E%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3C%2FP%3E%3CP%3E%26nbsp%3B%3CBR%20%2F%3E%3CSTRONG%3EAlso%2C%20we%20are%20trying%20the%20get%20the%20computer%20name%2C%20hostname%20name%2C%20and%20OS%20version%20but%20not%20able%20to%20get%20it%20Please%20help%20with%20this.%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Elet%20Events%20%3D%20AzureDiagnostics%3C%2FP%3E%3CP%3E%3CSTRONG%3E%7C%20project%20Computer%2C%20HostName%2C%20OperatingSystemFullName%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%7C%20where%20Category%20%3D%3D%20%22AzureBackupReport%22%3B%20Events%3C%2FP%3E%3CP%3E%7C%20extend%20JobOperationSubType_s%20%3D%20columnifexists(%22JobOperationSubType_s%22%2C%20%22%22)%3C%2FP%3E%3CP%3E%7C%20where%20OperationName%20%3D%3D%20%22Job%22%20and%20JobOperation_s%20%3D%3D%20%22Backup%22%20and%20JobOperationSubType_s%20!%3D%20%22Log%22%20and%20JobOperationSubType_s%20!%3D%20%22Recovery%20point_Log%22%3C%2FP%3E%3CP%3E%7C%20distinct%20JobUniqueId_g%2C%20BackupItemUniqueId_s%2C%20JobStatus_s%2C%20Resource%2C%20JobFailureCode_s%2C%20JobStartDateTime_s%3C%2FP%3E%3CP%3E%7C%20project%20BackupItemUniqueId_s%2C%20JobStatus_s%2C%20Resource%2C%20JobFailureCode_s%2C%20JobStartDateTime_s%3C%2FP%3E%3CP%3E%7C%20join%20kind%3Dleftouter%20(%20Events%3C%2FP%3E%3CP%3E%7C%20where%20OperationName%20%3D%3D%20%22BackupItem%22%3C%2FP%3E%3CP%3E%7C%20distinct%20BackupItemUniqueId_s%2C%20BackupItemFriendlyName_s%3C%2FP%3E%3CP%3E%7C%20project%20BackupItemUniqueId_s%20%2C%20BackupItemFriendlyName_s%20)%20on%20BackupItemUniqueId_s%3C%2FP%3E%3CP%3E%7C%20project%20BackupItemFriendlyName_s%2C%20BackupItemUniqueId_s%2C%20JobStatus_s%2C%20Resource%2C%20JobFailureCode_s%2C%20JobStartDateTime_s%3C%2FP%3E%3CP%3E%7C%20extend%20Vault%3D%20Resource%3C%2FP%3E%3CP%3E%7C%20extend%20dt%20%3D%20todatetime(JobStartDateTime_s)%3C%2FP%3E%3CP%3E%7C%20summarize%20count()%20by%20BackupItemFriendlyName_s%2C%20JobStatus_s%2C%20Vault%2C%20BackupItemUniqueId_s%2C%20JobFailureCode_s%2C%20NewDateTime%3Ddt%2C%20JobStartDateTime_s%2C%3CSTRONG%3E%20HostName%2C%20OperatingSystemFullName%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3CU%3E'project'%20operator%3A%20Failed%20to%20resolve%20scalar%20expression%20named%20'HostName'%20If%20issue%20persists%2C%20please%20open%20a%20support%20ticket.%20Request%20id%3A%2043b5c644-ee20-470a-a741-dcc74036e6af%3C%2FU%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3CSTRONG%3Ethe%20below%20error%20getting%20when%20I%20try%20to%20get%20the%26nbsp%3BComputer%2C%20HostName%2C%20OperatingSystemFullName%20(OS%20version%20)%20%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3E%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3Ethis%20is%20the%20most%20needed%20for%20me.%20Please%20help%20me%20with%20this.%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1796317%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20Backup%20Report%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1796317%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F723478%22%20target%3D%22_blank%22%3E%40Kalaimani%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWe%20can%20answer%20%232%20with%20this%20script%2C%20which%20uses%20%3CSTRONG%3EHeartBeat%3C%2FSTRONG%3E%20data%20to%20get%20the%20OS%20info%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-cpp%22%3E%3CCODE%3Elet%20Events%20%3D%20AzureDiagnostics%0A%2F%2F%7C%20project%20Computer%2C%20HostName%2C%20OperatingSystemFullName%0A%7C%20where%20Category%20%3D%3D%20%22AzureBackupReport%22%3B%20%0AEvents%0A%7C%20extend%20JobOperationSubType_s%20%3D%20columnifexists(%22JobOperationSubType_s%22%2C%20%22%22)%0A%7C%20where%20OperationName%20%3D%3D%20%22Job%22%20and%20JobOperation_s%20%3D%3D%20%22Backup%22%20and%20JobOperationSubType_s%20!%3D%20%22Log%22%20and%20JobOperationSubType_s%20!%3D%20%22Recovery%20point_Log%22%0A%7C%20distinct%20JobUniqueId_g%2C%20BackupItemUniqueId_s%2C%20JobStatus_s%2C%20Resource%2C%20JobFailureCode_s%2C%20JobStartDateTime_s%0A%7C%20project%20BackupItemUniqueId_s%2C%20JobStatus_s%2C%20Resource%2C%20JobFailureCode_s%2C%20JobStartDateTime_s%0A%7C%20join%20kind%3Dleftouter%20(%0A%20Events%0A%7C%20where%20OperationName%20%3D%3D%20%22BackupItem%22%0A%7C%20distinct%20BackupItemUniqueId_s%2C%20BackupItemFriendlyName_s%0A%7C%20project%20BackupItemUniqueId_s%20%2C%20BackupItemFriendlyName_s%20)%20on%20BackupItemUniqueId_s%0A%2F%2F%7C%20project%20BackupItemFriendlyName_s%2C%20BackupItemUniqueId_s%2C%20JobStatus_s%2C%20Resource%2C%20JobFailureCode_s%2C%20JobStartDateTime_s%0A%7C%20extend%20Vault%3D%20Resource%0A%7C%20extend%20dt%20%3D%20todatetime(JobStartDateTime_s)%0A%2F%2F%20join%20to%20Heartbeat%20to%20get%20some%20OS%20details%20%0A%7C%20join%20(Heartbeat%20%7C%20project%20Resource%2C%20OSType%2C%20FQDN%3DComputer%2C%20ComputerIP%2C%20OSMajorVersion%2C%20OSMinorVersion%20)%20on%20%24left.BackupItemFriendlyName_s%20%3D%3D%20%24right.Resource%0A%7C%20summarize%20count()%20by%20BackupItemFriendlyName_s%2C%20JobStatus_s%2C%20Vault%2C%20BackupItemUniqueId_s%2C%20JobFailureCode_s%2C%20NewDateTime%3Ddt%2C%20JobStartDateTime_s%2C%20HostName%20%3DResource1%2C%20FQDN%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Efor%20%231%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E1.%20As%20you%20have%20exceed%20a%20hard%20limit%20of%2010%2C000%20are%20you%20able%20to%20accept%20a%20solution%20that%20shows%20maybe%20the%20report%20in%20two%20groups%20(Servers%20A-M%2C%20N-Z)%20etc%20%3F%26nbsp%3B%3C%2FP%3E%0A%3CP%3E2.%20Could%20we%20show%20the%20report%20filtered%20by%20Country%2C%20Region%20or%20ResourceGroup%20or%20some%20other%20divider%20to%20get%20us%20below%2010k%3F%3C%2FP%3E%0A%3CP%3E3.%20Are%20all%2015k%20servers%20are%20backed%20up%20each%20time%20-%20is%20that%20right%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1798431%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20Backup%20Report%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1798431%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%26nbsp%3BDear%20Sir%2C%26nbsp%3B%20Really%20thank%20you%20for%20helping%20me%20with%20this.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%231%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3COL%3E%3CLI%3EAs%20you%20have%20exceed%20a%20hard%20limit%20of%2010%2C000%20are%20you%20able%20to%20accept%20a%20solution%20that%20shows%20maybe%20the%20report%20in%20two%20groups%20(Servers%20A-M%2C%20N-Z)%20etc%20%3F%26nbsp%3B%3C%2FLI%3E%3C%2FOL%3E%3CP%3E%3CSTRONG%3E%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3EYes%2C%20if%20it's%20possible.%20I%20have%20not%20tried%20it%20and%20not%20sure%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3E%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%3COL%3E%3CLI%3ECould%20we%20show%20the%20report%20filtered%20by%20Country%2C%20Region%20or%20ResourceGroup%20or%20some%20other%20divider%20to%20get%20us%20below%2010k%3F%3C%2FLI%3E%3C%2FOL%3E%3CP%3E%3CSTRONG%3EYes%2C%20if%20it's%20possible.%20I%20have%20not%20tried%20it%20and%20not%20sure%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3COL%3E%3CLI%3EAre%20all%2015k%20servers%20are%20backed%20up%20each%20time%20-%20is%20that%20right%3F%3C%2FLI%3E%3C%2FOL%3E%3CP%3E%3CSTRONG%3EYes%2C%20all%20servers%20are%20backing%20up%20at%20a%20different%20time%20but%20within%2024%20hours.%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3E%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%232%3C%2FP%3E%3CP%3EHeartbeat%20not%20working%20for%20me.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Kalaimani_0-1603183227175.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F227934i3712521D06E36935%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Kalaimani_0-1603183227175.png%22%20alt%3D%22Kalaimani_0-1603183227175.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1799066%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20Backup%20Report%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1799066%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F723478%22%20target%3D%22_blank%22%3E%40Kalaimani%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESo%20for%20%231%20we%20could%20add%20a%20test%20for%20Backups%20that%20start%20with%20A-M%20or%20N%20thru%20Z).%26nbsp%3B%20I'm%20assuming%20there%20will%20be%20a%20range%20of%20names%2C%20you%20may%20need%20to%20spilt%20further%20A-E%2C%20F-M%20etc...%3F%26nbsp%3B%20You%20can%20then%20run%20these%20as%20parallel%20queries%20in%20your%20Logic%20App.%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-cpp%22%3E%3CCODE%3Elet%20Events%20%3D%20AzureDiagnostics%0A%7C%20where%20Category%20%3D%3D%20%22AzureBackupReport%22%3B%20%0AEvents%0A%7C%20extend%20JobOperationSubType_s%20%3D%20columnifexists(%22JobOperationSubType_s%22%2C%20%22%22)%0A%7C%20where%20OperationName%20%3D%3D%20%22Job%22%20and%20JobOperation_s%20%3D%3D%20%22Backup%22%20and%20JobOperationSubType_s%20!%3D%20%22Log%22%20and%20JobOperationSubType_s%20!%3D%20%22Recovery%20point_Log%22%0A%7C%20distinct%20JobUniqueId_g%2C%20BackupItemUniqueId_s%2C%20JobStatus_s%2C%20Resource%2C%20JobFailureCode_s%2C%20JobStartDateTime_s%0A%7C%20project%20BackupItemUniqueId_s%2C%20JobStatus_s%2C%20Resource%2C%20JobFailureCode_s%2C%20JobStartDateTime_s%0A%7C%20join%20kind%3Dleftouter%20(%0A%20Events%0A%7C%20where%20OperationName%20%3D%3D%20%22BackupItem%22%0A%7C%20distinct%20BackupItemUniqueId_s%2C%20BackupItemFriendlyName_s%0A%7C%20project%20BackupItemUniqueId_s%20%2C%20BackupItemFriendlyName_s%20)%20on%20BackupItemUniqueId_s%0A%2F%2F%20add%20name%20filter%20(starts%20with%20A%20thru%20M)%0A%7C%20where%20BackupItemFriendlyName_s%20matches%20regex%20%40%22%5CA(%5BA-Ma-m%5D)%22%0A%2F%2F%7C%20where%20BackupItemFriendlyName_s%20matches%20regex%20%40%22%5CA(%5BN-Zn-z%5D)%22%0A%7C%20project%20BackupItemFriendlyName_s%2C%20BackupItemUniqueId_s%2C%20JobStatus_s%2C%20Resource%2C%20JobFailureCode_s%2C%20JobStartDateTime_s%0A%7C%20extend%20Vault%3D%20Resource%0A%7C%20extend%20dt%20%3D%20todatetime(JobStartDateTime_s)%0A%7C%20summarize%20count()%20by%20BackupItemFriendlyName_s%2C%20JobStatus_s%2C%20Vault%2C%20BackupItemUniqueId_s%2C%20JobFailureCode_s%2C%20NewDateTime%3Ddt%2C%20JobStartDateTime_s%20%2F%2F%2C%20HostName%20%3DResource1%2C%20FQDN%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3BFor%20%232%2C%20is%20that%20because%20you%20don't%20have%20a%26nbsp%3B%3CSTRONG%3EHeartbeat%3C%2FSTRONG%3E%20table%3F%20In%20a%20previous%20reply%20I%20asked%20you%20which%20Tables%20you%20do%20have%2C%20%3CSTRONG%3EHeartbeat%3C%2FSTRONG%3E%20and%20%3CSTRONG%3EVMconnection%3C%2FSTRONG%3E%20contain%20the%20data%20you%20are%20after%2C%20but%20you%20don't%20seem%20to%20have%20them%2C%20%3CSTRONG%3EAzureDiagnostics%3C%2FSTRONG%3E%20doesn't%20have%20this%20detail%20so%20we%20do%20need%20to%20correlate%20with%20another%20source%2C%20there%20are%20100s%20of%20tables%2C%20so%20you%20need%20to%20tell%20me%20which%20ones%20you%20have%20that%20have%20OS%20info.%26nbsp%3B%20If%20you%20do%20have%20Heartbeat%20maybe%20I've%20joined%20on%20the%20wrong%20value%3F%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3EI%20do%20think%20we%20are%20replicating%20much%20of%20what%20is%20available%20in%20the%20UI%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-gb%2Fazure%2Fbackup%2Fconfigure-reports%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-gb%2Fazure%2Fbackup%2Fconfigure-reports%3C%2FA%3E%26nbsp%3B%20or%20could%20be%20done%20as%20a%20Workbook%2C%20if%20the%20primary%20goal%20to%20have%20a%20schedule%20report%20still%3F%26nbsp%3B%20If%20not%20users%20can%20go%20to%20the%20UI%20or%20Workbooks%20anytime%20to%20see%20the%20status%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
Contributor

Hi Team,  Can anyone help me to generate the report using Log Analytics workspace in azure backup

22 Replies

@Kalaimani 

 

Azure Backup example queries are here: https://docs.microsoft.com/en-us/azure/backup/backup-azure-monitoring-use-azuremonitor

Enable the logging here:
https://docs.microsoft.com/en-us/azure/backup/backup-azure-diagnostic-events

 

Then use the first links to create the reports you need
Thanks 

sorry it not working... but below one its working

let Events = AzureDiagnostics | where Category == "AzureBackupReport"; Events
| where OperationName == "Job"
| where TimeGenerated > ago(30d)
| where * has "VT-PRD-CA02"
| project BackupItemUniqueId_s , JobStatus_s , JobStartDateTime_s
| join kind=inner (Events | where OperationName == "BackupItem"
| distinct BackupItemUniqueId_s, BackupItemFriendlyName_s
| project BackupItemUniqueId_s, BackupItemFriendlyName_s ) on BackupItemUniqueId_s
| project BackupItemFriendlyName_s , JobStatus_s, JobStartDateTime_s

a) Need it for multiple servers
where * has "VT-PRD-CA02" provides me the result for one.
I tried various combinations eg | where BackupItemFriendlyName_s in ("Client1","Client2") etc but that is not giving me any result.



b) need failed and completed status for single report for one server
best response confirmed by Kalaimani (Contributor)
Solution

@Kalaimani 

 

I think you need to add the filter later:

 

let Events = AzureDiagnostics | where Category == "AzureBackupReport"; 
Events
| where OperationName == "Job"
| where TimeGenerated > ago(30d)
| project BackupItemUniqueId_s , JobStatus_s , JobStartDateTime_s
| join kind=inner 
(
    Events
    | where OperationName == "BackupItem"
    | distinct BackupItemUniqueId_s, BackupItemFriendlyName_s
    | project BackupItemUniqueId_s, BackupItemFriendlyName_s 
) on BackupItemUniqueId_s
| where BackupItemFriendlyName_s in ("CH-DCVM10","FAKEVM0001","FAKE1111")
| summarize count() by  BackupItemFriendlyName_s, JobStatus_s, JobStartDateTime_s


 Go to Log Analytics and run query

@Clive Watson Thanks Dear, I really appreciate your response. 

 

is there any possibility to send the failed backup report to email.  

@Kalaimani 

 

For this I'd typically suggest a Playbook to automate the report.  Here I show an example of a report that runs at the sane time each week.  You could also do a similar task, but creating a Azure Monitor Alert using your query and sending that, when the job finishes. https://docs.microsoft.com/en-us/azure/azure-monitor/platform/alerts-overview

 

 

Step1 – establish a schedule/recurrence (this is a weekly example, runs on Friday)

step1 .jpg

Step2 – run the KQL  (I'm running two separate queries and sending to two different emails - so you can ignore the right-hand parallel branch)

Step 2.jpg

Step 3, email the chart (this will be a JPG)

 

step3.jpg

@Kalaimani - adding my reply back to the thread (from a private) so its useful to others.  This change displays a column "NewDateTime" which is in the UTC format

let Events = AzureDiagnostics 
| where Category == "AzureBackupReport"; Events 
| extend JobOperationSubType_s = columnifexists("JobOperationSubType_s", "") 
| where OperationName == "Job" and JobOperation_s == "Backup" and JobOperationSubType_s != "Log" and JobOperationSubType_s != "Recovery point_Log"
| distinct JobUniqueId_g, BackupItemUniqueId_s, JobStatus_s, Resource, JobFailureCode_s, JobStartDateTime_s
| project BackupItemUniqueId_s, JobStatus_s, Resource, JobFailureCode_s, JobStartDateTime_s
| join kind=leftouter ( Events 
| where OperationName == "BackupItem"
| distinct BackupItemUniqueId_s, BackupItemFriendlyName_s 
| project BackupItemUniqueId_s , BackupItemFriendlyName_s ) on BackupItemUniqueId_s 
| project BackupItemFriendlyName_s, BackupItemUniqueId_s, JobStatus_s, Resource, JobFailureCode_s, JobStartDateTime_s
| extend Vault= Resource 
| extend dt = todatetime(JobStartDateTime_s)
| summarize count() by BackupItemFriendlyName_s, JobStatus_s, Vault, BackupItemUniqueId_s, JobFailureCode_s, NewDateTime=dt, JobStartDateTime_s

 

@Clive Watson thank you So much Sir, you certainly deserve a Great Thanks for your excellent support. 

 

I have 4 Log Analytics Servers, is there any option can get the report in a single shot (like one scrip adding all 4 servers )

@Kalaimani 

 

The "run query and visualise results" control in the Logic App (playbook) has the workspace as an entry, so you can run 4 parallel jobs to get the data from each workspace?

@Clive Watson thank you Sir, but really I'm not sure how to do that 

@Clive Watson  Dear Sir, I have around 500 subscriptions but I am looking for only 150 subscriptions to generate the report. if it's possible. can you help me with this? 

@Clive Watson Hi Sir, I would like to get the OS version also(like its windows server 2008 R2), can you help me with this, please.

@Kalaimani

 

For Q1, you could add a list of 150 subs (see line 1 and last line)?

let include_subs = dynamic(["5733bcb3-7fde-4caf-8629-nnnnn","12345","678910"]);
let Events = AzureDiagnostics 
| where Category == "AzureBackupReport"; 
Events 
| where SubscriptionId in (include_subs)

For Q2, what data sources do you have that contain this info?


This tells you the table name(s), you would then have to confirm the data and then JOIN the computer name from the report to this table.

 

search "Windows Server"
| summarize count() by Type

@Clive Watson  Thank you, Sir, The Q2 getting the computer name(Os Name) in the report, it's not working for me.

 

let Events = AzureDiagnostics
| where Category == "AzureBackupReport"; Events
| extend JobOperationSubType_s = columnifexists("JobOperationSubType_s", "")
| where OperationName == "Job" and JobOperation_s == "Backup" and JobOperationSubType_s != "Log" and JobOperationSubType_s != "Recovery point_Log"
| distinct JobUniqueId_g, BackupItemUniqueId_s, JobStatus_s, Resource, JobFailureCode_s, JobStartDateTime_s
| project BackupItemUniqueId_s, JobStatus_s, Resource, JobFailureCode_s, JobStartDateTime_s
| join kind=leftouter ( Events
| where OperationName == "BackupItem"
| distinct BackupItemUniqueId_s, BackupItemFriendlyName_s
| project BackupItemUniqueId_s , BackupItemFriendlyName_s ) on BackupItemUniqueId_s
| project BackupItemFriendlyName_s, BackupItemUniqueId_s, JobStatus_s, Resource, JobFailureCode_s, JobStartDateTime_s
| extend Vault= Resource
| extend dt = todatetime(JobStartDateTime_s)

search "Windows Server"
| summarize count() by BackupItemFriendlyName_s, JobStatus_s, Vault, BackupItemUniqueId_s, JobFailureCode_s, NewDateTime=dt, JobStartDateTime_s, type

 

@Kalaimani 

 

This was to run on it's own, to discover if you have the data in any of your tables

 

 

search "Windows Server"
| summarize count() by Type

 

 

When I ran the above (slightly modified) I see I have the data in VMCONNECT 

 

search "Windows Server 2008"
| where TimeGenerated > ago(7d)
| summarize count() by Type
| order by count_ desc

 

 

 

VMComputer
| summarize by  OperatingSystemFullName 

 

 

I can use this to JOIN with, if you don't have data that has the OS version / Name this wont work. 


 

let Events = AzureDiagnostics
| where Category == "AzureBackupReport"; Events
| extend JobOperationSubType_s = columnifexists("JobOperationSubType_s", "")
| where OperationName == "Job" and JobOperation_s == "Backup" and JobOperationSubType_s != "Log" and JobOperationSubType_s != "Recovery point_Log"
| distinct JobUniqueId_g, BackupItemUniqueId_s, JobStatus_s, Resource, JobFailureCode_s, JobStartDateTime_s
| project BackupItemUniqueId_s, JobStatus_s, Resource, JobFailureCode_s, JobStartDateTime_s
| join kind=leftouter ( Events
| where OperationName == "BackupItem"
| distinct BackupItemUniqueId_s, BackupItemFriendlyName_s
| project BackupItemUniqueId_s , BackupItemFriendlyName_s ) on BackupItemUniqueId_s
| project BackupItemFriendlyName_s, BackupItemUniqueId_s, JobStatus_s, Resource, JobFailureCode_s, JobStartDateTime_s
| extend Vault= Resource
| extend dt = todatetime(JobStartDateTime_s)
// this is a sample - and only works if you have this Table!
| join 
  VMComputer
  on $left.BackupItemFriendlyName_s == $right.HostName
| project Computer, HostName, OperatingSystemFullName  

 

 

@Clive Watson Hi Sir, its failed with the bellow error, 

 

'join' operator: Failed to resolve table or column expression named 'VMComputer' If issue persists, please open a support ticket. Request id: 1ba0f22c-512e-409d-8112-4ae0afe11ef8

 

we are using Azure Backup Monitoring Solution. is there any way to get the computer name 

@Kalaimani - Dear Clive Watson  - we are able to get up to 10000 results only. can you help me to get the complete result? 

 

this the warring getting while running the query 

 

Showing the first 10,000 results. Learn more on how to narrow down the result set.
 

@Kalaimani 

 

10k is the query limit (and while its possible to get 500k with the api); most people will want a short report of the data - I doubt you'll want to read 10k rows?

 

You could swap

 

 

| project Computer, HostName, OperatingSystemFullName  

 

to something like this, the important part is the summarize which allows you to group your returned values.  So rather than getting many rows for each "BackupFriendlyName_s" they are grouped together,  I used count() so you can see how many are as well.  You may need to experiment to find a method that works for you. 

| summarize count() by BackupItemFriendlyName_s, JobFailureCode_s, Resource, JobStatus_s

@Clive Watson  Dear Sir,

Yes, we have more than 15000 servers in the cloud. those all need to be generated in a single backup report. so need to get more than 10000. we are using the below query to get the result 

 

let Events = AzureDiagnostics

| where Category == "AzureBackupReport"; Events

| extend JobOperationSubType_s = columnifexists("JobOperationSubType_s", "")

| where OperationName == "Job" and JobOperation_s == "Backup" and JobOperationSubType_s != "Log" and JobOperationSubType_s != "Recovery point_Log"

| distinct JobUniqueId_g, BackupItemUniqueId_s, JobStatus_s, Resource, JobFailureCode_s, JobStartDateTime_s

| project BackupItemUniqueId_s, JobStatus_s, Resource, JobFailureCode_s, JobStartDateTime_s

| join kind=leftouter ( Events

| where OperationName == "BackupItem"

| distinct BackupItemUniqueId_s, BackupItemFriendlyName_s

| project BackupItemUniqueId_s , BackupItemFriendlyName_s ) on BackupItemUniqueId_s

| project BackupItemFriendlyName_s, BackupItemUniqueId_s, JobStatus_s, Resource, JobFailureCode_s, JobStartDateTime_s

| extend Vault= Resource

| extend dt = todatetime(JobStartDateTime_s)

| summarize count() by BackupItemFriendlyName_s, JobStatus_s, Vault, BackupItemUniqueId_s, JobFailureCode_s, NewDateTime=dt, JobStartDateTime_s

 

below warring, we are getting while running the above query.

 

Completed. Showing partial results from the last 24 hours.

00:06.0

10,000+ records

Showing the first 10,000 results. Learn more on how to narrow down the result set.

=============================================================

 
Also, we are trying the get the computer name, hostname name, and OS version but not able to get it Please help with this. 

 

let Events = AzureDiagnostics

| project Computer, HostName, OperatingSystemFullName

| where Category == "AzureBackupReport"; Events

| extend JobOperationSubType_s = columnifexists("JobOperationSubType_s", "")

| where OperationName == "Job" and JobOperation_s == "Backup" and JobOperationSubType_s != "Log" and JobOperationSubType_s != "Recovery point_Log"

| distinct JobUniqueId_g, BackupItemUniqueId_s, JobStatus_s, Resource, JobFailureCode_s, JobStartDateTime_s

| project BackupItemUniqueId_s, JobStatus_s, Resource, JobFailureCode_s, JobStartDateTime_s

| join kind=leftouter ( Events

| where OperationName == "BackupItem"

| distinct BackupItemUniqueId_s, BackupItemFriendlyName_s

| project BackupItemUniqueId_s , BackupItemFriendlyName_s ) on BackupItemUniqueId_s

| project BackupItemFriendlyName_s, BackupItemUniqueId_s, JobStatus_s, Resource, JobFailureCode_s, JobStartDateTime_s

| extend Vault= Resource

| extend dt = todatetime(JobStartDateTime_s)

| summarize count() by BackupItemFriendlyName_s, JobStatus_s, Vault, BackupItemUniqueId_s, JobFailureCode_s, NewDateTime=dt, JobStartDateTime_s, HostName, OperatingSystemFullName

 

 

'project' operator: Failed to resolve scalar expression named 'HostName' If issue persists, please open a support ticket. Request id: 43b5c644-ee20-470a-a741-dcc74036e6af

 

 the below error getting when I try to get the Computer, HostName, OperatingSystemFullName (OS version )

 

this is the most needed for me. Please help me with this.

 

 

 

 

 

@Kalaimani 

 

We can answer #2 with this script, which uses HeartBeat data to get the OS info 

let Events = AzureDiagnostics
//| project Computer, HostName, OperatingSystemFullName
| where Category == "AzureBackupReport"; 
Events
| extend JobOperationSubType_s = columnifexists("JobOperationSubType_s", "")
| where OperationName == "Job" and JobOperation_s == "Backup" and JobOperationSubType_s != "Log" and JobOperationSubType_s != "Recovery point_Log"
| distinct JobUniqueId_g, BackupItemUniqueId_s, JobStatus_s, Resource, JobFailureCode_s, JobStartDateTime_s
| project BackupItemUniqueId_s, JobStatus_s, Resource, JobFailureCode_s, JobStartDateTime_s
| join kind=leftouter (
 Events
| where OperationName == "BackupItem"
| distinct BackupItemUniqueId_s, BackupItemFriendlyName_s
| project BackupItemUniqueId_s , BackupItemFriendlyName_s ) on BackupItemUniqueId_s
//| project BackupItemFriendlyName_s, BackupItemUniqueId_s, JobStatus_s, Resource, JobFailureCode_s, JobStartDateTime_s
| extend Vault= Resource
| extend dt = todatetime(JobStartDateTime_s)
// join to Heartbeat to get some OS details 
| join (Heartbeat | project Resource, OSType, FQDN=Computer, ComputerIP, OSMajorVersion, OSMinorVersion ) on $left.BackupItemFriendlyName_s == $right.Resource
| summarize count() by BackupItemFriendlyName_s, JobStatus_s, Vault, BackupItemUniqueId_s, JobFailureCode_s, NewDateTime=dt, JobStartDateTime_s, HostName =Resource1, FQDN

 

 

for #1

 

1. As you have exceed a hard limit of 10,000 are you able to accept a solution that shows maybe the report in two groups (Servers A-M, N-Z) etc ? 

2. Could we show the report filtered by Country, Region or ResourceGroup or some other divider to get us below 10k?

3. Are all 15k servers are backed up each time - is that right?