Forum Discussion
Monitor all Azure Backup protected workloads using Log Analytics
Using this article to generate backup reports for all customers
https://docs.microsoft.com/en-us/azure/cloud-solution-provider/support/monitor-multiple-customers
I am receiving syntax error when search logs with this query-
let Events = AzureDiagnostics
| where Category == "AzureBackupReport" ;
Events
| where OperationName == "Job" and JobOperation_s == "Backup"
| project ProtectedServerUniqueId_s, JobStatus_s, Resource, TenantId
| join kind=inner
(
Events
| where OperationName == "ProtectedServer"
| where ProtectedServerFriendlyName_s != ""
| distinct ProtectedServerUniqueId_s, ProtectedServerFriendlyName_s
| project ProtectedServerUniqueId_s, ProtectedServerFriendlyName_s
)
on ProtectedServerUniqueId_s
| project ProtectedServerFriendlyName_s, JobStatus_s, Resource, TenantId
| extend Vault= Resource
| summarize count() by ProtectedServerFriendlyName_s, JobStatus_s, Vault, TenantId
ERROR MESSAGE:
2 Replies
- Vino55
Microsoft
hello isaac_B ,
It depends on the workloads protected using AzureBackup.
Protected Server table will not be present for subscriptions if it has ONLY DPM and AzureSQL.
I would suggest to look at the link for monitoring azure backup workloads. The link also has details about template which shows basic widgets on monitoring jobs, alerts, active backup items.https://docs.microsoft.com/en-us/azure/backup/backup-azure-monitoring-use-azuremonitor
Thanks.
- Meir_Mendelovich
Microsoft
Hi,
This error will occur for customers that haven't reported this kind of log in AzureDiagnostic in the past. This is a unique table in the sense that columns are created only upon getting such data.
For this reason and for other reasons, we are moving workloads off AzureDiagnostics. Backup will offer new dedicated tables soon.
Thanks,
Meir :->