Skip to content

[Question] APIM Publish is not working after extraction and getting error of version set #880

Description

@Indranil999176

Release version

Old method (version < 3.0.0) API OPs

Question Details

System.Net.Http.HttpRequestException: HTTP request to URI https://management.azure.com/subscriptions/***/resourceGroups//providers/Microsoft.ApiManagement/service//apis/aiaut-smart-ingest-test-v1;rev=1?api-version=2023-09-01-preview failed with status code 400. Content is '{"error":{"code":"ValidationError","message":"Resource id '/subscriptions/***/resourceGroups//providers/Microsoft.ApiManagement/service//apiVersionSets/6aba9dd53fc6d87451c5577d' references APIM service '', which is different from the service '' targeted by the request. Cross-service resource references are not allowed.","details":null}}'.
at common.HttpPipelineExtensions.<>c__DisplayClass11_0.b__0(Response response) in /home/runner/work/apiops/apiops/tools/code/common/Http.cs:line 173
at LanguageExt.Either.Left2.Match[B](Func2 Left, Func`2 Right)

Expected behavior

Earlier it was deploying the same version set extracted by API ops to higher env.

Actual behavior

Earlier it was deploying the same version set extracted by API ops to higher env.

Reproduction Steps

After extraction when trying to publish the API to higher env

Activity

  1. github-actions commented on Sep 29, 2026

    @github-actions
      Thank you for opening this issue! Please be patient while we will look into it and get back to you as this is an open source project. In the meantime make sure you take a look at the [closed issues](https://github.com/Azure/apiops/issues?q=is%3Aissue+is%3Aclosed) in case your question has already been answered. Don't forget to provide any additional information if needed (e.g. scrubbed logs, detailed feature requests,etc.).
      Whenever it's feasible, please don't hesitate to send a Pull Request (PR) our way. We'd greatly appreciate it, and we'll gladly assess and incorporate your changes.
    
  2. waelkdouh commented on Sep 29, 2026

    @waelkdouh
    Contributor

    please migrate to the new APIops CLI which is referenced at the landing page. We are not supporting this project moving forward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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