代理 365 CLI config 命令参考

重要

您需要加入 Frontier 预览计划 ,才能提前获得 Microsoft Agent 365 的 访问权限 。 Frontier将你直接连接到Microsoft最新的人工智能创新。 Frontier预览受现有客户协议的预览条款约束。 由于这些功能仍在开发中,其可用性和功能可能会随着时间发生变化。

管理代理 365 CLI 配置。 该 config 命令提供用于管理代理 365 CLI 配置设置的选项。 可以交互方式初始化新配置,也可以显示当前配置设置。

所需的最低角色:无(本地配置)

Syntax

a365 config [command] [options]

选项

选项 Description
-?-h--help 显示帮助和使用情况信息

config init

以交互方式配置代理 365 CLI 或从文件导入。

a365 config init [options]

此命令允许通过交互式进程或通过从现有配置文件导入设置来设置代理 365 CLI 配置。

config display

显示当前代理 365 CLI 配置。

a365 config display [options]

此命令显示代理 365 CLI 的当前配置设置,允许查看当前设置。

配置文件结构

CLI 使用以下键属性的 JSON 配置文件 (a365.config.json):

{
  "$schema": "./a365.config.schema.json",
  "tenantId": "your-tenant-id",
  "subscriptionId": "your-subscription-id",
  "resourceGroup": "rg-Agent 365-example",
  "location": "westus",
  "appServicePlanName": "asp-Agent 365-example",
  "appServicePlanSku": "B1",
  "webAppName": "webapp-Agent 365-example",
  "agentBlueprintDisplayName": "My Agent 365 Blueprint",
  "agentIdentityDisplayName": "My Agent 365 Agent",
  "agentUserPrincipalName": "agent@contoso.onmicrosoft.com",
  "agentUserDisplayName": "My Agent 365 User",
  "managerEmail": "manager@contoso.onmicrosoft.com",
  "agentUserUsageLocation": "US",
  "agentIdentityScopes": [
    "User.Read",
    "Mail.Send",
    "Calendars.ReadWrite",
    "Files.ReadWrite"
  ],
  "agentApplicationScopes": [
    "Mail.ReadWrite",
    "Chat.ReadWrite",
    "Sites.Read.All"
  ],
  "deploymentProjectPath": ".",
  "deploymentProjectFile": "YourProject.csproj",
  "botName": "my-Agent 365-bot",
  "botDescription": "My AI-powered agent for Microsoft 365 tasks"
}

注释

目前,该属性可用的 location 区域受到限制。 详细了解这些临时可用性限制