Skip to content

Commit fa692ca

Browse files
committed
Fixes
1 parent deee55a commit fa692ca

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

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

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -54,24 +54,28 @@ Open the **azuredeploy.json** file.
5454
Add a variable to hold the storage account information in the Resource Manager template. Any logs or performance counters specified in the diagnostics config file are written to both the Azure Monitor metric store and the storage account you specify here:
5555

5656
```json
57-
"variables": {
58-
//add this line
59-
"storageAccountName": "[concat('storage', uniqueString(resourceGroup().id))]",
57+
"variables": {
58+
//add this line
59+
"storageAccountName": "[concat('storage', uniqueString(resourceGroup().id))]",
60+
...
61+
}
6062
```
6163

6264
Find the virtual machine scale set definition in the resources section and add the **identity** section to the configuration. This addition ensures that Azure assigns it a system identity. This step also ensures that the VMs in the scale set can emit guest metrics about themselves to Azure Monitor:
6365

6466
```json
65-
{
66-
"type": "Microsoft.Compute/virtualMachineScaleSets",
67-
"name": "[variables('namingInfix')]",
68-
"location": "[resourceGroup().location]",
69-
"apiVersion": "2017-03-30",
70-
//add these lines below
71-
"identity": {
72-
"type": "systemAssigned"
73-
},
74-
//end of lines to add
67+
{
68+
"type": "Microsoft.Compute/virtualMachineScaleSets",
69+
"name": "[variables('namingInfix')]",
70+
"location": "[resourceGroup().location]",
71+
"apiVersion": "2017-03-30",
72+
//add these lines below
73+
"identity": {
74+
"type": "systemAssigned"
75+
},
76+
//end of lines to add
77+
...
78+
}
7579
```
7680

7781
In the virtual machine scale set resource, find the **virtualMachineProfile** section. Add a new profile called **extensionsProfile** to manage extensions.

0 commit comments

Comments
 (0)