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

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