diff --git a/CHANGELOG.md b/CHANGELOG.md index ac2801d6..212f6127 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -107,6 +107,7 @@ Agents provisioned before this release need `Agent365.Observability.OtelWrite` g - Agent registration endpoint promoted from `/stagingbeta/copilot/agentRegistrations` to `/beta/copilot/agentRegistrations` ### Removed +- `a365 create-instance` command — temporarily removed due to differences in instance creation via Teams and CLI. - `a365 deploy` command (`deploy app`, `deploy mcp`) — Azure App Service hosting is no longer managed by the CLI. Provide a `messagingEndpoint` in `a365.config.json` pointing to your externally hosted agent. - `a365 setup infrastructure` subcommand — Azure App Service and App Service Plan provisioning has been removed. Hosting infrastructure must be provisioned externally before running `a365 setup all`. - Config properties `subscriptionId`, `resourceGroup`, `appServicePlanName`, `appServicePlanSku`, `webAppName`, `needDeployment`, `location` — removed from `a365.config.json`. Generated config properties `deploymentLastTimestamp`, `deploymentLastStatus`, `deploymentLastCommitHash`, `deploymentLastBuildId` have also been removed. diff --git a/src/Microsoft.Agents.A365.DevTools.Cli/Commands/PublishCommand.cs b/src/Microsoft.Agents.A365.DevTools.Cli/Commands/PublishCommand.cs index 5a2ccf1c..cbf6659c 100644 --- a/src/Microsoft.Agents.A365.DevTools.Cli/Commands/PublishCommand.cs +++ b/src/Microsoft.Agents.A365.DevTools.Cli/Commands/PublishCommand.cs @@ -72,8 +72,7 @@ public static Command CreateCommand( var aiTeammateOption = new Option( "--aiteammate", - description: "true = AI Teammate agent: setup provisions blueprint and permissions only;\n" + - " run 'a365 create-instance' separately to create the agent identity SP and Entra user.\n" + + description: "true = AI Teammate agent: setup provisions blueprint and permissions only.\n" + "false = blueprint-only agent: setup auto-creates agent identity SP; no Entra user (default)\n" + "Overrides the aiTeammate field in a365.config.json"); diff --git a/src/Microsoft.Agents.A365.DevTools.Cli/Commands/QueryEntraCommand.cs b/src/Microsoft.Agents.A365.DevTools.Cli/Commands/QueryEntraCommand.cs index 5f114cf3..1a8f3a74 100644 --- a/src/Microsoft.Agents.A365.DevTools.Cli/Commands/QueryEntraCommand.cs +++ b/src/Microsoft.Agents.A365.DevTools.Cli/Commands/QueryEntraCommand.cs @@ -272,7 +272,7 @@ private static Command CreateInstanceScopesSubcommand( } else { - logger.LogError("No agent identity found in configuration. Please run 'a365 create-instance' first."); + logger.LogError("No agent identity found in configuration. Please create an agent instance first."); logger.LogInformation("An agent identity must be created before you can query OAuth2 grants."); context.ExitCode = 1; return; diff --git a/src/Microsoft.Agents.A365.DevTools.Cli/Commands/SetupSubcommands/AllSubcommand.cs b/src/Microsoft.Agents.A365.DevTools.Cli/Commands/SetupSubcommands/AllSubcommand.cs index 3ba09fa9..5920f52e 100644 --- a/src/Microsoft.Agents.A365.DevTools.Cli/Commands/SetupSubcommands/AllSubcommand.cs +++ b/src/Microsoft.Agents.A365.DevTools.Cli/Commands/SetupSubcommands/AllSubcommand.cs @@ -109,8 +109,7 @@ public static Command CreateCommand( var aiTeammateOption = new Option( "--aiteammate", - description: "AI Teammate agent: setup provisions blueprint and permissions only;\n" + - "run 'a365 create-instance' separately to create the agent identity SP and Entra user.\n" + + description: "AI Teammate agent: setup provisions blueprint and permissions only.\n" + "Omit for blueprint-only agent (default): setup auto-creates agent identity SP; no Entra user.\n" + "Overrides the aiTeammate field in a365.config.json"); diff --git a/src/Microsoft.Agents.A365.DevTools.Cli/Models/Agent365Config.cs b/src/Microsoft.Agents.A365.DevTools.Cli/Models/Agent365Config.cs index dfe30532..fa9afa1c 100644 --- a/src/Microsoft.Agents.A365.DevTools.Cli/Models/Agent365Config.cs +++ b/src/Microsoft.Agents.A365.DevTools.Cli/Models/Agent365Config.cs @@ -213,8 +213,7 @@ private static void ValidateAuthMode(string? value, List errors) /// /// Controls which setup and publish flow is used. - /// true (default) = AI Teammate agent: setup all provisions blueprint and permissions only; - /// agent identity SP and Entra user are created separately via 'a365 create-instance'. + /// true (default) = AI Teammate agent: setup all provisions blueprint and permissions only. /// false = blueprint-only agent: setup all auto-creates agent identity SP; no Entra user. Two variants: /// - UseBlueprint = false: App Registration + Azure Bot, no blueprint. /// - UseBlueprint = true: Blueprint-only non-DW flow (Agent Identity Blueprint + Agent Instance). diff --git a/src/Microsoft.Agents.A365.DevTools.Cli/Program.cs b/src/Microsoft.Agents.A365.DevTools.Cli/Program.cs index 75b5c1d0..cc780cff 100644 --- a/src/Microsoft.Agents.A365.DevTools.Cli/Program.cs +++ b/src/Microsoft.Agents.A365.DevTools.Cli/Program.cs @@ -120,7 +120,6 @@ await Task.WhenAll( // Get loggers and services var setupLogger = serviceProvider.GetRequiredService>(); - var createInstanceLogger = serviceProvider.GetRequiredService>(); var queryEntraLogger = serviceProvider.GetRequiredService>(); var cleanupLogger = serviceProvider.GetRequiredService>(); var publishLogger = serviceProvider.GetRequiredService>(); @@ -150,9 +149,6 @@ await Task.WhenAll( var confirmationProvider = serviceProvider.GetRequiredService(); rootCommand.AddCommand(SetupCommand.CreateCommand(setupLogger, configService, executor, backendConfigurator, azureAuthValidator, platformDetector, graphApiService, agentBlueprintService, blueprintLookupService, federatedCredentialService, clientAppValidator, confirmationProvider, armApiService, resolver: bootstrapResolver)); - rootCommand.AddCommand(CreateInstanceCommand.CreateCommand(createInstanceLogger, configService, executor, - graphApiService, resolver: bootstrapResolver)); - var manifestTemplateService = serviceProvider.GetRequiredService(); rootCommand.AddCommand(QueryEntraCommand.CreateCommand(queryEntraLogger, configService, executor, graphApiService, agentBlueprintService, resolver: bootstrapResolver)); rootCommand.AddCommand(CleanupCommand.CreateCommand(cleanupLogger, configService, backendConfigurator, executor, agentBlueprintService, confirmationProvider, federatedCredentialService, azureAuthValidator, graphApiService, resolver: bootstrapResolver));