You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/chaos-studio/chaos-studio-tutorial-dynamic-target-portal.md
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,25 +39,23 @@ With your Virtual Machine Scale Sets now onboarded, you can create your experime
39
39
40
40
1. Within Chaos Studio, navigate to **Experiments** and select **Create**.
41
41

42
-
1. Add a name for your experiment that complies with resource naming guidelines, and select **Next: experiment designer**.
42
+
1. Add a name for your experiment that complies with resource naming guidelines, and select **Next: Experiment designer**.
43
43

44
44
1. Within Step 1 and Branch 1, select **Add action**, then **Add fault**.
45
45

46
46
1. Select the **VMSS Shutdown (version 2.0)** fault. Choose your desired duration and whether you want the shutdown to be abrupt, then select **Next: Target resources**.
47
47

48
48
1. Choose the Virtual Machine Scale Sets resource that you want to use in the experiment, then select **Next: Scope**.
49
49

50
-
1. In the Zones dropdown, select the zone where you want Virtual Machines in the Virtual Machine Scale Sets instance to be shut down.
51
-
1. Select **Add** to add the fault to the experiment.
52
-

50
+
1. In the Zones dropdown, select the zone where you want Virtual Machines in the Virtual Machine Scale Sets instance to be shut down, then select **Add**.
51
+

53
52
1. Select **Review + create** and then **Create** to save the experiment.
54
53
55
54
## Give experiment permission to your Virtual Machine Scale Sets
56
55
57
56
When you create a chaos experiment, Chaos Studio creates a system-assigned managed identity that executes faults against your target resources. This identity must be given [appropriate permissions](chaos-studio-fault-providers.md) to the target resource for the experiment to run successfully. These steps can be used for any resource and target type by modifying the role assignment in step #3 to match the [appropriate role for that resource and target type](chaos-studio-fault-providers.md).
58
57
59
-
1. Navigate to your Virtual Machine Scale Sets resource and select **Access control (IAM)**.
60
-
2. Select **Add role assignment**.
58
+
1. Navigate to your Virtual Machine Scale Sets resource and select **Access control (IAM)**, then select **Add role assignment**.
61
59

62
60
3. In the **Role** tab, choose **Virtual Machine Contributor** and then select **Next**.
63
61

@@ -81,8 +79,11 @@ To see the impact, use a tool such as **Azure Monitor** or the **Virtual Machine
81
79
In this example, the chaos experiment successfully shut down the instance in Zone 1, as expected.
82
80

83
81
84
-
85
82
## Next steps
83
+
84
+
> [!TIP]
85
+
> If your Virtual Machine Scale Set uses an Autoscale policy, try improving this experiment by adding a parallel branch with the **Disable Autoscale** fault against the Virtual Machine Scale Set's `microsoft.insights/autoscaleSettings` resource.
86
+
86
87
Now that you've run a dynamically targeted Virtual Machine Scale Sets shutdown experiment, you're ready to:
87
88
-[Create an experiment that uses agent-based faults](chaos-studio-tutorial-agent-based-portal.md)
88
89
-[Manage your experiment](chaos-studio-run-experiment.md)
0 commit comments