Skip to content

Commit be3634b

Browse files
Merge pull request #269503 from rsgel/main
bicep and template fixes
2 parents 50a949b + 901e3c4 commit be3634b

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

articles/chaos-studio/chaos-studio-bicep.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ resource vm 'Microsoft.Compute/virtualMachines@2023-03-01' existing = {
7878
}
7979
8080
// Deploy the Chaos Studio target resource to the Virtual Machine
81-
resource chaosTarget 'Microsoft.Chaos/targets@2023-11-01' = {
81+
resource chaosTarget 'Microsoft.Chaos/targets@2024-01-01' = {
8282
name: 'Microsoft-VirtualMachine'
8383
location: location
8484
scope: vm
@@ -98,7 +98,7 @@ resource chaosRoleDefinition 'Microsoft.Authorization/roleDefinitions@2022-04-01
9898
}
9999
100100
// Define the role assignment for the Chaos experiment
101-
resource chaosRoleAssignment 'Microsoft.Authorization/roleAssignments@2020-04-01-preview' = {
101+
resource chaosRoleAssignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
102102
name: guid(vm.id, chaosExperiment.id, chaosRoleDefinition.id)
103103
scope: vm
104104
properties: {
@@ -109,7 +109,7 @@ resource chaosRoleAssignment 'Microsoft.Authorization/roleAssignments@2020-04-01
109109
}
110110
111111
// Deploy the Chaos Studio experiment resource
112-
resource chaosExperiment 'Microsoft.Chaos/experiments@2023-11-01' = {
112+
resource chaosExperiment 'Microsoft.Chaos/experiments@2024-01-01' = {
113113
name: experimentName
114114
location: location // Doesn't need to be the same as the Targets & Capabilities location
115115
identity: {
@@ -128,7 +128,6 @@ resource chaosExperiment 'Microsoft.Chaos/experiments@2023-11-01' = {
128128
]
129129
}
130130
]
131-
startOnCreation: false // Change this to true if you want to start the experiment on creation
132131
steps: experimentSteps
133132
}
134133
}
@@ -154,7 +153,6 @@ resource chaosExperiment 'Microsoft.Chaos/experiments@2023-11-01' = {
154153
1. When prompted, enter the following values:
155154
* **targetName**: the name of an existing Virtual Machine within your resource group that you want to target
156155
* **experimentName**: the desired name for your Chaos Experiment
157-
* **location**: the desired region for the experiment, targets, and capabilities
158156
1. The template should deploy within a few minutes. Once the deployment is complete, navigate to Chaos Studio in the Azure portal, select **Experiments**, and find the experiment created by the template. Select it, then **Start** the experiment.
159157
160158
## Next steps

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ This article includes sample [Azure Resource Manager templates (ARM templates)](
1919

2020
In this sample, we create a chaos experiment with a single target resource and a single CPU pressure fault. You can modify the experiment by referencing our [REST API](/rest/api/chaosstudio/experiments/create-or-update) and [fault library](chaos-studio-fault-library.md).
2121

22+
## Deploying templates
23+
24+
Once you've reviewed the template and parameter files, learn how to deploy them into your Azure subscription with the [Deploy resources with ARM templates and Azure portal](../azure-resource-manager/templates/deploy-portal.md) article.
25+
2226
### Template file
2327

2428
```json
@@ -43,7 +47,7 @@ In this sample, we create a chaos experiment with a single target resource and a
4347
"chaosTargetResourceId": {
4448
"type": "string",
4549
"metadata": {
46-
"description": "Resource ID of the chaos target. This is the resource ID of the resource being targeted plus the target proxy resource."
50+
"description": "Resource ID of the chaos target. This is the full resource ID of the resource being targeted plus the target proxy resource."
4751
}
4852
}
4953
},
@@ -52,7 +56,7 @@ In this sample, we create a chaos experiment with a single target resource and a
5256
"resources": [
5357
{
5458
"type": "Microsoft.Chaos/experiments",
55-
"apiVersion": "2023-11-01",
59+
"apiVersion": "2024-01-01",
5660
"name": "[parameters('experimentName')]",
5761
"location": "[parameters('location')]",
5862
"identity": {
@@ -71,7 +75,6 @@ In this sample, we create a chaos experiment with a single target resource and a
7175
]
7276
}
7377
],
74-
"startOnCreation": "false",
7578
"steps": [
7679
{
7780
"name": "Step1",

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ This article includes sample [Azure Resource Manager templates (ARM templates)](
1919

2020
In this sample, we add an Azure Cosmos DB instance by using [targets and capabilities](chaos-studio-targets-capabilities.md). To modify the template for any service-direct target and capabilities, see the [fault library](chaos-studio-fault-library.md).
2121

22+
## Deploying templates
23+
24+
Once you've reviewed the template and parameter files, learn how to deploy them into your Azure subscription with the [Deploy resources with ARM templates and Azure portal](../azure-resource-manager/templates/deploy-portal.md) article.
25+
2226
### Template file
2327

2428
```json

0 commit comments

Comments
 (0)