Azure / Azure/apiops

[BUG]Duplicate subscriptions created when publishing to multiple environments

Open
#762 2 comments 2 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
448
Forks
247
PR merge metrics
No merged PRs in 30d

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.