Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[BUG]Duplicate subscriptions created when publishing to multiple environments

Open
#762 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
azure, csharp
Domain
api, devops

Research direction

Start by reproducing the extractor pipeline and publisher pipeline flow described for subscriptions/ artifacts across Dev and Test. Compare how subscriptions with the same displayName and scope are handled in the target environment. Done should be defined as preventing duplicate logical subscriptions, or excluding them by default if that is the chosen behavior.

Written by the indexing model from the issue text.

Description

Release version

v6.0.1.7

Describe the bug

When using the APIOps publisher to deploy APIs across multiple environments (e.g., Dev → Test → Prod), subscriptions included in the Git repository result in duplicate subscriptions being created in each environment, even if the displayName and scope are the same.

Expected behavior

Subscriptions with the same displayName and scope should be treated as the same logical entity and not duplicated in other environments.

Alternatively, subscriptions could be considered runtime-only data and excluded entirely by default, unless explicitly managed.

Actual behavior

Publishing creates duplicate subscriptions with the same display name but separate keys and internal IDs, leading to confusion and clutter across environments.

Reproduction Steps
  1. Extract from Dev APIM instance using the extractor pipeline — this includes subscriptions/ artifacts.
  2. Commit the extracted subscriptions into the APIOps Git repo.
  3. Run the publisher pipeline against a different environment (e.g., Test).
  4. Observe that new subscriptions with identical displayName are created in Test, instead of reusing or matching existing ones.
Dominant language
C#
Stars
448
Forks
247
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Azure/apiops

All issues in Azure/apiops

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.