ArmChaosModelFactory.ChaosScenarioAction Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public static Azure.ResourceManager.Chaos.Models.ChaosScenarioAction ChaosScenarioAction(string name = default, string actionId = default, string description = default, string duration = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Chaos.Models.ChaosKeyValuePair> parameters = default, Azure.ResourceManager.Chaos.Models.ChaosRunAfter runAfter = default, string waitBefore = default, string timeout = default, Azure.Core.ResourceIdentifier resourceId = default);
static member ChaosScenarioAction : string * string * string * string * seq<Azure.ResourceManager.Chaos.Models.ChaosKeyValuePair> * Azure.ResourceManager.Chaos.Models.ChaosRunAfter * string * string * Azure.Core.ResourceIdentifier -> Azure.ResourceManager.Chaos.Models.ChaosScenarioAction
Public Shared Function ChaosScenarioAction (Optional name As String = Nothing, Optional actionId As String = Nothing, Optional description As String = Nothing, Optional duration As String = Nothing, Optional parameters As IEnumerable(Of ChaosKeyValuePair) = Nothing, Optional runAfter As ChaosRunAfter = Nothing, Optional waitBefore As String = Nothing, Optional timeout As String = Nothing, Optional resourceId As ResourceIdentifier = Nothing) As ChaosScenarioAction
Parameters
- name
- String
Unique name for the action.
- actionId
- String
Identifier of the action and version (e.g., "microsoft-compute-shutdown/1.0").
- description
- String
Human-readable description of what this action does.
- duration
- String
ISO 8601 duration for how long the action runs (e.g., PT30M for 30 minutes). Supports template macro syntax (%%{parameters.<name>}%%).
- parameters
- IEnumerable<ChaosKeyValuePair>
Action-specific parameter values.
- runAfter
- ChaosRunAfter
Action dependencies that control when this action starts.
- waitBefore
- String
ISO 8601 duration to wait before action starts (e.g., PT30S for 30 seconds). Supports template macro syntax.
- timeout
- String
ISO 8601 duration for maximum action execution time. Supports template macro syntax.
- resourceId
- ResourceIdentifier
The resource ID of the external resource.
Returns
A new ChaosScenarioAction instance for mocking.