ScenarioProperties interface

Model that represents the properties of the scenario.

Properties

actions

Array of actions that define the scenario's orchestration.

createdFrom

Resource ID of the template version this scenario was created from (optional). The ID has the form /providers/Microsoft.Chaos/scenarioTemplates/{scenarioTemplateName}/versions/{version}. This property retains its existing string representation for compatibility with earlier API versions and SDKs.

A scenario's structure comes from exactly one of two mutually exclusive sources. When createdFrom is supplied on create, the referenced template version is the authoritative source for the scenario's structure; inline parameters and actions are not used. When createdFrom is absent, the structure comes from the inline parameters and actions supplied in the request. Supplying neither source is rejected by request validation.

description

Description of what this scenario does (optional).

failureBehavior

Scenario-wide default for how a scenario run reacts when one of its actions fails. An action that does not supply its own failureBehavior inherits this value; when neither is supplied the effective behavior is Stop.

Not used when createdFrom is supplied, for the same reason as parameters and actions: the referenced template version is then the authoritative source for the scenario's structure, and it supplies this policy too. A value sent in the request is ignored in that case — on create the referenced template's policy is used, and on update the policy of the already persisted template is preserved.

parameters

Parameter definitions for the scenario.

provisioningState

Most recent provisioning state for the given scenario resource.

recommendation

The recommendation information for this scenario.

version

Version of the scenario, supplied by the author. Defaults to 1.0 when not supplied on create. This is the scenario's own version and is independent of the version of any template it was created from.

Property Details

actions

Array of actions that define the scenario's orchestration.

actions?: ScenarioAction[]

Property Value

createdFrom

Resource ID of the template version this scenario was created from (optional). The ID has the form /providers/Microsoft.Chaos/scenarioTemplates/{scenarioTemplateName}/versions/{version}. This property retains its existing string representation for compatibility with earlier API versions and SDKs.

A scenario's structure comes from exactly one of two mutually exclusive sources. When createdFrom is supplied on create, the referenced template version is the authoritative source for the scenario's structure; inline parameters and actions are not used. When createdFrom is absent, the structure comes from the inline parameters and actions supplied in the request. Supplying neither source is rejected by request validation.

createdFrom?: string

Property Value

string

description

Description of what this scenario does (optional).

description?: string

Property Value

string

failureBehavior

Scenario-wide default for how a scenario run reacts when one of its actions fails. An action that does not supply its own failureBehavior inherits this value; when neither is supplied the effective behavior is Stop.

Not used when createdFrom is supplied, for the same reason as parameters and actions: the referenced template version is then the authoritative source for the scenario's structure, and it supplies this policy too. A value sent in the request is ignored in that case — on create the referenced template's policy is used, and on update the policy of the already persisted template is preserved.

failureBehavior?: string

Property Value

string

parameters

Parameter definitions for the scenario.

parameters?: ScenarioParameter[]

Property Value

provisioningState

Most recent provisioning state for the given scenario resource.

provisioningState?: string

Property Value

string

recommendation

The recommendation information for this scenario.

recommendation?: Recommendation

Property Value

version

Version of the scenario, supplied by the author. Defaults to 1.0 when not supplied on create. This is the scenario's own version and is independent of the version of any template it was created from.

version?: string

Property Value

string