Skip to content

Commit deee55a

Browse files
committed
Fix formatting
1 parent d3daad3 commit deee55a

File tree

1 file changed

+102
-105
lines changed

1 file changed

+102
-105
lines changed

articles/azure-monitor/essentials/collect-custom-metrics-guestos-resource-manager-vmss.md

Lines changed: 102 additions & 105 deletions
Original file line numberDiff line numberDiff line change
@@ -82,112 +82,109 @@ In the **extensionProfile**, add a new extension to the template as shown in the
8282
The following code from the MSI extension also adds the diagnostics extension and configuration as an extension resource to the virtual machine scale set resource. Feel free to add or remove performance counters as needed:
8383

8484
```json
85-
"extensionProfile": {
86-
"extensions": [
87-
// BEGINNING of added code
88-
// Managed identities for Azure resources
89-
{
90-
"name": "VMSS-WAD-extension",
91-
"properties": {
92-
"publisher": "Microsoft.ManagedIdentity",
93-
"type": "ManagedIdentityExtensionForWindows",
94-
"typeHandlerVersion": "1.0",
95-
"autoUpgradeMinorVersion": true,
96-
"settings": {
97-
"port": 50342
98-
},
99-
"protectedSettings": {}
100-
}
101-
102-
},
103-
// add diagnostic extension. (Remove this comment after pasting.)
104-
{
105-
"name": "[concat('VMDiagnosticsVmExt','_vmNodeType0Name')]",
106-
"properties": {
107-
"type": "IaaSDiagnostics",
108-
"autoUpgradeMinorVersion": true,
109-
"protectedSettings": {
110-
"storageAccountName": "[variables('storageAccountName')]",
111-
"storageAccountKey": "[listKeys(resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName')),'2015-05-01-preview').key1]",
112-
"storageAccountEndPoint": "https://core.windows.net/"
113-
},
114-
"publisher": "Microsoft.Azure.Diagnostics",
115-
"settings": {
116-
"WadCfg": {
117-
"DiagnosticMonitorConfiguration": {
118-
"overallQuotaInMB": "50000",
119-
"PerformanceCounters": {
120-
"scheduledTransferPeriod": "PT1M",
121-
"sinks": "AzMonSink",
122-
"PerformanceCounterConfiguration": [
123-
{
124-
"counterSpecifier": "\\Memory\\% Committed Bytes In Use",
125-
"sampleRate": "PT15S"
126-
},
127-
{
128-
"counterSpecifier": "\\Memory\\Available Bytes",
129-
"sampleRate": "PT15S"
130-
},
131-
{
132-
"counterSpecifier": "\\Memory\\Committed Bytes",
133-
"sampleRate": "PT15S"
134-
}
135-
]
136-
},
137-
"EtwProviders": {
138-
"EtwEventSourceProviderConfiguration": [
139-
{
140-
"provider": "Microsoft-ServiceFabric-Actors",
141-
"scheduledTransferKeywordFilter": "1",
142-
"scheduledTransferPeriod": "PT5M",
143-
"DefaultEvents": {
144-
"eventDestination": "ServiceFabricReliableActorEventTable"
145-
}
146-
},
147-
{
148-
"provider": "Microsoft-ServiceFabric-Services",
149-
"scheduledTransferPeriod": "PT5M",
150-
"DefaultEvents": {
151-
"eventDestination": "ServiceFabricReliableServiceEventTable"
152-
}
153-
}
154-
],
155-
"EtwManifestProviderConfiguration": [
156-
{
157-
"provider": "cbd93bc2-71e5-4566-b3a7-595d8eeca6e8",
158-
"scheduledTransferLogLevelFilter": "Information",
159-
"scheduledTransferKeywordFilter": "4611686018427387904",
160-
"scheduledTransferPeriod": "PT5M",
161-
"DefaultEvents": {
162-
"eventDestination": "ServiceFabricSystemEventTable"
163-
}
164-
}
165-
]
166-
}
167-
},
168-
"SinksConfig": {
169-
"Sink": [
170-
{
171-
"name": "AzMonSink",
172-
"AzureMonitor": {}
173-
}
174-
]
175-
}
176-
},
177-
"StorageAccount": "[variables('storageAccountName')]"
178-
},
179-
"typeHandlerVersion": "1.11"
180-
}
181-
}
182-
]
183-
}
184-
}
85+
"extensionProfile": {
86+
"extensions": [
87+
// BEGINNING of added code
88+
// Managed identities for Azure resources
89+
{
90+
"name": "VMSS-WAD-extension",
91+
"properties": {
92+
"publisher": "Microsoft.ManagedIdentity",
93+
"type": "ManagedIdentityExtensionForWindows",
94+
"typeHandlerVersion": "1.0",
95+
"autoUpgradeMinorVersion": true,
96+
"settings": {
97+
"port": 50342
98+
},
99+
"protectedSettings": {}
100+
}
101+
},
102+
// add diagnostic extension. (Remove this comment after pasting.)
103+
{
104+
"name": "[concat('VMDiagnosticsVmExt','_vmNodeType0Name')]",
105+
"properties": {
106+
"type": "IaaSDiagnostics",
107+
"autoUpgradeMinorVersion": true,
108+
"protectedSettings": {
109+
"storageAccountName": "[variables('storageAccountName')]",
110+
"storageAccountKey": "[listKeys(resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName')),'2015-05-01-preview').key1]",
111+
"storageAccountEndPoint": "https://core.windows.net/"
112+
},
113+
"publisher": "Microsoft.Azure.Diagnostics",
114+
"settings": {
115+
"WadCfg": {
116+
"DiagnosticMonitorConfiguration": {
117+
"overallQuotaInMB": "50000",
118+
"PerformanceCounters": {
119+
"scheduledTransferPeriod": "PT1M",
120+
"sinks": "AzMonSink",
121+
"PerformanceCounterConfiguration": [
122+
{
123+
"counterSpecifier": "\\Memory\\% Committed Bytes In Use",
124+
"sampleRate": "PT15S"
125+
},
126+
{
127+
"counterSpecifier": "\\Memory\\Available Bytes",
128+
"sampleRate": "PT15S"
129+
},
130+
{
131+
"counterSpecifier": "\\Memory\\Committed Bytes",
132+
"sampleRate": "PT15S"
133+
}
134+
]
135+
},
136+
"EtwProviders": {
137+
"EtwEventSourceProviderConfiguration": [
138+
{
139+
"provider": "Microsoft-ServiceFabric-Actors",
140+
"scheduledTransferKeywordFilter": "1",
141+
"scheduledTransferPeriod": "PT5M",
142+
"DefaultEvents": {
143+
"eventDestination": "ServiceFabricReliableActorEventTable"
144+
}
145+
},
146+
{
147+
"provider": "Microsoft-ServiceFabric-Services",
148+
"scheduledTransferPeriod": "PT5M",
149+
"DefaultEvents": {
150+
"eventDestination": "ServiceFabricReliableServiceEventTable"
151+
}
152+
}
153+
],
154+
"EtwManifestProviderConfiguration": [
155+
{
156+
"provider": "cbd93bc2-71e5-4566-b3a7-595d8eeca6e8",
157+
"scheduledTransferLogLevelFilter": "Information",
158+
"scheduledTransferKeywordFilter": "4611686018427387904",
159+
"scheduledTransferPeriod": "PT5M",
160+
"DefaultEvents": {
161+
"eventDestination": "ServiceFabricSystemEventTable"
162+
}
163+
}
164+
]
165+
}
166+
},
167+
"SinksConfig": {
168+
"Sink": [
169+
{
170+
"name": "AzMonSink",
171+
"AzureMonitor": {}
172+
}
173+
]
174+
}
175+
},
176+
"StorageAccount": "[variables('storageAccountName')]"
177+
},
178+
"typeHandlerVersion": "1.11"
179+
}
185180
}
186-
},
187-
//end of added code plus a few brackets. Be sure that the number and type of brackets match properly when done.
188-
{
189-
"type": "Microsoft.Insights/autoscaleSettings",
190-
...
181+
]
182+
},
183+
// end of added code. Be sure that the number and type of brackets match properly when done.
184+
{
185+
"type": "Microsoft.Insights/autoscaleSettings",
186+
...
187+
}
191188
```
192189

193190
Add a **dependsOn** for the storage account to ensure it's created in the correct order:

0 commit comments

Comments
 (0)