Microsoft.Chaos 実験 2021-09-15-preview

Bicep リソース定義

実験リソースの種類は、次を対象とする操作でデプロイできます。

各 API バージョンの変更されたプロパティの一覧については、「 変更ログ」を参照してください。

リソース形式

Microsoft.Chaos/experiments リソースを作成するには、次の Bicep をテンプレートに追加します。

resource symbolicname 'Microsoft.Chaos/experiments@2021-09-15-preview' = {
  name: 'string'
  location: 'string'
  tags: {
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  }
  identity: {
    type: 'string'
  }
  properties: {
    selectors: [
      {
        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'
      }
    ]
  }
}

Action オブジェクト

オブジェクトの を指定するには、type プロパティを設定します。

継続的な場合は、次の値を使用します。

  type: 'continuous'
  duration: 'string'
  parameters: [
    {
      key: 'string'
      value: 'string'
    }
  ]
  selectorId: 'string'

遅延の場合は、次の値を使用します。

  type: 'delay'
  duration: 'string'

不連続の場合は、次の値を使用します。

  type: 'discrete'
  parameters: [
    {
      key: 'string'
      value: 'string'
    }
  ]
  selectorId: 'string'

プロパティ値

experiments

Name 説明
name リソース名 string (必須)
location リソースが保存されている地理的な場所 string (必須)
tags リソース タグ。 タグの名前と値のディクショナリ。 「テンプレート内のタグ」を参照してください
identity 実験リソースの ID。 ResourceIdentity
properties 実験リソースのプロパティ。 ExperimentProperties (必須)

ResourceIdentity

Name 説明
type リソース ID の種類の文字列。 'None'
'SystemAssigned' (必須)

ExperimentProperties

Name 説明
セレクター セレクターの一覧。 Selector[] (必須)
startOnCreation 作成時に実験を開始するかどうかを示すブール値。 [bool]
steps 手順の一覧。 Step[] (必須)

セレクター

Name 説明
id セレクター ID の文字列。 string (必須)
ターゲット ターゲット参照の一覧。 TargetReference[] (必須)
セレクター型の列挙型。 'List'
'Percent'
'Random'
'Tag' (必須)

TargetReference

Name 説明
id ターゲット リソースのリソース ID の文字列。 string (必須)
ターゲット参照型の列挙型。 'ChaosTarget' (必須)

手順

Name 説明
分岐 ブランチの一覧。 Branch[] (必須)
name ステップ名の文字列。 string (必須)

[Branch]\(ブランチ)

Name 説明
actions アクションの一覧。 Action[] (必須)
name ブランチ名の文字列。 string (必須)

アクション

名前 説明
name 機能 URN を表す文字列。 string (必須)
オブジェクトの種類を設定する 継続的
delay
不連続 (必須)

ContinuousAction

Name 説明
type アクション モデルを区別する列挙型。 'continuous' (必須)
duration 期間を表す ISO8601 形式の文字列。 string (必須)
parameters キー値ペアの一覧。 KeyValuePair[] (必須)
selectorId セレクターを表す文字列。 string (必須)

KeyValuePair

Name 説明
キー アクションの設定の名前。 string (必須)
value アクションの設定の値。 string (必須)

DelayAction

Name 説明
type アクション モデルを区別する列挙型。 'delay' (必須)
duration 期間を表す ISO8601 形式の文字列。 string (必須)

DiscreteAction

Name 説明
type アクション モデルを区別する列挙型。 'discrete' (必須)
parameters キー値ペアの一覧。 KeyValuePair[] (必須)
selectorId セレクターを表す文字列。 string (必須)

ARM テンプレート リソース定義

実験リソースの種類は、次を対象とする操作でデプロイできます。

各 API バージョンの変更されたプロパティの一覧については、「 変更ログ」を参照してください。

リソース形式

Microsoft.Chaos/experiments リソースを作成するには、次の JSON をテンプレートに追加します。

{
  "type": "Microsoft.Chaos/experiments",
  "apiVersion": "2021-09-15-preview",
  "name": "string",
  "location": "string",
  "tags": {
    "tagName1": "tagValue1",
    "tagName2": "tagValue2"
  },
  "identity": {
    "type": "string"
  },
  "properties": {
    "selectors": [
      {
        "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"
      }
    ]
  }
}

アクション オブジェクト

type プロパティを設定して、オブジェクトの種類を指定します。

継続的な場合は、次の値を使用します。

  "type": "continuous",
  "duration": "string",
  "parameters": [
    {
      "key": "string",
      "value": "string"
    }
  ],
  "selectorId": "string"

遅延の場合は、次の値を使用します。

  "type": "delay",
  "duration": "string"

不連続の場合は、次の値を使用します。

  "type": "discrete",
  "parameters": [
    {
      "key": "string",
      "value": "string"
    }
  ],
  "selectorId": "string"

プロパティ値

experiments

Name 説明
type リソースの種類 'Microsoft.Chaos/experiments'
apiVersion リソース API のバージョン '2021-09-15-preview'
name リソース名 string (必須)
location リソースが保存されている地理的な場所 string (必須)
tags リソース タグ。 タグ名と値のディクショナリ。 「テンプレートのタグ」を参照してください
identity 実験リソースの ID。 ResourceIdentity
properties 実験リソースのプロパティ。 ExperimentProperties (必須)

ResourceIdentity

Name 説明
type リソース ID の種類の文字列。 'None'
'SystemAssigned' (必須)

ExperimentProperties

Name 説明
セレクター セレクターの一覧。 Selector[] (必須)
startOnCreation 作成時に実験を開始するかどうかを示すブール値。 [bool]
steps 手順の一覧。 Step[] (必須)

セレクター

Name 説明
id セレクター ID の文字列。 string (必須)
ターゲット ターゲット参照の一覧。 TargetReference[] (必須)
セレクター型の列挙型。 'List'
'Percent'
'Random'
'Tag' (必須)

TargetReference

Name 説明
id ターゲット リソースのリソース ID の文字列。 string (必須)
ターゲット参照型の列挙型。 'ChaosTarget' (必須)

手順

Name 説明
分岐 ブランチの一覧。 Branch[] (必須)
name ステップ名の文字列。 string (必須)

[Branch]\(ブランチ)

Name 説明
actions アクションの一覧。 Action[] (必須)
name ブランチ名の文字列。 string (必須)

アクション

名前 説明
name 機能 URN を表す文字列。 string (必須)
オブジェクトの種類を設定する 継続的
delay
不連続 (必須)

ContinuousAction

Name 説明
type アクション モデルを区別する列挙型。 'continuous' (必須)
duration 期間を表す ISO8601 形式の文字列。 string (必須)
parameters キー値ペアの一覧。 KeyValuePair[] (必須)
selectorId セレクターを表す文字列。 string (必須)

KeyValuePair

Name 説明
キー アクションの設定の名前。 string (必須)
value アクションの設定の値。 string (必須)

DelayAction

Name 説明
type アクション モデルを区別する列挙型。 'delay' (必須)
duration 期間を表す ISO8601 形式の文字列。 string (必須)

DiscreteAction

Name 説明
type アクション モデルを区別する列挙型。 'discrete' (必須)
parameters キー値ペアの一覧。 KeyValuePair[] (必須)
selectorId セレクターを表す文字列。 string (必須)

Terraform (AzAPI プロバイダー) リソース定義

実験リソースの種類は、次を対象とする操作でデプロイできます。

  • リソース グループ

各 API バージョンの変更されたプロパティの一覧については、「 変更ログ」を参照してください。

リソース形式

Microsoft.Chaos/experiments リソースを作成するには、次の Terraform をテンプレートに追加します。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Chaos/experiments@2021-09-15-preview"
  name = "string"
  location = "string"
  parent_id = "string"
  tags = {
    tagName1 = "tagValue1"
    tagName2 = "tagValue2"
  }
  identity {
    type =  "SystemAssigned"
  }
  body = jsonencode({
    properties = {
      selectors = [
        {
          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"
        }
      ]
    }
  })
}

アクション オブジェクト

type プロパティを設定して、オブジェクトの種類を指定します。

継続的な場合は、次の値を使用します。

  type = "continuous"
  duration = "string"
  parameters = [
    {
      key = "string"
      value = "string"
    }
  ]
  selectorId = "string"

遅延の場合は、次の値を使用します。

  type = "delay"
  duration = "string"

不連続の場合は、次の値を使用します。

  type = "discrete"
  parameters = [
    {
      key = "string"
      value = "string"
    }
  ]
  selectorId = "string"

プロパティ値

experiments

Name 説明
type リソースの種類 "Microsoft.Chaos/experiments@2021-09-15-preview"
name リソース名 string (必須)
location リソースが保存されている地理的な場所 string (必須)
parent_id リソース グループにデプロイするには、そのリソース グループの ID を使用します。 string (必須)
tags リソース タグ。 タグ名と値のディクショナリ。
identity 実験リソースの ID。 ResourceIdentity
properties 実験リソースのプロパティ。 ExperimentProperties (必須)

ResourceIdentity

Name 説明
type リソース ID の種類の文字列。 "SystemAssigned" (必須)

ExperimentProperties

Name 説明
セレクター セレクターの一覧。 Selector[] (必須)
startOnCreation 作成時に実験を開始するかどうかを示すブール値。 [bool]
steps 手順の一覧。 Step[] (必須)

セレクター

Name 説明
id セレクター ID の文字列。 string (必須)
ターゲット ターゲット参照の一覧。 TargetReference[] (必須)
セレクター型の列挙型。 "List"
"Percent"
"Random"
"Tag" (必須)

TargetReference

Name 説明
id ターゲット リソースのリソース ID の文字列。 string (必須)
ターゲット参照型の列挙型。 "ChaosTarget" (必須)

手順

Name 説明
分岐 ブランチの一覧。 Branch[] (必須)
name ステップ名の文字列。 string (必須)

[Branch]\(ブランチ)

Name 説明
actions アクションの一覧。 Action[] (必須)
name ブランチ名の文字列。 string (必須)

アクション

名前 説明
name 機能 URN を表す文字列。 string (必須)
オブジェクトの種類を設定する 継続的
delay
不連続 (必須)

ContinuousAction

Name 説明
type アクション モデルを区別する列挙型。 "continuous" (必須)
duration 期間を表す ISO8601 形式の文字列。 string (必須)
parameters キー値のペアの一覧。 KeyValuePair[] (必須)
selectorId セレクターを表す文字列。 string (必須)

KeyValuePair

Name 説明
キー アクションの設定の名前。 string (必須)
value アクションの設定の値。 string (必須)

DelayAction

Name 説明
type アクション モデルを区別する列挙型。 "delay" (必須)
duration 期間を表す ISO8601 形式の文字列。 string (必須)

DiscreteAction

Name 説明
type アクション モデルを区別する列挙型。 "discrete" (必須)
parameters キー値のペアの一覧。 KeyValuePair[] (必須)
selectorId セレクターを表す文字列。 string (必須)