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
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ author: rsgel
5
5
ms.author: carlsonr
6
6
ms.service: chaos-studio
7
7
ms.topic: how-to
8
-
ms.date: 4/11/2023
8
+
ms.date: 4/19/2023
9
9
ms.custom: template-how-to
10
10
---
11
11
@@ -28,7 +28,7 @@ Chaos Studio can't inject faults against a resource until that resource has been
28
28
1. Search for **Chaos Studio** in the search bar.
29
29
1. Select **Targets** and find your Virtual Machine Scale Sets resource.
30
30
1. With the Virtual Machine Scale Sets resource selected, select **Enable targets** and **Enable service-direct targets**.
31
-

31
+
[](images/tutorial-dynamic-targets-enable.png#lightbox)
32
32
1. Select **Review + Enable** and **Enable**.
33
33
34
34
You've now successfully onboarded your Virtual Machine Scale Set to Chaos Studio.
@@ -38,46 +38,46 @@ You've now successfully onboarded your Virtual Machine Scale Set to Chaos Studio
38
38
With your Virtual Machine Scale Sets now onboarded, you can create your experiment. A chaos experiment defines the actions you want to take against target resources, organized into steps, which run sequentially, and branches, which run in parallel.
39
39
40
40
1. Within Chaos Studio, navigate to **Experiments** and select **Create**.
41
-

41
+
[](images/tutorial-dynamic-targets-experiment-browse.png#lightbox)
42
42
1. Add a name for your experiment that complies with resource naming guidelines, and select **Next: Experiment designer**.
43
-

43
+
[](images/tutorial-dynamic-targets-experiment-create-exp.png#lightbox)
44
44
1. Within Step 1 and Branch 1, select **Add action**, then **Add fault**.
45
-

45
+
[](images/tutorial-dynamic-targets-experiment-fault.png#lightbox)
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
+
[](images/tutorial-dynamic-targets-fault-details.png#lightbox)
48
48
1. Choose the Virtual Machine Scale Sets resource that you want to use in the experiment, then select **Next: Scope**.
49
-

49
+
[](images/tutorial-dynamic-targets-fault-resources.png#lightbox)
50
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
-

51
+
[](images/tutorial-dynamic-targets-fault-zones.png#lightbox)
52
52
1. Select **Review + create** and then **Create** to save the experiment.
53
53
54
54
## Give experiment permission to your Virtual Machine Scale Sets
55
55
56
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).
57
57
58
58
1. Navigate to your Virtual Machine Scale Sets resource and select **Access control (IAM)**, then select **Add role assignment**.
59
-

59
+
[](images/tutorial-dynamic-targets-vmss-iam.png#lightbox)
60
60
3. In the **Role** tab, choose **Virtual Machine Contributor** and then select **Next**.
61
-

61
+
[](images/tutorial-dynamic-targets-role-selection.png#lightbox)
62
62
1. Choose **Select members** and search for your experiment name. Choose your experiment and then **Select**. If there are multiple experiments in the same tenant with the same name, your experiment name is truncated with random characters added.
63
-

63
+
[](images/tutorial-dynamic-targets-role-assignment.png#lightbox)
64
64
1. Select **Review + assign** then **Review + assign**.
65
-

65
+
[](images/tutorial-dynamic-targets-role-confirmation.png#lightbox)
66
66
67
67
68
68
## Run your experiment
69
69
70
70
You're now ready to run your experiment!
71
71
72
72
1. In **Chaos Studio**, navigate to the **Experiments** view, choose your experiment, and select **Start**.
73
-

73
+
[](images/tutorial-dynamic-targets-start-experiment.png#lightbox)
74
74
1. Select **OK** to confirm that you want to start the experiment.
75
75
1. When the **Status** changes to **Running**, select **Details** for the latest run under **History** to see details for the running experiment. If any errors occur, you can view them within **Details** by selecting a failed Action and expanding **Failed targets**.
76
76
77
77
To see the impact, use a tool such as **Azure Monitor** or the **Virtual Machine Scale Sets** section of the portal to check if your Virtual Machine Scale Sets targets are shut down. If they're shut down, check to see that the services running on your Virtual Machine Scale Sets are still running as expected.
78
78
79
79
In this example, the chaos experiment successfully shut down the instance in Zone 1, as expected.
80
-

80
+
[](images/tutorial-dynamic-targets-view-vmss.png#lightbox)
0 commit comments