Skip to content

Commit 0f1db2a

Browse files
Merge pull request #218670 from themar-msft/themar-chaos-samples
Updates chaos samples based on feedback
2 parents 8da21b7 + 1d42b60 commit 0f1db2a

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

articles/chaos-studio/sample-template-experiment.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ In this sample, we create a chaos experiment with a single target resource and a
5050
{
5151
"type": "Microsoft.Chaos/experiments",
5252
"apiVersion": "2021-09-15-preview",
53-
"name": "parameters('experimentName')",
54-
"location": "parameters('location')",
53+
"name": "[parameters('experimentName')]",
54+
"location": "[parameters('location')]",
5555
"identity": {
5656
"type": "SystemAssigned"
5757
},
@@ -68,7 +68,7 @@ In this sample, we create a chaos experiment with a single target resource and a
6868
"targets": [
6969
{
7070
"type": "ChaosTarget",
71-
"id": "parameters('chaosTargetResourceId')"
71+
"id": "[parameters('chaosTargetResourceId')]"
7272
}
7373
]
7474
}

articles/chaos-studio/sample-template-targets.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ In this sample, we onboard an Azure Cosmos DB instance using [targets and capabi
5858
"name": "[concat(parameters('resourceName'), '/', 'Microsoft.Chaos/Microsoft-CosmosDB/Failover-1.0')]",
5959
"location": "[parameters('location')]",
6060
"dependsOn": [
61-
"[concat(resourceId('Microsoft.DocumentDB/databaseAccounts', parameters('resourceName'), parameters('resourceGroup')), '/', 'providers/Microsoft.Chaos/targets/Microsoft-CosmosDB')]"
61+
"[concat(resourceId('Microsoft.DocumentDB/databaseAccounts', parameters('resourceName')), '/', 'providers/Microsoft.Chaos/targets/Microsoft-CosmosDB')]"
6262
],
6363
"properties": {}
6464
}
@@ -130,7 +130,7 @@ In this sample, we onboard an Azure Kubernetes Service cluster using [targets an
130130
"name": "[concat(parameters('resourceName'), '/', 'Microsoft.Chaos/Microsoft-AzureKubernetesServiceChaosMesh/NetworkChaos-2.1')]",
131131
"location": "[parameters('location')]",
132132
"dependsOn": [
133-
"[concat(resourceId('Microsoft.ContainerService/managedClusters', parameters('resourceName'), parameters('resourceGroup')), '/', 'providers/Microsoft.Chaos/targets/Microsoft-AzureKubernetesServiceChaosMesh')]"
133+
"[concat(resourceId('Microsoft.ContainerService/managedClusters', parameters('resourceName')), '/', 'providers/Microsoft.Chaos/targets/Microsoft-AzureKubernetesServiceChaosMesh')]"
134134
],
135135
"properties": {}
136136
},
@@ -140,7 +140,7 @@ In this sample, we onboard an Azure Kubernetes Service cluster using [targets an
140140
"name": "[concat(parameters('resourceName'), '/', 'Microsoft.Chaos/Microsoft-AzureKubernetesServiceChaosMesh/PodChaos-2.1')]",
141141
"location": "[parameters('location')]",
142142
"dependsOn": [
143-
"[concat(resourceId('Microsoft.ContainerService/managedClusters', parameters('resourceName'), parameters('resourceGroup')), '/', 'providers/Microsoft.Chaos/targets/Microsoft-AzureKubernetesServiceChaosMesh')]"
143+
"[concat(resourceId('Microsoft.ContainerService/managedClusters', parameters('resourceName')), '/', 'providers/Microsoft.Chaos/targets/Microsoft-AzureKubernetesServiceChaosMesh')]"
144144
],
145145
"properties": {}
146146
},
@@ -150,7 +150,7 @@ In this sample, we onboard an Azure Kubernetes Service cluster using [targets an
150150
"name": "[concat(parameters('resourceName'), '/', 'Microsoft.Chaos/Microsoft-AzureKubernetesServiceChaosMesh/StressChaos-2.1')]",
151151
"location": "[parameters('location')]",
152152
"dependsOn": [
153-
"[concat(resourceId('Microsoft.ContainerService/managedClusters', parameters('resourceName'), parameters('resourceGroup')), '/', 'providers/Microsoft.Chaos/targets/Microsoft-AzureKubernetesServiceChaosMesh')]"
153+
"[concat(resourceId('Microsoft.ContainerService/managedClusters', parameters('resourceName')), '/', 'providers/Microsoft.Chaos/targets/Microsoft-AzureKubernetesServiceChaosMesh')]"
154154
],
155155
"properties": {}
156156
},
@@ -160,7 +160,7 @@ In this sample, we onboard an Azure Kubernetes Service cluster using [targets an
160160
"name": "[concat(parameters('resourceName'), '/', 'Microsoft.Chaos/Microsoft-AzureKubernetesServiceChaosMesh/IOChaos-2.1')]",
161161
"location": "[parameters('location')]",
162162
"dependsOn": [
163-
"[concat(resourceId('Microsoft.ContainerService/managedClusters', parameters('resourceName'), parameters('resourceGroup')), '/', 'providers/Microsoft.Chaos/targets/Microsoft-AzureKubernetesServiceChaosMesh')]"
163+
"[concat(resourceId('Microsoft.ContainerService/managedClusters', parameters('resourceName')), '/', 'providers/Microsoft.Chaos/targets/Microsoft-AzureKubernetesServiceChaosMesh')]"
164164
],
165165
"properties": {}
166166
},
@@ -170,7 +170,7 @@ In this sample, we onboard an Azure Kubernetes Service cluster using [targets an
170170
"name": "[concat(parameters('resourceName'), '/', 'Microsoft.Chaos/Microsoft-AzureKubernetesServiceChaosMesh/TimeChaos-2.1')]",
171171
"location": "[parameters('location')]",
172172
"dependsOn": [
173-
"[concat(resourceId('Microsoft.ContainerService/managedClusters', parameters('resourceName'), parameters('resourceGroup')), '/', 'providers/Microsoft.Chaos/targets/Microsoft-AzureKubernetesServiceChaosMesh')]"
173+
"[concat(resourceId('Microsoft.ContainerService/managedClusters', parameters('resourceName')), '/', 'providers/Microsoft.Chaos/targets/Microsoft-AzureKubernetesServiceChaosMesh')]"
174174
],
175175
"properties": {}
176176
},
@@ -180,7 +180,7 @@ In this sample, we onboard an Azure Kubernetes Service cluster using [targets an
180180
"name": "[concat(parameters('resourceName'), '/', 'Microsoft.Chaos/Microsoft-AzureKubernetesServiceChaosMesh/KernelChaos-2.1')]",
181181
"location": "[parameters('location')]",
182182
"dependsOn": [
183-
"[concat(resourceId('Microsoft.ContainerService/managedClusters', parameters('resourceName'), parameters('resourceGroup')), '/', 'providers/Microsoft.Chaos/targets/Microsoft-AzureKubernetesServiceChaosMesh')]"
183+
"[concat(resourceId('Microsoft.ContainerService/managedClusters', parameters('resourceName')), '/', 'providers/Microsoft.Chaos/targets/Microsoft-AzureKubernetesServiceChaosMesh')]"
184184
],
185185
"properties": {}
186186
},
@@ -190,7 +190,7 @@ In this sample, we onboard an Azure Kubernetes Service cluster using [targets an
190190
"name": "[concat(parameters('resourceName'), '/', 'Microsoft.Chaos/Microsoft-AzureKubernetesServiceChaosMesh/DNSChaos-2.1')]",
191191
"location": "[parameters('location')]",
192192
"dependsOn": [
193-
"[concat(resourceId('Microsoft.ContainerService/managedClusters', parameters('resourceName'), parameters('resourceGroup')), '/', 'providers/Microsoft.Chaos/targets/Microsoft-AzureKubernetesServiceChaosMesh')]"
193+
"[concat(resourceId('Microsoft.ContainerService/managedClusters', parameters('resourceName')), '/', 'providers/Microsoft.Chaos/targets/Microsoft-AzureKubernetesServiceChaosMesh')]"
194194
],
195195
"properties": {}
196196
},
@@ -200,7 +200,7 @@ In this sample, we onboard an Azure Kubernetes Service cluster using [targets an
200200
"name": "[concat(parameters('resourceName'), '/', 'Microsoft.Chaos/Microsoft-AzureKubernetesServiceChaosMesh/HTTPChaos-2.1')]",
201201
"location": "[parameters('location')]",
202202
"dependsOn": [
203-
"[concat(resourceId('Microsoft.ContainerService/managedClusters', parameters('resourceName'), parameters('resourceGroup')), '/', 'providers/Microsoft.Chaos/targets/Microsoft-AzureKubernetesServiceChaosMesh')]"
203+
"[concat(resourceId('Microsoft.ContainerService/managedClusters', parameters('resourceName')), '/', 'providers/Microsoft.Chaos/targets/Microsoft-AzureKubernetesServiceChaosMesh')]"
204204
],
205205
"properties": {}
206206
}

0 commit comments

Comments
 (0)