ScenarioAction interface
Model that represents a scenario action.
Properties
| action |
Identifier of the action and version (e.g., "microsoft-compute-shutdown/1.0"). |
| description | Human-readable description of what this action does. |
| duration | ISO 8601 duration for how long the action runs (e.g., PT30M for 30 minutes). Supports template macro syntax (%%{parameters.<name>}%%). |
| external |
External resource reference for the action. |
| failure |
Per-action override for how the scenario run reacts when this action fails. When omitted,
the action inherits the scenario-level |
| name | Unique name for the action. |
| parameters | Action-specific parameter values. |
| run |
Action dependencies that control when this action starts. |
| selectors | Action-specific target selectors evaluated during execution. When provided,
the collection must contain either |
| timeout | ISO 8601 duration for maximum action execution time. Supports template macro syntax. |
| wait |
ISO 8601 duration to wait before action starts (e.g., PT30S for 30 seconds). Supports template macro syntax. |
Property Details
actionId
Identifier of the action and version (e.g., "microsoft-compute-shutdown/1.0").
actionId: string
Property Value
string
description
Human-readable description of what this action does.
description?: string
Property Value
string
duration
ISO 8601 duration for how long the action runs (e.g., PT30M for 30 minutes). Supports template macro syntax (%%{parameters.<name>}%%).
duration: string
Property Value
string
externalResource
External resource reference for the action.
externalResource?: ExternalResource
Property Value
failureBehavior
Per-action override for how the scenario run reacts when this action fails. When omitted,
the action inherits the scenario-level failureBehavior; when neither is supplied the
effective behavior is Stop.
failureBehavior?: string
Property Value
string
name
Unique name for the action.
name: string
Property Value
string
parameters
runAfter
Action dependencies that control when this action starts.
runAfter?: RunAfter
Property Value
selectors
Action-specific target selectors evaluated during execution. When provided,
the collection must contain either logicalZone and location, or physicalZone.
Selector names must be unique, the two modes cannot be combined, and the service
enforces the cross-item combination at runtime.
selectors?: ScenarioActionSelector[]
Property Value
timeout
ISO 8601 duration for maximum action execution time. Supports template macro syntax.
timeout?: string
Property Value
string
waitBefore
ISO 8601 duration to wait before action starts (e.g., PT30S for 30 seconds). Supports template macro syntax.
waitBefore?: string
Property Value
string