Skip to content

Commit 8662586

Browse files
authored
Update monitor-nat-gateway.md
Deleted "[Create a diagnostic setting](/azure/azure-monitor/essentials/create-diagnostic-settings) to collect and route resource log data" portion as we can confirm that diagnostics setting isn't supported for NATGateway (For both Portal and Powershell. Please see below notes.) Tried in Portal, ARM Templates, PowerShell ◇Portal -> Cannot select NATGateway from the dropdown ◇PowerShell Create diagnostic settings in Azure Monitor https://learn.microsoft.com/en-us/azure/azure-monitor/essentials/create-diagnostic-settings?tabs=powershell ◇ARM template { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { "scope": { "type": "string" }, "workspaceId": { "type": "string" }, "settingName": { "type": "string" } }, "resources": [ { "type": "Microsoft.Insights/diagnosticSettings", "apiVersion": "2021-05-01-preview", "scope": "[parameters('scope')]", "name": "[parameters('settingName')]", "properties": { "workspaceId": "[parameters('workspaceId')]", "logs": [ { "category": null, "categoryGroup": "audit", "enabled": true } ] } } ] } { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#", "contentVersion": "1.0.0.0", "parameters": { "settingName": { "value": "audit3" }, "workspaceId": { "value": "/XXXXXXXX/resourceGroups/LogAnalyticsWorkspace/providers/Microsoft.OperationalInsights/workspaces/LAWSTest01EUS" }, "scope": { "value": "/subscriptions/XXXXXXXX/resourceGroups/NATGW/providers/Microsoft.Network/natGateways/NATGW" } } } The resource type 'microsoft.network/natgateways' does not support diagnostic settings => NATGW does not support Diagnostics settings ◇PowerShell $NATGW = Get-AzNatGateway -ResourceGroupName "NATGW" -Name "NATGW" $Law = Get-AzOperationalInsightsWorkspace -ResourceGroupName "loganalyticsworkspace" -Name "LAWSTest01EUS" $metric = New-AzDiagnosticSettingMetricSettingsObject -Enabled $true -Category AllMetrics # For all available logs, use: $log = New-AzDiagnosticSettingLogSettingsObject -Enabled $true -CategoryGroup allLogs # or, for audit logs, use: $log = New-AzDiagnosticSettingLogSettingsObject -Enabled $true -CategoryGroup audit New-AzDiagnosticSetting -Name 'NATGW-Diagnostics' -ResourceId "/subscriptions/XXXXXXXX/resourceGroups/NATGW/providers/Microsoft.Network/natGateways/NATGW" -WorkspaceId $Law.ResourceId -Log $log -Metric $metric -Verbose => NATGW does not support Diagnostics settings
1 parent 7410cb3 commit 8662586

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/nat-gateway/monitor-nat-gateway.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ This table describes how you can collect data to monitor your service, and what
2020
|Data to collect|Description|How to collect and route the data|Where to view the data|Supported data|
2121
|---------|---------|---------|---------|---------|
2222
|Metric data|Metrics are numerical values that describe an aspect of a system at a particular point in time. Metrics can be aggregated using algorithms, compared to other metrics, and analyzed for trends over time.|[- Collected automatically at regular intervals.</br> - You can route some platform metrics to a Log Analytics workspace to query with other data. Check the **DS export** setting for each metric to see if you can use a diagnostic setting to route the metric data.]|[Metrics explorer](/azure/azure-monitor/essentials/metrics-getting-started)| [Azure NAT Gateway metrics supported by Azure Monitor](/azure/nat-gateway/monitor-nat-gateway-reference#metrics)|
23-
|Resource log data|Logs are recorded system events with a timestamp. Logs can contain different types of data, and be structured or free-form text. You can route resource log data to Log Analytics workspaces for querying and analysis.|[Create a diagnostic setting](/azure/azure-monitor/essentials/create-diagnostic-settings) to collect and route resource log data.| [Log Analytics](/azure/azure-monitor/learn/quick-create-workspace)|[Azure NAT Gateway resource log data supported by Azure Monitor](/azure/nat-gateway/monitor-nat-gateway-reference#activity-log) |
23+
|Resource log data|Logs are recorded system events with a timestamp. Logs can contain different types of data, and be structured or free-form text. You can route resource log data to Log Analytics workspaces for querying and analysis.|| [Log Analytics](/azure/azure-monitor/learn/quick-create-workspace)|[Azure NAT Gateway resource log data supported by Azure Monitor](/azure/nat-gateway/monitor-nat-gateway-reference#activity-log) |
2424
|Activity log data|The Azure Monitor activity log provides insight into subscription-level events. The activity log includes information like when a resource is modified or a virtual machine is started.|- Collected automatically.</br> - [Create a diagnostic setting](/azure/azure-monitor/essentials/create-diagnostic-settings) to a Log Analytics workspace at no charge.|[Activity log](/azure/azure-monitor/essentials/activity-log)| |
2525

2626
[!INCLUDE [azmon-horz-supported-data](~/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/azmon-horz-supported-data.md)]
@@ -46,4 +46,4 @@ For more information on NAT Gateway Insights, see [Network Insights](nat-metrics
4646
## Related content
4747

4848
- See [Azure NAT Gateway monitoring data reference](monitor-nat-gateway-reference.md) for a reference of the metrics, logs, and other important values created for Azure NAT Gateway.
49-
- See [Monitoring Azure resources with Azure Monitor](/azure/azure-monitor/essentials/monitor-azure-resource) for general details on monitoring Azure resources.
49+
- See [Monitoring Azure resources with Azure Monitor](/azure/azure-monitor/essentials/monitor-azure-resource) for general details on monitoring Azure resources.

0 commit comments

Comments
 (0)