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
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.Left
2.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