Skip to content

Commit 9839ff1

Browse files
Update chaos-studio-tutorial-agent-based-cli.md
1 parent c514bcd commit 9839ff1

File tree

1 file changed

+33
-4
lines changed

1 file changed

+33
-4
lines changed

articles/chaos-studio/chaos-studio-tutorial-agent-based-cli.md

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,32 +113,61 @@ The chaos agent is an application that runs in your VM or virtual machine scale
113113

114114
1. Install the Chaos Studio VM extension. Replace `$VM_RESOURCE_ID` with the resource ID of your VM or replace `$SUBSCRIPTION_ID`, `$RESOURCE_GROUP`, and `$VMSS_NAME` with those properties for your virtual machine scale set. Replace `$AGENT_PROFILE_ID` with the agent Profile ID. Replace `$USER_IDENTITY_CLIENT_ID` with the client ID of your managed identity. Replace `$APP_INSIGHTS_KEY` with your Application Insights instrumentation key. If you aren't using Application Insights, remove that key/value pair.
115115

116+
#### Full list of default Agent virtual machine extension configuration
117+
118+
Here is the **minimum agent vm extension configuration** required by the user:
119+
120+
```azcli-interactive
121+
{
122+
"profile": "$AGENT_PROFILE_ID",
123+
"auth.msi.clientid": "$USER_IDENTITY_CLIENT_ID"
124+
}
125+
```
126+
127+
Here is **all values for agent vm extension configuration**
128+
129+
```azcli-interactive
130+
{
131+
"profile": "$AGENT_PROFILE_ID",
132+
"auth.msi.clientid": "$USER_IDENTITY_CLIENT_ID",
133+
"appinsightskey": "$APP_INSIGHTS_KEY",
134+
"overrides": {
135+
"region": string, default to be null
136+
"logLevel": {
137+
"default" : string , default to be Information
138+
},
139+
"checkCertRevocation": boolean, default to be false.
140+
}
141+
}
142+
```
143+
144+
116145
#### Install the agent on a virtual machine
117146

118147
Windows
119148

120149
```azurecli-interactive
121-
az vm extension set --ids $VM_RESOURCE_ID --name ChaosWindowsAgent --publisher Microsoft.Azure.Chaos --version 1.0 --settings '{"profile": "$AGENT_PROFILE_ID", "auth.msi.clientid":"$USER_IDENTITY_CLIENT_ID", "appinsightskey":"$APP_INSIGHTS_KEY"}'
150+
az vm extension set --ids $VM_RESOURCE_ID --name ChaosWindowsAgent --publisher Microsoft.Azure.Chaos --version 1.0 --settings '{"profile": "$AGENT_PROFILE_ID", "auth.msi.clientid":"$USER_IDENTITY_CLIENT_ID", "appinsightskey":"$APP_INSIGHTS_KEY"{"Overrides": "CheckCertRevocation" = true}}'
122151
```
123152

124153
Linux
125154

126155
```azurecli-interactive
127-
az vm extension set --ids $VM_RESOURCE_ID --name ChaosLinuxAgent --publisher Microsoft.Azure.Chaos --version 1.0 --settings '{"profile": "$AGENT_PROFILE_ID", "auth.msi.clientid":"$USER_IDENTITY_CLIENT_ID", "appinsightskey":"$APP_INSIGHTS_KEY"}'
156+
az vm extension set --ids $VM_RESOURCE_ID --name ChaosLinuxAgent --publisher Microsoft.Azure.Chaos --version 1.0 --settings '{"profile": "$AGENT_PROFILE_ID", "auth.msi.clientid":"$USER_IDENTITY_CLIENT_ID", "appinsightskey":"$APP_INSIGHTS_KEY"{"Overrides": "CheckCertRevocation" = true}}'
128157
```
129158

130159
#### Install the agent on a virtual machine scale set
131160

132161
Windows
133162

134163
```azurecli-interactive
135-
az vmss extension set --subscription $SUBSCRIPTION_ID --resource-group $RESOURCE_GROUP --vmss-name $VMSS_NAME --name ChaosWindowsAgent --publisher Microsoft.Azure.Chaos --version 1.0 --settings '{"profile": "$AGENT_PROFILE_ID", "auth.msi.clientid":"$USER_IDENTITY_CLIENT_ID", "appinsightskey":"$APP_INSIGHTS_KEY"}'
164+
az vmss extension set --subscription $SUBSCRIPTION_ID --resource-group $RESOURCE_GROUP --vmss-name $VMSS_NAME --name ChaosWindowsAgent --publisher Microsoft.Azure.Chaos --version 1.0 --settings '{"profile": "$AGENT_PROFILE_ID", "auth.msi.clientid":"$USER_IDENTITY_CLIENT_ID", "appinsightskey":"$APP_INSIGHTS_KEY"{"Overrides": "CheckCertRevocation" = true}}'
136165
```
137166

138167
Linux
139168

140169
```azurecli-interactive
141-
az vmss extension set --subscription $SUBSCRIPTION_ID --resource-group $RESOURCE_GROUP --vmss-name $VMSS_NAME --name ChaosLinuxAgent --publisher Microsoft.Azure.Chaos --version 1.0 --settings '{"profile": "$AGENT_PROFILE_ID", "auth.msi.clientid":"$USER_IDENTITY_CLIENT_ID", "appinsightskey":"$APP_INSIGHTS_KEY"}'
170+
az vmss extension set --subscription $SUBSCRIPTION_ID --resource-group $RESOURCE_GROUP --vmss-name $VMSS_NAME --name ChaosLinuxAgent --publisher Microsoft.Azure.Chaos --version 1.0 --settings '{"profile": "$AGENT_PROFILE_ID", "auth.msi.clientid":"$USER_IDENTITY_CLIENT_ID", "appinsightskey":"$APP_INSIGHTS_KEY"{"Overrides": "CheckCertRevocation" = true}}'
142171
```
143172
1. If you're setting up a virtual machine scale set, verify that the instances were upgraded to the latest model. If needed, upgrade all instances in the model.
144173

0 commit comments

Comments
 (0)