Bicep 資源定義
工作區資源類型可以使用目標作業來部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
創造一個 Microsoft。Chaos/workspaces 資源,請將以下 Bicep 加入你的範本。
resource symbolicname 'Microsoft.Chaos/workspaces@2026-08-01-preview' = {
identity: {
type: 'string'
userAssignedIdentities: {
{customized property}: {}
}
}
location: 'string'
name: 'string'
properties: {
scopes: [
'string'
]
}
tags: {
{customized property}: 'string'
}
}
屬性值
Microsoft。混亂/工作空間
| Name | Description | 價值觀 |
|---|---|---|
| 身分識別 | 指派給此資源的受控服務識別。 | ManagedServiceIdentity |
| 位置 | 資源所在的地理位置 | 字串 (必要) |
| name | 資源名稱 | string 約束: 最小長度 = 1 模式 = ^[^<>%&:?#/\\]+$ (必要) |
| properties | Workspace 資源的屬性。 | WorkspaceProperties (必要) |
| tags | 資源標籤 | 標記名稱和值的字典。 請參閱範本中的 標籤 |
ManagedServiceIdentity
| Name | Description | 價值觀 |
|---|---|---|
| 型別 | 受控服務識別的類型(允許 SystemAssigned 和 UserAssigned 類型)。 | “無” “系統分配” 'SystemAssigned,UserAssigned' 'UserAssigned' (必要) |
| userAssignedIdentities | 與資源相關聯的使用者指派身分識別集。 userAssignedIdentities 的字典鍵將是 ARM 資源 ID,形式為:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. 字典值可以是要求中的空白物件({})。 | UserAssignedIdentities |
TrackedResourceTags
| Name | Description | 價值觀 |
|---|
UserAssignedIdentities
| Name | Description | 價值觀 |
|---|
UserAssignedIdentity
| Name | Description | 價值觀 |
|---|
WorkspaceProperties (工作區屬性)
| Name | Description | 價值觀 |
|---|---|---|
| 示波器 | 預定的工作區層級資源範圍,供子情境使用。 | string[] (必要) |
ARM 樣本資源定義
工作區資源類型可以使用目標作業來部署:
使用範例
資源格式
創造一個 Microsoft。Chaos/workspaces 資源,請將以下 JSON 加入你的範本。
{
"type": "Microsoft.Chaos/workspaces",
"apiVersion": "2026-08-01-preview",
"name": "string",
"identity": {
"type": "string",
"userAssignedIdentities": {
"{customized property}": {
}
}
},
"location": "string",
"properties": {
"scopes": [ "string" ]
},
"tags": {
"{customized property}": "string"
}
}
屬性值
Microsoft。混亂/工作空間
| Name | Description | 價值觀 |
|---|---|---|
| apiVersion | API 版本 | 『2026-08-01-預覽』 |
| 身分識別 | 指派給此資源的受控服務識別。 | ManagedServiceIdentity |
| 位置 | 資源所在的地理位置 | 字串 (必要) |
| name | 資源名稱 | string 約束: 最小長度 = 1 模式 = ^[^<>%&:?#/\\]+$ (必要) |
| properties | Workspace 資源的屬性。 | WorkspaceProperties (必要) |
| tags | 資源標籤 | 標記名稱和值的字典。 請參閱範本中的 標籤 |
| 型別 | 資源類型 | 「Microsoft。混亂/工作空間」 |
ManagedServiceIdentity
| Name | Description | 價值觀 |
|---|---|---|
| 型別 | 受控服務識別的類型(允許 SystemAssigned 和 UserAssigned 類型)。 | “無” “系統分配” 'SystemAssigned,UserAssigned' 'UserAssigned' (必要) |
| userAssignedIdentities | 與資源相關聯的使用者指派身分識別集。 userAssignedIdentities 的字典鍵將是 ARM 資源 ID,形式為:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. 字典值可以是要求中的空白物件({})。 | UserAssignedIdentities |
TrackedResourceTags
| Name | Description | 價值觀 |
|---|
UserAssignedIdentities
| Name | Description | 價值觀 |
|---|
UserAssignedIdentity
| Name | Description | 價值觀 |
|---|
WorkspaceProperties (工作區屬性)
| Name | Description | 價值觀 |
|---|---|---|
| 示波器 | 預定的工作區層級資源範圍,供子情境使用。 | string[] (必要) |
Terraform (AzAPI 提供者) 資源定義
工作區資源類型可以使用目標作業來部署:
- 資源團體 關於每個 API 版本變更屬性的清單,請參見 變更日誌。
資源格式
創造一個 Microsoft。Chaos/workspaces 資源,請將以下 Terraform 加入你的範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Chaos/workspaces@2026-08-01-preview"
name = "string"
parent_id = "string"
identity {
type = "string"
identity_ids = [
"string"
]
}
location = "string"
tags = {
{customized property} = "string"
}
body = {
properties = {
scopes = [
"string"
]
}
}
}
屬性值
Microsoft。混亂/工作空間
| Name | Description | 價值觀 |
|---|---|---|
| 身分識別 | 指派給此資源的受控服務識別。 | ManagedServiceIdentity |
| 位置 | 資源所在的地理位置 | 字串 (必要) |
| name | 資源名稱 | string 約束: 最小長度 = 1 模式 = ^[^<>%&:?#/\\]+$ (必要) |
| properties | Workspace 資源的屬性。 | WorkspaceProperties (必要) |
| tags | 資源標籤 | 標記名稱和值的字典。 |
| 型別 | 資源類型 | 「Microsoft。混沌/workspaces@2026-08-01-預覽」 |
ManagedServiceIdentity
| Name | Description | 價值觀 |
|---|---|---|
| 型別 | 受控服務識別的類型(允許 SystemAssigned 和 UserAssigned 類型)。 | “無” “系統分配” 'SystemAssigned,UserAssigned' 'UserAssigned' (必要) |
| userAssignedIdentities | 與資源相關聯的使用者指派身分識別集。 userAssignedIdentities 的字典鍵將是 ARM 資源 ID,形式為:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. 字典值可以是要求中的空白物件({})。 | UserAssignedIdentities |
TrackedResourceTags
| Name | Description | 價值觀 |
|---|
UserAssignedIdentities
| Name | Description | 價值觀 |
|---|
UserAssignedIdentity
| Name | Description | 價值觀 |
|---|
WorkspaceProperties (工作區屬性)
| Name | Description | 價值觀 |
|---|---|---|
| 示波器 | 預定的工作區層級資源範圍,供子情境使用。 | string[] (必要) |