Skip to content

Commit 0933986

Browse files
authored
Removing unused TimeGrain variable from example (Azure#15062)
You do not need the $TimeGrain entry in the Example 1 code block, as its not used anywhere.
1 parent 1e54bbe commit 0933986

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/Monitor/Monitor/help/New-AzDiagnosticSetting.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ for
3838

3939
### Example 1
4040
```powershell
41-
$TimeGrain=New-TimeSpan -Days 90
4241
$metric = New-AzDiagnosticDetailSetting -Metric -RetentionInDays 1 -RetentionEnabled -Category AllMetrics
4342
$log = New-AzDiagnosticDetailSetting -Log -RetentionInDays 1 -RetentionEnabled -Category Audit -Enabled
4443
$setting = New-AzDiagnosticSetting -TargetResourceId /subscriptions/XXXXXXXXXXXX/resourceGroups/XXXXXXXX/providers/Microsoft.Network/virtualNetworks/XXXXXXXX -Name diagnostic-test -WorkspaceId /subscriptions/XXXXXXXXXXXX/resourceGroups/XXXXXXXX/providers/Microsoft.OperationalInsights/workspaces/XXXXXXXXX -DedicatedLogAnalyticsDestinationType -Setting $log,$metric

0 commit comments

Comments
 (0)