[BUG] APIM diagnostics App insights publish failed first time, when I publish run pipeline again and select publish all artifact publish is getting success, it will happen every time.
- Vorherrschende Sprache
- C#
- Sterne
- 448
- Forks
- 247
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
### Release version
5.1.3
### Describe the bug
APIM diagnostics App insights publish failed first time, when I publish run pipeline again and select publish all artifact publish is getting success, it will happen every time without making any changes in QA config file and getting below error.
System.Net.Http.HttpRequestException: HTTP request to URI https://management.azure.com/subscriptions/***/resourceGroups/rg-test/providers/Microsoft.ApiManagement/service/ag-int-test/diagnostics/applicationinsights?api-version=2022-04-01-preview failed with status code 412. Content is '{"error":{"code":"PreconditionFailed","message":"Exception of type 'Microsoft.WindowsAzure.ApiManagement.Management.Core.Exceptions.PreconditionFailedException' was thrown.","details":null}}'.
### Expected behavior
without make any changes in QA config file, it should be published.
### Actual behavior
when I approve PR, publish pipeline will start trigger to dev env and it will get success. When I approve changes to QA it's getting failed.
when I run manual trigger and select publish all artifact, publish is getting success. I haven't done any changes in QA env config file before approving PR. I was already configured all loggers and diagnostics inside the QA config file.
Without manual pipeline trigger, changes to go to QA env's.
### Reproduction Steps
Rename App insight name and add newly modified App insight in APIM logger and update it into named values and also update modified appinsights name into QA config file.
Beitragsleitfaden
Rechercherichtung
Beginne damit, den von APIM diagnostics und Application Insights verwendeten Veröffentlichungsweg nachzuverfolgen, wenn Änderungen an QA genehmigt werden, und konzentriere dich auf die management.azure.com-Anfrage, die HTTP 412 zurückgibt. Vergleiche die erste Veröffentlichung mit dem erfolgreichen manuellen Lauf „publish all artifact“ und untersuche die betreffende QA-Konfiguration. Als erledigt gilt die Aufgabe, wenn QA beim ersten Pipeline-Lauf ohne Konfigurationsänderungen erfolgreich veröffentlicht wird.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- azure, csharp
- Bereich
- api, cloud, devops
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100