ScenarioAction interface

Model that represents a scenario action.

Properties

actionId

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>}%%).

externalResource

External resource reference for the action.

name

Unique name for the action.

parameters

Action-specific parameter values.

runAfter

Action dependencies that control when this action starts.

timeout

ISO 8601 duration for maximum action execution time. Supports template macro syntax.

waitBefore

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

name

Unique name for the action.

name: string

Property Value

string

parameters

Action-specific parameter values.

parameters?: KeyValuePair[]

Property Value

runAfter

Action dependencies that control when this action starts.

runAfter?: RunAfter

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