Skip to content

Commit 9fc4420

Browse files
authored
Merge pull request #264709 from RoseHJM/mdb-add-logs
MDB - add new log information
2 parents 6c9d258 + 78ecb0a commit 9fc4420

File tree

4 files changed

+64
-35
lines changed

4 files changed

+64
-35
lines changed

articles/dev-box/.openpublishing.redirection.dev-box.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,16 @@
3434
"source_path_from_root": "/articles/dev-box/concept-common-components.md",
3535
"redirect_url": "/azure/dev-box/overview-what-is-microsoft-dev-box#components-shared-with-azure-deployment-environments",
3636
"redirect_document_id": false
37-
}
37+
},
38+
{
39+
"source_path_from_root": "/articles/dev-box/how-to-configure-dev-box-azure-diagnostic-logs.md",
40+
"redirect_url": "/azure/dev-box/monitor-dev-box",
41+
"redirect_document_id": false
42+
},
43+
{
44+
"source_path_from_root": "/articles/dev-box/monitor-reference.md",
45+
"redirect_url": "/azure/dev-box/monitor-dev-box-reference",
46+
"redirect_document_id": false
47+
}
3848
]
3949
}

articles/dev-box/monitor-reference.md renamed to articles/dev-box/monitor-dev-box-reference.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11
---
2-
title: Dev center (DevCenter) diagnostic logs reference
2+
title: Monitoring Microsoft Dev Box data reference
33
titleSuffix: Microsoft Dev Box
4-
description: Schema reference for dev center (DevCenter) diagnostic logs. Review the list of Azure Storage and Azure Monitor Logs properties included in monitoring data.
4+
description: Important reference material needed when you monitor Dev Box. Schema reference for dev center diagnostic logs. Review the included Azure Storage and Azure Monitor Logs properties.
55
services: dev-box
66
ms.service: dev-box
77
ms.topic: reference
88
author: delvissantos
99
ms.author: delvissantos
10-
ms.date: 01/17/2024
10+
ms.custom: horz-monitor, subject-monitoring
11+
ms.date: 01/30/2023
1112
---
1213

13-
# Microsoft dev center monitoring data reference
14+
# Monitoring Microsoft Dev Box data reference
1415

15-
This article provides a reference for log and metric data collected for a Microsoft Dev Box dev center. You can use the collected data to analyze the performance and availability of resources within your dev center. For details about how to collect and analyze monitoring data for your dev center, see [Configure Azure diagnostic logs for a dev center](how-to-configure-dev-box-azure-diagnostic-logs.md).
16+
This article provides a reference for log and metric data collected for a Microsoft Dev Box dev center. You can use the collected data to analyze the performance and availability of resources within your dev center. For details about how to collect and analyze monitoring data for your dev center, see [Monitoring Microsoft Dev Box](monitor-dev-box.md).
1617

1718
## Resource logs
1819

19-
The following table lists the properties of resource logs in a dev center. The resource logs are collected into Azure Monitor Logs or Azure Storage. In Azure Monitor, logs are collected in the **DevCenterDiagnosticLogs** table under the resource provider name of `MICROSOFT.DEVCENTER`.
20+
The following table lists the properties of resource logs in a Microsoft Dev Box dev center. The resource logs are collected into Azure Monitor Logs or Azure Storage. In Azure Monitor, logs are collected in the **DevCenterDiagnosticLogs** table under the resource provider name of `MICROSOFT.DEVCENTER`.
2021

2122
| Azure Storage field or property | Azure Monitor Logs property | Description |
2223
| --- | --- | --- |
@@ -37,5 +38,5 @@ A dev center uses Kusto tables from Azure Monitor Logs. You can query these tabl
3738

3839
## Related content
3940

40-
- [Configure Azure diagnostic logs for a dev center](how-to-configure-dev-box-azure-diagnostic-logs.md)
41+
- [Monitor Dev Box](monitor-dev-box.md)
4142
- [Monitor Azure resources with Azure Monitor](../azure-monitor/essentials/monitor-azure-resource.md)

articles/dev-box/how-to-configure-dev-box-azure-diagnostic-logs.md renamed to articles/dev-box/monitor-dev-box.md

Lines changed: 39 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,37 @@
11
---
2-
title: Configure Azure Diagnostic Logs
2+
title: Monitoring Microsoft Dev Box
33
titleSuffix: Microsoft Dev Box
4-
description: Learn how to use Azure diagnostic logs to see an audit history for your dev center.
4+
description: Start here to learn how to monitor Dev Box. Learn how to use Azure diagnostic logs to see an audit history for your dev center.
55
services: dev-box
66
ms.service: dev-box
77
ms.topic: how-to
88
author: delvissantos
99
ms.author: delvissantos
10-
ms.date: 04/28/2023
10+
ms.custom: horz-monitor, subject-monitoring
11+
ms.date: 01/30/2023
1112
---
1213

13-
# Configure Azure diagnostic logs for a dev center
14+
# Monitoring Microsoft Dev Box
15+
16+
When you have critical applications and business processes relying on Azure resources, you want to monitor those resources for their availability, performance, and operation.
17+
18+
This article describes the monitoring data generated by Microsoft Dev Box. Microsoft Dev Box uses [Azure Monitor](/azure/azure-monitor/overview). If you're unfamiliar with the features of Azure Monitor common to all Azure services that use it, read [Monitoring Azure resources with Azure Monitor](/azure/azure-monitor/essentials/monitor-azure-resource).
19+
20+
## Monitoring data
21+
22+
Microsoft Dev Box collects the same kinds of monitoring data as other Azure resources that are described in [Monitoring data from Azure resources](/azure/azure-monitor/essentials/monitor-azure-resource#monitoring-data-from-Azure-resources).
23+
24+
See [Monitoring *Dev Box* data reference](monitor-dev-box-reference.md) for detailed information on the metrics and logs metrics created by Dev Box.
25+
26+
## Collection and routing
27+
28+
Platform metrics and the Activity log are collected and stored automatically, but can be routed to other locations by using a diagnostic setting.
29+
30+
Resource Logs aren't collected and stored until you create a diagnostic setting and route them to one or more locations.
31+
32+
See [Create diagnostic setting to collect platform logs and metrics in Azure](/azure/azure-monitor/platform/diagnostic-settings) for the detailed process for creating a diagnostic setting using the Azure portal, CLI, or PowerShell. When you create a diagnostic setting, you specify which categories of logs to collect. The categories for *Dev box* are listed in [Microsoft Dev Box monitoring data reference](monitor-dev-box-reference.md#resource-logs).
33+
34+
### Configure Azure diagnostic logs for a dev center
1435

1536
With Azure diagnostic logs for DevCenter, you can view audit logs for dataplane operations in your dev center. These logs can be routed to any of the following destinations:
1637

@@ -26,11 +47,7 @@ Diagnostics logs allow you to export basic usage information from your dev cente
2647

2748
To learn more about the different types of logs available for dev centers, see [DevCenter Diagnostic Logs Reference](monitor-reference.md).
2849

29-
## Prerequisites
30-
31-
A dev center.
32-
33-
## Enable logging with the Azure portal
50+
### Enable logging with the Azure portal
3451

3552
Follow these steps enable logging for your Azure DevCenter resource:
3653

@@ -43,7 +60,7 @@ Follow these steps enable logging for your Azure DevCenter resource:
4360
4. Select **Add diagnostic setting** in the open page.
4461

4562

46-
### Enable logging with Azure Storage
63+
#### Enable logging with Azure Storage
4764

4865
To use a storage account to store the logs, follow these steps:
4966

@@ -60,7 +77,7 @@ To use a storage account to store the logs, follow these steps:
6077

6178
3. Select **Save**.
6279

63-
### Send to Log Analytics
80+
#### Send to Log Analytics
6481

6582
To use Log Analytics for the logs, follow these steps:
6683

@@ -75,13 +92,13 @@ To use Log Analytics for the logs, follow these steps:
7592

7693
4. Select **Save**.
7794

78-
## Enable logging with PowerShell
95+
### Enable logging with PowerShell
7996

8097
The following example shows how to enable diagnostic logs via the Azure PowerShell Cmdlets.
8198

8299
[!INCLUDE [updated-for-az](../../includes/updated-for-az.md)]
83100

84-
### Enable diagnostic logs in a storage account
101+
#### Enable diagnostic logs in a storage account
85102

86103
1. Sign in to Azure PowerShell:
87104

@@ -102,7 +119,7 @@ The following example shows how to enable diagnostic logs via the Azure PowerShe
102119
New-AzDiagnosticSetting -Name $diagname -ResourceId $devcenterid -StorageAccountId $storageacctid -Log $log
103120
```
104121
105-
### Enable diagnostics logs for Log Analytics workspace
122+
#### Enable diagnostics logs for Log Analytics workspace
106123
107124
1. Sign in to Azure PowerShell:
108125
@@ -132,9 +149,10 @@ DevCenter stores data in the following tables.
132149
| Table | Description |
133150
|:---|:---|
134151
| DevCenterDiagnosticLogs | Table used to store dataplane request/response information on dev box or environments within the dev center. |
152+
| DevCenterResourceOperationLogs | Operation logs pertaining to DevCenter resources, including information around resource health status changes. |
153+
| DevCenterBillingEventLogs | Billing event related to DevCenter resources. This log contains information about the quantity and unit charged per meter. |
135154
136-
137-
### Sample Kusto Queries
155+
## Sample Kusto Queries
138156
After enabling diagnostic settings on your dev center, you should be able to view audit logs for the tables within a log analytics workspace.
139157
140158
Here are some queries that you can enter into Log search to help your monitor your dev boxes.
@@ -162,10 +180,9 @@ DevCenterDiagnosticLogs
162180

163181
These examples are just a small sample of the rich queries that can be performed in Monitor using the Kusto Query Language. For more information, see [samples for Kusto queries](/azure/data-explorer/kusto/query/samples?pivots=azuremonitor).
164182

165-
## Next steps
166-
167-
To learn more about Azure logs, see the following articles:
183+
## Related content
168184

169-
* [Azure Diagnostic logs](../azure-monitor/essentials/platform-logs-overview.md)
170-
* [Azure Monitor logs](../azure-monitor/logs/log-query-overview.md)
171-
* [Azure Log Analytics REST API](/rest/api/loganalytics)
185+
- [Monitor Dev Box](monitor-dev-box.md)
186+
- [Azure Diagnostic logs](../azure-monitor/essentials/platform-logs-overview.md)
187+
- [Azure Monitor logs](../azure-monitor/logs/log-query-overview.md)
188+
- [Azure Log Analytics REST API](/rest/api/loganalytics)

articles/dev-box/toc.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ items:
3838
- name: Manage a dev box pool
3939
href: how-to-manage-dev-box-pools.md
4040
- name: Limit number of dev boxes per project
41-
href: tutorial-dev-box-limits.md
42-
41+
href: tutorial-dev-box-limits.md
4342
- name: Configure Visual Studio caches
4443
href: how-to-generate-visual-studio-caches.md
45-
- name: Configure Azure Diagnostic Logs
46-
href: how-to-configure-dev-box-azure-diagnostic-logs.md
44+
- name: Monitor Dev Box
45+
displayName: diagnostic, logs
46+
href: monitor-dev-box.md
4747
- name: Prepare images
4848
items:
4949
- name: Configure an Azure compute gallery
@@ -91,7 +91,8 @@ items:
9191
- name: REST API
9292
href: /rest/api/devcenter/
9393
- name: Monitoring Microsoft DevCenter data reference
94-
href: monitor-reference.md
94+
displayName: diagnostic, logs
95+
href: monitor-dev-box-reference.md
9596
- name: Resources
9697
items:
9798
- name: Azure roadmap

0 commit comments

Comments
 (0)