The experiments resource type can be deployed with operations that target:
For a list of changed properties in each API version, see change log.
To create a Microsoft.Chaos/experiments resource, add the following JSON to your template.
{
"type": "Microsoft.Chaos/experiments",
"apiVersion": "2022-10-01-preview",
"name": "string",
"location": "string",
"tags": {
"tagName1": "tagValue1",
"tagName2": "tagValue2"
},
"identity": {
"type": "string"
},
"properties": {
"selectors": [
{
"filter": {
"type": "string"
// For remaining properties, see Filter objects
},
"id": "string",
"targets": [
{
"id": "string",
"type": "ChaosTarget"
}
],
"type": "string"
}
],
"startOnCreation": "bool",
"steps": [
{
"branches": [
{
"actions": [
{
"name": "string",
"type": "string"
// For remaining properties, see Action objects
}
],
"name": "string"
}
],
"name": "string"
}
]
}
}
Set the type property to specify the type of object.
For Simple, use:
"type": "Simple",
"parameters": {
"zones": [ "string" ]
}
Set the type property to specify the type of object.
For continuous, use:
"type": "continuous",
"duration": "string",
"parameters": [
{
"key": "string",
"value": "string"
}
],
"selectorId": "string"
For delay, use:
"type": "delay",
"duration": "string"
For discrete, use:
"type": "discrete",
"parameters": [
{
"key": "string",
"value": "string"
}
],
"selectorId": "string"
Name | Description | Value |
---|---|---|
type | The resource type | 'Microsoft.Chaos/experiments' |
apiVersion | The resource api version | '2022-10-01-preview' |
name | The resource name | string (required) |
location | The geo-location where the resource lives | string (required) |
tags | Resource tags. | Dictionary of tag names and values. See Tags in templates |
identity | The identity of the experiment resource. | ResourceIdentity |
properties | The properties of the experiment resource. | ExperimentProperties (required) |
Name | Description | Value |
---|---|---|
type | String of the resource identity type. | 'None' 'SystemAssigned' (required) |
Name | Description | Value |
---|---|---|
selectors | List of selectors. | Selector[] (required) |
startOnCreation | A boolean value that indicates if experiment should be started on creation or not. | bool |
steps | List of steps. | Step[] (required) |
Name | Description | Value |
---|---|---|
filter | Model that represents available filter types that can be applied to a targets list. | Filter |
id | String of the selector ID. | string (required) |
targets | List of Target references. | TargetReference[] (required) |
type | Enum of the selector type. | 'List' 'Percent' 'Random' 'Tag' (required) |
Name | Description | Value |
---|---|---|
type | Set the object type | Simple (required) |
Name | Description | Value |
---|---|---|
type | Enum that discriminates between filter types. Currently only Simple type is supported. |
'Simple' (required) |
parameters | Model that represents the Simple filter parameters. | SimpleFilterParameters |
Name | Description | Value |
---|---|---|
zones | List of Azure availability zones to filter targets by. | string[] |
Name | Description | Value |
---|---|---|
id | String of the resource ID of a Target resource. | string (required) |
type | Enum of the Target reference type. | 'ChaosTarget' (required) |
Name | Description | Value |
---|---|---|
branches | List of branches. | Branch[] (required) |
name | String of the step name. | string (required) |
Name | Description | Value |
---|---|---|
actions | List of actions. | Action[] (required) |
name | String of the branch name. | string (required) |
Name | Description | Value |
---|---|---|
name | String that represents a Capability URN. | string (required) |
type | Set the object type | continuous delay discrete (required) |
Name | Description | Value |
---|---|---|
type | Enum that discriminates between action models. | 'continuous' (required) |
duration | ISO8601 formatted string that represents a duration. | string (required) |
parameters | List of key value pairs. | KeyValuePair[] (required) |
selectorId | String that represents a selector. | string (required) |
Name | Description | Value |
---|---|---|
key | The name of the setting for the action. | string (required) |
value | The value of the setting for the action. | string (required) |
Name | Description | Value |
---|---|---|
type | Enum that discriminates between action models. | 'delay' (required) |
duration | ISO8601 formatted string that represents a duration. | string (required) |
Name | Description | Value |
---|---|---|
type | Enum that discriminates between action models. | 'discrete' (required) |
parameters | List of key value pairs. | KeyValuePair[] (required) |
selectorId | String that represents a selector. | string (required) |