From d0ac9dc106bf557ad7d4ee2ce93f169e8e59c612 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 2 Mar 2026 16:57:15 +0000 Subject: [PATCH 1/2] Initial plan From 3f449573610564b78dd9763f344880aa4105eb35 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 2 Mar 2026 17:04:54 +0000 Subject: [PATCH 2/2] Fix: preserve agentBlueprintClientSecret in generated config on subsequent setup blueprint runs Co-authored-by: sellakumaran <147754920+sellakumaran@users.noreply.github.com> --- .../Commands/SetupSubcommands/BlueprintSubcommand.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Microsoft.Agents.A365.DevTools.Cli/Commands/SetupSubcommands/BlueprintSubcommand.cs b/src/Microsoft.Agents.A365.DevTools.Cli/Commands/SetupSubcommands/BlueprintSubcommand.cs index a254f617..731d04b0 100644 --- a/src/Microsoft.Agents.A365.DevTools.Cli/Commands/SetupSubcommands/BlueprintSubcommand.cs +++ b/src/Microsoft.Agents.A365.DevTools.Cli/Commands/SetupSubcommands/BlueprintSubcommand.cs @@ -499,6 +499,8 @@ public static async Task CreateBlueprintImplementationA ["identifierUri"] = $"api://{blueprintAppId}", ["tenantId"] = setupConfig.TenantId, ["resourceConsents"] = generatedConfig["resourceConsents"]?.DeepClone() ?? new JsonArray(), + ["agentBlueprintClientSecret"] = generatedConfig["agentBlueprintClientSecret"]?.DeepClone(), + ["agentBlueprintClientSecretProtected"] = generatedConfig["agentBlueprintClientSecretProtected"]?.DeepClone(), }; await File.WriteAllTextAsync(generatedConfigPath, camelCaseConfig.ToJsonString(new JsonSerializerOptions { WriteIndented = true }), cancellationToken);