你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Bicep 资源定义
代理的资源类型可以部署用于针对以下操作:
- 资源组 - 参见 资源组部署命令
有关每个 API 版本中已更改属性的列表,请参阅 更改日志。
资源格式
要创建 Microsoft.App/agents 资源,请将以下Bicep添加到模板中。
resource symbolicname 'Microsoft.App/agents@2026-01-01' = {
identity: {
type: 'string'
userAssignedIdentities: {
{customized property}: {}
}
}
location: 'string'
name: 'string'
properties: {
actionConfiguration: {
accessLevel: 'string'
identity: 'string'
mode: 'string'
}
agentIdentity: {
initialSponsorGroupId: 'string'
}
defaultModel: {
name: 'string'
provider: 'string'
}
incidentManagementConfiguration: {
connectionKey: 'string'
connectionName: 'string'
connectionUrl: 'string'
oboUser: 'string'
type: 'string'
}
knowledgeGraphConfiguration: {
identity: 'string'
managedResources: [
'string'
]
}
logConfiguration: {
applicationInsightsConfiguration: {
appId: 'string'
connectionString: 'string'
}
}
upgradeChannel: 'string'
}
tags: {
{customized property}: 'string'
}
}
属性值
Microsoft.App/agents
| 名称 | 说明 | 价值 |
|---|---|---|
| 标识 | 分配给此资源的托管服务标识。 | ManagedServiceIdentity |
| 位置 | 资源所在的地理位置 | string (必需) |
| 名字 | 资源名称 | string 约束: 模式 = ^[A-Za-z]([-A-Za-z0-9]{0,30}[A-Za-z0-9])$ (必需) |
| 性能 | 此资源的资源特定属性。 | 代理属性 |
| 标记 | 资源标记 | 标记名称和值的字典。 请参见模板中的标签 |
ActionConfiguration
| 名称 | 说明 | 价值 |
|---|---|---|
| 访问级别 | 动作的访问级别 | 'High' 'Low' |
| 标识 | 动作所用的恒级元 | 字符串 |
| 模式 | 作用方式 | “自主” “ReadOnly” “评论” |
代理身份
| 名称 | 说明 | 价值 |
|---|---|---|
| 初始赞助组ID | 初始赞助人组ID(代理人身份要求) | string (必需) |
代理属性
| 名称 | 说明 | 价值 |
|---|---|---|
| actionConfiguration | 动作配置 | ActionConfiguration |
| agentIdentity | 用于访问资源的代理身份配置 | 代理身份 |
| defaultModel | 代理的默认AI模型配置 | 默认模型 |
| incidentManagementConfiguration | 事件管理配置 | 事件管理配置 |
| knowledgeGraphConfiguration | 智能体知识图谱配置 | KnowledgeGraphConfiguration |
| logConfiguration | 对井配置 | 日志配置 |
| upgradeChannel | 代理的升级通道 | 'Preview' 'Stable' |
ApplicationInsightsConfiguration
| 名称 | 说明 | 价值 |
|---|---|---|
| 应用程序ID | Application Insights 资源的应用 ID | 字符串 |
| connectionString | Application Insights 资源的连接字符串 | string 约束: 敏感值。 以安全参数的形式传入。 |
默认模型
| 名称 | 说明 | 价值 |
|---|---|---|
| 名字 | 型号名称(例如,gpt-5、claude-opus-4-5、claude-sonnet-4-5) | 字符串 |
| 提供商 | AI提供商名称(例如,MicrosoftFoundry,Anthropic) | 字符串 |
事件管理配置
| 名称 | 说明 | 价值 |
|---|---|---|
| 连接键 | 连接的关键 | string 约束: 敏感值。 以安全参数的形式传入。 |
| connectionName (连接名称) | 连接名称 | 字符串 |
| 连接网址 | 连接的网址 | 字符串 |
| oboUser | 连接用户 | 字符串 |
| 类型 | 事件管理系统的类型 | 字符串 |
KnowledgeGraphConfiguration
| 名称 | 说明 | 价值 |
|---|---|---|
| 标识 | 用于访问知识图谱的身份元 | 字符串 |
| managedResources | 代理管理的资源列表 | 字符串[] |
日志配置
| 名称 | 说明 | 价值 |
|---|---|---|
| applicationInsightsConfiguration | 应用洞察配置 | ApplicationInsightsConfiguration |
ManagedServiceIdentity
| 名称 | 说明 | 价值 |
|---|---|---|
| 类型 | 托管服务标识的类型(其中允许 SystemAssigned 和 UserAssigned 类型)。 | “None” “SystemAssigned” “SystemAssigned,UserAssigned” “UserAssigned”(必需) |
| userAssignedIdentities | 与资源关联的用户分配标识集。 userAssignedIdentities 字典密钥将为 ARM 资源 ID,格式为“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}”。 字典值可以是请求中的空对象({})。 | ManagedServiceIdentityUserAssignedIdentities |
ManagedServiceIdentityUserAssignedIdentities
| 名称 | 说明 | 价值 |
|---|
TrackedResourceTags
| 名称 | 说明 | 价值 |
|---|
UserAssignedIdentity
| 名称 | 说明 | 价值 |
|---|
ARM 模板资源定义
代理的资源类型可以部署用于针对以下操作:
用法示例
资源格式
要创建 Microsoft.App/agents 资源,请将以下 JSON 添加到模板中。
{
"type": "Microsoft.App/agents",
"apiVersion": "2026-01-01",
"name": "string",
"identity": {
"type": "string",
"userAssignedIdentities": {
"{customized property}": {
}
}
},
"location": "string",
"properties": {
"actionConfiguration": {
"accessLevel": "string",
"identity": "string",
"mode": "string"
},
"agentIdentity": {
"initialSponsorGroupId": "string"
},
"defaultModel": {
"name": "string",
"provider": "string"
},
"incidentManagementConfiguration": {
"connectionKey": "string",
"connectionName": "string",
"connectionUrl": "string",
"oboUser": "string",
"type": "string"
},
"knowledgeGraphConfiguration": {
"identity": "string",
"managedResources": [ "string" ]
},
"logConfiguration": {
"applicationInsightsConfiguration": {
"appId": "string",
"connectionString": "string"
}
},
"upgradeChannel": "string"
},
"tags": {
"{customized property}": "string"
}
}
属性值
Microsoft.App/agents
| 名称 | 说明 | 价值 |
|---|---|---|
| apiVersion | API 版本 | '2026-01-01' |
| 标识 | 分配给此资源的托管服务标识。 | ManagedServiceIdentity |
| 位置 | 资源所在的地理位置 | string (必需) |
| 名字 | 资源名称 | string 约束: 模式 = ^[A-Za-z]([-A-Za-z0-9]{0,30}[A-Za-z0-9])$ (必需) |
| 性能 | 此资源的资源特定属性。 | 代理属性 |
| 标记 | 资源标记 | 标记名称和值的字典。 请参见模板中的标签 |
| 类型 | 资源类型 | “Microsoft.App/agents” |
ActionConfiguration
| 名称 | 说明 | 价值 |
|---|---|---|
| 访问级别 | 动作的访问级别 | 'High' 'Low' |
| 标识 | 动作所用的恒级元 | 字符串 |
| 模式 | 作用方式 | “自主” “ReadOnly” “评论” |
代理身份
| 名称 | 说明 | 价值 |
|---|---|---|
| 初始赞助组ID | 初始赞助人组ID(代理人身份要求) | string (必需) |
代理属性
| 名称 | 说明 | 价值 |
|---|---|---|
| actionConfiguration | 动作配置 | ActionConfiguration |
| agentIdentity | 用于访问资源的代理身份配置 | 代理身份 |
| defaultModel | 代理的默认AI模型配置 | 默认模型 |
| incidentManagementConfiguration | 事件管理配置 | 事件管理配置 |
| knowledgeGraphConfiguration | 智能体知识图谱配置 | KnowledgeGraphConfiguration |
| logConfiguration | 对井配置 | 日志配置 |
| upgradeChannel | 代理的升级通道 | 'Preview' 'Stable' |
ApplicationInsightsConfiguration
| 名称 | 说明 | 价值 |
|---|---|---|
| 应用程序ID | Application Insights 资源的应用 ID | 字符串 |
| connectionString | Application Insights 资源的连接字符串 | string 约束: 敏感值。 以安全参数的形式传入。 |
默认模型
| 名称 | 说明 | 价值 |
|---|---|---|
| 名字 | 型号名称(例如,gpt-5、claude-opus-4-5、claude-sonnet-4-5) | 字符串 |
| 提供商 | AI提供商名称(例如,MicrosoftFoundry,Anthropic) | 字符串 |
事件管理配置
| 名称 | 说明 | 价值 |
|---|---|---|
| 连接键 | 连接的关键 | string 约束: 敏感值。 以安全参数的形式传入。 |
| connectionName (连接名称) | 连接名称 | 字符串 |
| 连接网址 | 连接的网址 | 字符串 |
| oboUser | 连接用户 | 字符串 |
| 类型 | 事件管理系统的类型 | 字符串 |
KnowledgeGraphConfiguration
| 名称 | 说明 | 价值 |
|---|---|---|
| 标识 | 用于访问知识图谱的身份元 | 字符串 |
| managedResources | 代理管理的资源列表 | 字符串[] |
日志配置
| 名称 | 说明 | 价值 |
|---|---|---|
| applicationInsightsConfiguration | 应用洞察配置 | ApplicationInsightsConfiguration |
ManagedServiceIdentity
| 名称 | 说明 | 价值 |
|---|---|---|
| 类型 | 托管服务标识的类型(其中允许 SystemAssigned 和 UserAssigned 类型)。 | “None” “SystemAssigned” “SystemAssigned,UserAssigned” “UserAssigned”(必需) |
| userAssignedIdentities | 与资源关联的用户分配标识集。 userAssignedIdentities 字典密钥将为 ARM 资源 ID,格式为“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}”。 字典值可以是请求中的空对象({})。 | ManagedServiceIdentityUserAssignedIdentities |
ManagedServiceIdentityUserAssignedIdentities
| 名称 | 说明 | 价值 |
|---|
TrackedResourceTags
| 名称 | 说明 | 价值 |
|---|
UserAssignedIdentity
| 名称 | 说明 | 价值 |
|---|
Terraform (AzAPI 提供程序)资源定义
代理的资源类型可以部署用于针对以下操作:
- 资源组 关于每个API版本中变更属性的列表,请参见 更改日志。
资源格式
要创建 Microsoft.App/agents 资源,请将以下Terraform添加到你的模板中。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.App/agents@2026-01-01"
name = "string"
parent_id = "string"
identity {
type = "string"
identity_ids = [
"string"
]
}
location = "string"
tags = {
{customized property} = "string"
}
body = {
properties = {
actionConfiguration = {
accessLevel = "string"
identity = "string"
mode = "string"
}
agentIdentity = {
initialSponsorGroupId = "string"
}
defaultModel = {
name = "string"
provider = "string"
}
incidentManagementConfiguration = {
connectionKey = "string"
connectionName = "string"
connectionUrl = "string"
oboUser = "string"
type = "string"
}
knowledgeGraphConfiguration = {
identity = "string"
managedResources = [
"string"
]
}
logConfiguration = {
applicationInsightsConfiguration = {
appId = "string"
connectionString = "string"
}
}
upgradeChannel = "string"
}
}
}
属性值
Microsoft.App/agents
| 名称 | 说明 | 价值 |
|---|---|---|
| 标识 | 分配给此资源的托管服务标识。 | ManagedServiceIdentity |
| 位置 | 资源所在的地理位置 | string (必需) |
| 名字 | 资源名称 | string 约束: 模式 = ^[A-Za-z]([-A-Za-z0-9]{0,30}[A-Za-z0-9])$ (必需) |
| 性能 | 此资源的资源特定属性。 | 代理属性 |
| 标记 | 资源标记 | 标记名称和值的字典。 |
| 类型 | 资源类型 | “Microsoft.App/agents@2026-01-01” |
ActionConfiguration
| 名称 | 说明 | 价值 |
|---|---|---|
| 访问级别 | 动作的访问级别 | 'High' 'Low' |
| 标识 | 动作所用的恒级元 | 字符串 |
| 模式 | 作用方式 | “自主” “ReadOnly” “评论” |
代理身份
| 名称 | 说明 | 价值 |
|---|---|---|
| 初始赞助组ID | 初始赞助人组ID(代理人身份要求) | string (必需) |
代理属性
| 名称 | 说明 | 价值 |
|---|---|---|
| actionConfiguration | 动作配置 | ActionConfiguration |
| agentIdentity | 用于访问资源的代理身份配置 | 代理身份 |
| defaultModel | 代理的默认AI模型配置 | 默认模型 |
| incidentManagementConfiguration | 事件管理配置 | 事件管理配置 |
| knowledgeGraphConfiguration | 智能体知识图谱配置 | KnowledgeGraphConfiguration |
| logConfiguration | 对井配置 | 日志配置 |
| upgradeChannel | 代理的升级通道 | 'Preview' 'Stable' |
ApplicationInsightsConfiguration
| 名称 | 说明 | 价值 |
|---|---|---|
| 应用程序ID | Application Insights 资源的应用 ID | 字符串 |
| connectionString | Application Insights 资源的连接字符串 | string 约束: 敏感值。 以安全参数的形式传入。 |
默认模型
| 名称 | 说明 | 价值 |
|---|---|---|
| 名字 | 型号名称(例如,gpt-5、claude-opus-4-5、claude-sonnet-4-5) | 字符串 |
| 提供商 | AI提供商名称(例如,MicrosoftFoundry,Anthropic) | 字符串 |
事件管理配置
| 名称 | 说明 | 价值 |
|---|---|---|
| 连接键 | 连接的关键 | string 约束: 敏感值。 以安全参数的形式传入。 |
| connectionName (连接名称) | 连接名称 | 字符串 |
| 连接网址 | 连接的网址 | 字符串 |
| oboUser | 连接用户 | 字符串 |
| 类型 | 事件管理系统的类型 | 字符串 |
KnowledgeGraphConfiguration
| 名称 | 说明 | 价值 |
|---|---|---|
| 标识 | 用于访问知识图谱的身份元 | 字符串 |
| managedResources | 代理管理的资源列表 | 字符串[] |
日志配置
| 名称 | 说明 | 价值 |
|---|---|---|
| applicationInsightsConfiguration | 应用洞察配置 | ApplicationInsightsConfiguration |
ManagedServiceIdentity
| 名称 | 说明 | 价值 |
|---|---|---|
| 类型 | 托管服务标识的类型(其中允许 SystemAssigned 和 UserAssigned 类型)。 | “None” “SystemAssigned” “SystemAssigned,UserAssigned” “UserAssigned”(必需) |
| userAssignedIdentities | 与资源关联的用户分配标识集。 userAssignedIdentities 字典密钥将为 ARM 资源 ID,格式为“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}”。 字典值可以是请求中的空对象({})。 | ManagedServiceIdentityUserAssignedIdentities |
ManagedServiceIdentityUserAssignedIdentities
| 名称 | 说明 | 价值 |
|---|
TrackedResourceTags
| 名称 | 说明 | 价值 |
|---|
UserAssignedIdentity
| 名称 | 说明 | 价值 |
|---|