Skip to content

[BUG] Extractor is trying to read whole APIM instance when specific config provided - regression of bug #610 #830

@martin2176

Description

@martin2176

Release version

v7.0.0-beta.1.0.0

Describe the bug

I am specifying selected artifacts to extract. my configuration extractor below

apis: []
versionSets: []
workspaces: []
backends: []
namedValues: []
products: []
subscriptions: []
tags: []
policyFragments:
 - fragment1
 - fragment2
groups: []
loggers: []
diagnostics: []
gateways: []

When extractor runs, it reads all the APIM artifacts, tags,backends,products,subscriptions,fragments - everything from APIM instance. Once everything is read, then it extracts just the artifacts specified. In my case fragment1,2
But it reads the whole APIM instance.
In log, I can see extractor is using the extractor config.
CONFIGURATION_YAML_PATH ................... /home/runner/work/_temp/configuration-extractor.yaml
When you enable the LOG_LEVEL Trace on extractor you can see that it is iterating over everything on APIM instance and then skipping the artifacts not specified.
If LOG_LEVEL is not Trace then you get only the concise view which makes it look like it is not iterating over everything.
So pls enable LOG_LEVEL Trace to reproduce the problem
I have attached the log file from GHA.
Search for "Skipping" in log file where you can see extractor skipping. However you can also see extractor iterating over all artifacts on APIM.

Log file below (also attached txt file)
https://productionresultssa8.blob.core.windows.net/actions-results/d9b52932-638b-4c8e-a7c8-475d8e8f2637/workflow-job-run-017aeade-cb02-5306-870b-abd4511df790/logs/job/job-logs.txt?rsct=text%2Fplain&se=2026-02-21T11%3A05%3A09Z&sig=AYOa4r%2FH1s%2BVKaN4Ft%2BcoOaHAADf3QnzFF1ZcEmHSzk%3D&ske=2026-02-21T12%3A12%3A51Z&skoid=ca7593d4-ee42-46cd-af88-8b886a2f84eb&sks=b&skt=2026-02-21T08%3A12%3A51Z&sktid=398a6654-997b-47e9-b12b-9515b896b4de&skv=2025-11-05&sp=r&spr=https&sr=b&st=2026-02-21T10%3A55%3A04Z&sv=2025-11-05

Expected behavior

extractor should only read the artifacts specified in extractor config and not the entire APIM instance.
This is a major issue when APIM have 100s of artifacts and extractor is unnecessarily reading everything when it just have to extract 1 artifact

Actual behavior

extractor reads all resources/artifacts from APIM instance

Reproduction Steps

set version to v7.0.0-beta.1.0.0
extractor config

apis: []
versionSets: []
workspaces: []
backends: []
namedValues: []
products: []
subscriptions: []
tags: []
policyFragments:

  • fragment1
  • fragment2
    groups: []
    loggers: []
    diagnostics: []
    gateways: []

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