Skip to content

[BUG]Duplicate subscriptions created when publishing to multiple environments #762

@CARLOSMECK

Description

@CARLOSMECK

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions