Agent 365 CLI
這很重要
你需要參加 Frontier 預覽計畫 ,才能 搶先取得 Microsoft Agent 365 的使用權。 Frontier 直接連結你與 Microsoft 最新的 AI 創新。 Frontier 預覽受限於您現有的客戶協議預覽條款。 由於這些功能仍在開發中,其可用性與功能可能會隨時間改變。
管理 Agent 365 CLI 設定。 此 config 指令提供管理 Agent 365 CLI 設定設定的選項。 你可以互動式初始化新設定或顯示目前的設定。
最低需求角色:無(本地配置)
語法
a365 config [command] [options]
選項
| Option | Description |
|---|---|
-?、-h、--help |
顯示說明與使用資訊 |
config init
可互動式設定 Agent 365 CLI,或從檔案匯入。
a365 config init [options]
此指令允許您透過互動式流程或從現有設定檔匯入設定來設定 Agent 365 CLI 設定。
config display
顯示目前 Agent 365 CLI 設定。
a365 config display [options]
此指令顯示 Agent 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 有限。
了解更多關於這些臨時可用性限制的資訊