Skip to content

Fix appconfig issues#2683

Merged
g2vinay merged 6 commits into
microsoft:mainfrom
g2vinay:fix-appconfig-issues
May 27, 2026
Merged

Fix appconfig issues#2683
g2vinay merged 6 commits into
microsoft:mainfrom
g2vinay:fix-appconfig-issues

Conversation

@g2vinay
Copy link
Copy Markdown
Contributor

@g2vinay g2vinay commented May 20, 2026

Fixed multiple bugs in the App Configuration toolset:
- Store lookup no longer passes subscription as both subscription-based arguments when resolving the store by name
- The user-supplied retry policy is now applied to all data-plane key-value operations (get, set, delete, lock); previously it was only applied to the ARM store-discovery call, causing custom retry settings to have no effect on actual configuration reads and writes
- The kv delete command response now includes an existed field (true if the key was present and deleted, false if it was already absent) and a human-readable message, allowing callers to distinguish a successful deletion from a no-op on a non-existent key

g2vinay added 4 commits May 20, 2026 00:38
…y, and delete response

- FindAppConfigStore: remove redundant subscriptionIdentifier parameter; error message now correctly names the missing store
- SetKeyValue: throw ArgumentException for tags missing '=' separator instead of silently creating empty-value tags
- GetConfigurationClient: apply user retry policy to ConfigurationClient (data-plane), not just the ARM discovery call
- DeleteKeyValue: return Task<bool> indicating whether the key existed before deletion; surfaces 'existed' field in kv delete response
- Update unit tests and docs to reflect new behavior
Response now includes 'message' field:
- 'Key <key> deleted successfully.' when the key existed and was removed
- 'Key <key> did not exist in store <store>.' when the key was already absent
Comment thread tools/Azure.Mcp.Tools.AppConfig/src/Services/AppConfigService.cs Outdated
Comment thread tools/Azure.Mcp.Tools.AppConfig/src/Commands/KeyValue/KeyValueDeleteCommand.cs Outdated
Comment thread servers/Azure.Mcp.Server/changelog-entries/1779262158643.yaml Outdated
@g2vinay g2vinay marked this pull request as ready for review May 27, 2026 19:23
Copilot AI review requested due to automatic review settings May 27, 2026 19:24
@g2vinay g2vinay requested review from a team, JonathanCrd and conniey as code owners May 27, 2026 19:24
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes App Configuration key-value operations by correcting store lookup arguments, applying retry options to data-plane clients, and surfacing whether delete operations actually removed an existing key.

Changes:

  • Removes the redundant subscription lookup parameter from App Configuration store discovery.
  • Applies configured retry policy to ConfigurationClient operations.
  • Adds existed/message delete result fields with tests and documentation/changelog updates.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tools/Azure.Mcp.Tools.AppConfig/src/Services/AppConfigService.cs Updates delete return value, store lookup signature, and retry policy configuration.
tools/Azure.Mcp.Tools.AppConfig/src/Services/IAppConfigService.cs Changes delete contract to return whether the key existed.
tools/Azure.Mcp.Tools.AppConfig/src/Commands/KeyValue/KeyValueDeleteCommand.cs Adds delete result metadata and user-facing message.
tools/Azure.Mcp.Tools.AppConfig/tests/Azure.Mcp.Tools.AppConfig.Tests/KeyValue/KeyValueDeleteCommandTests.cs Updates command tests for new delete response behavior.
tools/Azure.Mcp.Tools.AppConfig/tests/Azure.Mcp.Tools.AppConfig.Tests/Services/AppConfigServiceTests.cs Updates regression guard for store lookup signature.
servers/Azure.Mcp.Server/docs/azmcp-commands.md Documents delete response shape.
servers/Azure.Mcp.Server/changelog-entries/1779262158643.yaml Adds changelog entry for the App Configuration fixes.

Comment thread servers/Azure.Mcp.Server/docs/azmcp-commands.md Outdated
Comment thread tools/Azure.Mcp.Tools.AppConfig/src/Services/AppConfigService.cs Outdated
Comment thread tools/Azure.Mcp.Tools.AppConfig/src/Services/AppConfigService.cs Outdated
@github-project-automation github-project-automation Bot moved this from Untriaged to In Progress in Azure MCP Server May 27, 2026
@g2vinay g2vinay merged commit 8a834b2 into microsoft:main May 27, 2026
15 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Azure MCP Server May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants