你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。

Microsoft。App connectedEnvironments/daprComponents 2025-07-01

Bicep 资源定义

可以使用目标操作部署 connectedEnvironments/daprComponents 资源类型:

有关每个 API 版本中已更改属性的列表,请参阅更改日志。

资源格式

若要创建 Microsoft.App/connectedEnvironments/daprComponents 资源,请将以下 Bicep 添加到模板。

resource symbolicname 'Microsoft.App/connectedEnvironments/daprComponents@2025-07-01' = {
  parent: resourceSymbolicName
  name: 'string'
  properties: {
    componentType: 'string'
    ignoreErrors: bool
    initTimeout: 'string'
    metadata: [
      {
        name: 'string'
        secretRef: 'string'
        value: 'string'
      }
    ]
    scopes: [
      'string'
    ]
    secrets: [
      {
        identity: 'string'
        keyVaultUrl: 'string'
        name: 'string'
        value: 'string'
      }
    ]
    secretStoreComponent: 'string'
    version: 'string'
  }
}

属性值

Microsoft.App/connectedEnvironments/daprComponents

Name Description 价值
姓名 资源名称 字符串(必需)
父级 在 Bicep 中,可以为子资源指定父资源。 仅当子资源在父资源外部声明时,才需要添加此属性。

有关详细信息,请参阅 父资源外部的子资源。
类型资源的符号名称:connectedEnvironments
属性 Dapr 组件资源特定属性 DaprComponent属性

DaprComponent属性

Name Description 价值
componentType 组件类型 字符串
ignoreErrors 错误 描述组件错误是否被忽略的布尔值 布尔
initTimeout (初始化超时) 初始化超时 字符串
元数据 组件元数据 Dapr元数据
范围 可以使用此 Dapr 组件的容器应用的名称 字符串[]
secrets Dapr 组件使用的机密集合 机密[]
secretStoreComponent 要从中检索组件机密的 Dapr 组件的名称 字符串
版本 组件版本 字符串

Dapr元数据

Name Description 价值
姓名 元数据属性名称。 字符串
secretRef 的 要从中提取元数据属性值的 Dapr 组件机密的名称。 字符串
value 元数据属性值。 字符串

机密

Name Description 价值
标识 使用 Azure 密钥保管库 进行身份验证的托管标识的资源 ID,或使用系统分配的标识。 字符串
keyVaultUrl 的 指向容器应用引用的机密的 Azure 密钥保管库 URL。 字符串
姓名 机密名称。 字符串
value 机密值。 string

约束:
敏感值。 以安全参数的形式传入。

ARM 模板资源定义

可以使用目标操作部署 connectedEnvironments/daprComponents 资源类型:

用法示例

资源格式

若要创建 Microsoft.App/connectedEnvironments/daprComponents 资源,请将以下 JSON 添加到模板。

{
  "type": "Microsoft.App/connectedEnvironments/daprComponents",
  "apiVersion": "2025-07-01",
  "name": "string",
  "properties": {
    "componentType": "string",
    "ignoreErrors": "bool",
    "initTimeout": "string",
    "metadata": [
      {
        "name": "string",
        "secretRef": "string",
        "value": "string"
      }
    ],
    "scopes": [ "string" ],
    "secrets": [
      {
        "identity": "string",
        "keyVaultUrl": "string",
        "name": "string",
        "value": "string"
      }
    ],
    "secretStoreComponent": "string",
    "version": "string"
  }
}

属性值

Microsoft.App/connectedEnvironments/daprComponents

Name Description 价值
apiVersion API 版本 '2025-07-01'
姓名 资源名称 字符串(必需)
属性 Dapr 组件资源特定属性 DaprComponent属性
类型 资源类型 “Microsoft.App/connectedEnvironments/daprComponents”

DaprComponent属性

Name Description 价值
componentType 组件类型 字符串
ignoreErrors 错误 描述组件错误是否被忽略的布尔值 布尔
initTimeout (初始化超时) 初始化超时 字符串
元数据 组件元数据 Dapr元数据
范围 可以使用此 Dapr 组件的容器应用的名称 字符串[]
secrets Dapr 组件使用的机密集合 机密[]
secretStoreComponent 要从中检索组件机密的 Dapr 组件的名称 字符串
版本 组件版本 字符串

Dapr元数据

Name Description 价值
姓名 元数据属性名称。 字符串
secretRef 的 要从中提取元数据属性值的 Dapr 组件机密的名称。 字符串
value 元数据属性值。 字符串

机密

Name Description 价值
标识 使用 Azure 密钥保管库 进行身份验证的托管标识的资源 ID,或使用系统分配的标识。 字符串
keyVaultUrl 的 指向容器应用引用的机密的 Azure 密钥保管库 URL。 字符串
姓名 机密名称。 字符串
value 机密值。 string

约束:
敏感值。 以安全参数的形式传入。

Terraform (AzAPI 提供程序)资源定义

可以使用目标操作部署 connectedEnvironments/daprComponents 资源类型:

  • 资源组 关于每个API版本中变更属性的列表,请参见 更改日志。

资源格式

若要创建 Microsoft.App/connectedEnvironments/daprComponents 资源,请将以下 Terraform 添加到模板中。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.App/connectedEnvironments/daprComponents@2025-07-01"
  name = "string"
  parent_id = "string"
  body = {
    properties = {
      componentType = "string"
      ignoreErrors = bool
      initTimeout = "string"
      metadata = [
        {
          name = "string"
          secretRef = "string"
          value = "string"
        }
      ]
      scopes = [
        "string"
      ]
      secrets = [
        {
          identity = "string"
          keyVaultUrl = "string"
          name = "string"
          value = "string"
        }
      ]
      secretStoreComponent = "string"
      version = "string"
    }
  }
}

属性值

Microsoft.App/connectedEnvironments/daprComponents

Name Description 价值
姓名 资源名称 字符串(必需)
parent_id 此资源的父资源的 ID。 类型资源的 ID:connectedEnvironments
属性 Dapr 组件资源特定属性 DaprComponent属性
类型 资源类型 “Microsoft.App/connectedEnvironments/daprComponents@2025-07-01”

DaprComponent属性

Name Description 价值
componentType 组件类型 字符串
ignoreErrors 错误 描述组件错误是否被忽略的布尔值 布尔
initTimeout (初始化超时) 初始化超时 字符串
元数据 组件元数据 Dapr元数据
范围 可以使用此 Dapr 组件的容器应用的名称 字符串[]
secrets Dapr 组件使用的机密集合 机密[]
secretStoreComponent 要从中检索组件机密的 Dapr 组件的名称 字符串
版本 组件版本 字符串

Dapr元数据

Name Description 价值
姓名 元数据属性名称。 字符串
secretRef 的 要从中提取元数据属性值的 Dapr 组件机密的名称。 字符串
value 元数据属性值。 字符串

机密

Name Description 价值
标识 使用 Azure 密钥保管库 进行身份验证的托管标识的资源 ID,或使用系统分配的标识。 字符串
keyVaultUrl 的 指向容器应用引用的机密的 Azure 密钥保管库 URL。 字符串
姓名 机密名称。 字符串
value 机密值。 string

约束:
敏感值。 以安全参数的形式传入。