Skip to content

Commit 8617f11

Browse files
authored
Merge pull request #109499 from MGoedtel/task1701461
updated JSON template
2 parents b71044a + b3ad2ed commit 8617f11

File tree

2 files changed

+96
-95
lines changed

2 files changed

+96
-95
lines changed

articles/automation/automation-update-management-deploy-template.md

Lines changed: 83 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.subservice: update-management
66
ms.topic: conceptual
77
author: mgoedtel
88
ms.author: magoedte
9-
ms.date: 02/27/2020
9+
ms.date: 03/30/2020
1010

1111
---
1212

@@ -52,6 +52,7 @@ The following parameters in the template are set with a default value for the Lo
5252

5353
* sku - defaults to the new Per-GB pricing tier released in the April 2018 pricing model
5454
* data retention - defaults to thirty days
55+
* capacity reservation - defaults to 100 GB
5556

5657
>[!WARNING]
5758
>If creating or configuring a Log Analytics workspace in a subscription that has opted into the new April 2018 pricing model, the only valid Log Analytics pricing tier is **PerGB2018**.
@@ -67,89 +68,89 @@ The following parameters in the template are set with a default value for the Lo
6768
```json
6869
{
6970
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
70-
"contentVersion": "1.0.0.0",
71-
"parameters": {
72-
"workspaceName": {
73-
"type": "string",
74-
"metadata": {
75-
"description": "Workspace name"
76-
}
77-
},
78-
"pricingTier": {
79-
"type": "string",
80-
"allowedValues": [
81-
"pergb2018",
82-
"Free",
83-
"Standalone",
84-
"PerNode",
85-
"Standard",
86-
"Premium"
87-
],
88-
"defaultValue": "pergb2018",
89-
"metadata": {
90-
"description": "Pricing tier: perGB2018 or legacy tiers (Free, Standalone, PerNode, Standard or Premium) which are not available to all customers."
91-
}
92-
},
93-
"dataRetention": {
94-
"type": "int",
95-
"defaultValue": 30,
96-
"minValue": 7,
97-
"maxValue": 730,
98-
"metadata": {
99-
"description": "Number of days of retention. Workspaces in the legacy Free pricing tier can only have 7 days."
100-
}
101-
},
102-
"immediatePurgeDataOn30Days": {
103-
"type": "bool",
104-
"defaultValue": "[bool('false')]",
105-
"metadata": {
106-
"description": "If set to true when changing retention to 30 days, older data will be immediately deleted. Use this with extreme caution. This only applies when retention is being set to 30 days."
107-
}
108-
},
109-
"location": {
110-
"type": "string",
111-
"allowedValues": [
112-
"australiacentral",
113-
"australiaeast",
114-
"australiasoutheast",
115-
"brazilsouth",
116-
"canadacentral",
117-
"centralindia",
118-
"centralus",
119-
"eastasia",
120-
"eastus",
121-
"eastus2",
122-
"francecentral",
123-
"japaneast",
124-
"koreacentral",
125-
"northcentralus",
126-
"northeurope",
127-
"southafricanorth",
128-
"southcentralus",
129-
"southeastasia",
130-
"uksouth",
131-
"ukwest",
132-
"westcentralus",
133-
"westeurope",
134-
"westus",
135-
"westus2"
136-
],
137-
"metadata": {
138-
"description": "Specifies the location in which to create the workspace."
139-
}
140-
},
71+
"contentVersion": "1.0.0.0",
72+
"parameters": {
73+
"workspaceName": {
74+
"type": "string",
75+
"metadata": {
76+
"description": "Workspace name"
77+
}
78+
},
79+
"sku": {
80+
"type": "string",
81+
"allowedValues": [
82+
"pergb2018",
83+
"Free",
84+
"Standalone",
85+
"PerNode",
86+
"Standard",
87+
"Premium"
88+
],
89+
"defaultValue": "pergb2018",
90+
"metadata": {
91+
"description": "Pricing tier: perGB2018 or legacy tiers (Free, Standalone, PerNode, Standard or Premium) which are not available to all customers."
92+
}
93+
},
94+
"dataRetention": {
95+
"type": "int",
96+
"defaultValue": 30,
97+
"minValue": 7,
98+
"maxValue": 730,
99+
"metadata": {
100+
"description": "Number of days of retention. Workspaces in the legacy Free pricing tier can only have 7 days."
101+
}
102+
},
103+
"immediatePurgeDataOn30Days": {
104+
"type": "bool",
105+
"defaultValue": "[bool('false')]",
106+
"metadata": {
107+
"description": "If set to true when changing retention to 30 days, older data will be immediately deleted. Use this with extreme caution. This only applies when retention is being set to 30 days."
108+
}
109+
},
110+
"location": {
111+
"type": "string",
112+
"allowedValues": [
113+
"australiacentral",
114+
"australiaeast",
115+
"australiasoutheast",
116+
"brazilsouth",
117+
"canadacentral",
118+
"centralindia",
119+
"centralus",
120+
"eastasia",
121+
"eastus",
122+
"eastus2",
123+
"francecentral",
124+
"japaneast",
125+
"koreacentral",
126+
"northcentralus",
127+
"northeurope",
128+
"southafricanorth",
129+
"southcentralus",
130+
"southeastasia",
131+
"uksouth",
132+
"ukwest",
133+
"westcentralus",
134+
"westeurope",
135+
"westus",
136+
"westus2"
137+
],
138+
"metadata": {
139+
"description": "Specifies the location in which to create the workspace."
140+
}
141+
},
141142
"automationAccountName": {
142143
"type": "string",
143144
"metadata": {
144145
"description": "Automation account name"
145146
}
146147
},
147-
"automationAccountLocation": {
148-
"type": "string",
149-
"metadata": {
150-
"description": "Specify the location in which to create the Automation account."
151-
}
152-
}
148+
"automationAccountLocation": {
149+
"type": "string",
150+
"metadata": {
151+
"description": "Specify the location in which to create the Automation account."
152+
}
153+
}
153154
},
154155
"variables": {
155156
"Updates": {
@@ -164,7 +165,8 @@ The following parameters in the template are set with a default value for the Lo
164165
"apiVersion": "2017-03-15-preview",
165166
"location": "[parameters('location')]",
166167
"properties": {
167-
"sku": {
168+
"sku": {
169+
"Name": "[parameters('sku')]",
168170
"name": "CapacityReservation",
169171
"capacityReservationLevel": 100
170172
},
@@ -209,7 +211,7 @@ The following parameters in the template are set with a default value for the Lo
209211
"name": "Basic"
210212
}
211213
},
212-
},
214+
},
213215
{
214216
"apiVersion": "2015-11-01-preview",
215217
"type": "Microsoft.OperationalInsights/workspaces/linkedServices",
@@ -227,7 +229,7 @@ The following parameters in the template are set with a default value for the Lo
227229
}
228230
```
229231

230-
2. Edit the template to meet your requirements.
232+
2. Edit the template to meet your requirements. Consider creating a [Resource Manager parameters file](../azure-resource-manager/templates/parameter-files.md) instead of passing parameters as inline values.
231233

232234
3. Save this file as deployUMSolutiontemplate.json to a local folder.
233235

articles/azure-monitor/platform/template-workspace-configuration.md

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ For capacity reservation, you define a selected capacity reservation for ingesti
7171
"description": "Specifies the name of the workspace."
7272
}
7373
},
74-
"pricingTier": {
74+
"sku": {
7575
"type": "string",
7676
"allowedValues": [
7777
"pergb2018",
@@ -127,7 +127,7 @@ For capacity reservation, you define a selected capacity reservation for ingesti
127127
"location": "[parameters('location')]",
128128
"properties": {
129129
"sku": {
130-
"name": "[parameters('pricingTier')]"
130+
"name": "[parameters('sku')]"
131131
},
132132
"retentionInDays": 120,
133133
"features": {
@@ -141,16 +141,15 @@ For capacity reservation, you define a selected capacity reservation for ingesti
141141
}
142142
```
143143

144-
> [Information]
145-
> for capacity reservation settings, use these properties under "sku":
144+
>[!NOTE]
145+
>For capacity reservation settings, use these properties under "sku":
146+
>* "name": "CapacityReservation",
147+
>* "capacityReservationLevel": 100
146148

147-
> "name": "CapacityReservation",
149+
2. Edit the template to meet your requirements. Consider creating a [Resource Manager parameters file](../../azure-resource-manager/templates/parameter-files.md) instead of passing parameters as inline values. Review [Microsoft.OperationalInsights/workspaces template](https://docs.microsoft.com/azure/templates/microsoft.operationalinsights/workspaces) reference to learn what properties and values are supported.
148150

149-
> "capacityReservationLevel": 100
150-
151-
152-
2. Edit the template to meet your requirements. Review [Microsoft.OperationalInsights/workspaces template](https://docs.microsoft.com/azure/templates/microsoft.operationalinsights/workspaces) reference to learn what properties and values are supported.
153151
3. Save this file as **deploylaworkspacetemplate.json** to a local folder.
152+
154153
4. You are ready to deploy this template. You use either PowerShell or the command line to create the workspace, specifying the workspace name and location as part of the command. The workspace name must be globally unique across all Azure subscriptions.
155154

156155
* For PowerShell use the following commands from the folder containing the template:
@@ -173,7 +172,7 @@ The deployment can take a few minutes to complete. When it finishes, you see a m
173172
The following template sample illustrates how to:
174173

175174
1. Add solutions to the workspace
176-
2. Create saved searches. To ensure that deployments don't override saved searches accidently, an eTag property should be added in the "savedSearches" resource to override and maintain the idempotency of saved searches.
175+
2. Create saved searches. To ensure that deployments don't override saved searches accidentally, an eTag property should be added in the "savedSearches" resource to override and maintain the idempotency of saved searches.
177176
3. Create a computer group
178177
4. Enable collection of IIS logs from computers with the Windows agent installed
179178
5. Collect Logical Disk perf counters from Linux computers (% Used Inodes; Free Megabytes; % Used Space; Disk Transfers/sec; Disk Reads/sec; Disk Writes/sec)
@@ -194,7 +193,7 @@ The following template sample illustrates how to:
194193
"description": "Workspace name"
195194
}
196195
},
197-
"pricingTier": {
196+
"sku": {
198197
"type": "string",
199198
"allowedValues": [
200199
"PerGB2018",
@@ -274,7 +273,7 @@ The following template sample illustrates how to:
274273
"metadata": {
275274
"description": "The custom log name"
276275
}
277-
}
276+
}
278277
},
279278
"variables": {
280279
"Updates": {
@@ -303,7 +302,7 @@ The following template sample illustrates how to:
303302
"immediatePurgeDataOn30Days": "[parameters('immediatePurgeDataOn30Days')]"
304303
},
305304
"sku": {
306-
"name": "[parameters('pricingTier')]"
305+
"name": "[parameters('sku')]"
307306
}
308307
},
309308
"resources": [
@@ -602,7 +601,7 @@ The following template sample illustrates how to:
602601
"type": "string",
603602
"value": "[reference(resourceId('Microsoft.OperationalInsights/workspaces', parameters('workspaceName')), '2015-11-01-preview').customerId]"
604603
},
605-
"pricingTier": {
604+
"sku": {
606605
"type": "string",
607606
"value": "[reference(resourceId('Microsoft.OperationalInsights/workspaces', parameters('workspaceName')), '2015-11-01-preview').sku.name]"
608607
},

0 commit comments

Comments
 (0)