Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

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

Abierto
#880 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Activo
Stack tecnológico
azure, csharp
Área
api, cloud

Línea de trabajo

Start with the publish flow and the request handling shown in tools/code/common/Http.cs at line 173, then trace how the extracted API version-set reference is used for a higher environment. Reproduce the publish failure from the stated steps and compare the referenced APIM service with the target service. Done means publishing the extracted API without the cross-service resource-reference error.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
C#
Estrellas
449
Forks
248
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Azure/apiops

Todos los issues de Azure/apiops

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.