# Issue enabling AI Code Fix with Azure Open AI provider

**URL:** <https://community.sonarsource.com/t/issue-enabling-ai-code-fix-with-azure-open-ai-provider/180249>\
**Category:** SonarQube Server / Community Build\
**Tags:** ai-codefix, sonarqube-server\
**Created:** [March 24, 2026, 12:24pm UTC](https://community.sonarsource.com/t/issue-enabling-ai-code-fix-with-azure-open-ai-provider/180249 "2026-03-24T12:24:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cdaltamirano](https://avatars.discourse-cdn.com/v4/letter/c/53a042/32.png) [@cdaltamirano](https://community.sonarsource.com/u/cdaltamirano)\
**Post date:** [March 24, 2026, 12:24pm UTC](https://community.sonarsource.com/t/issue-enabling-ai-code-fix-with-azure-open-ai-provider/180249/1 "2026-03-24T12:24:48Z")

</div>

Hello,

We are encountering an issue when trying to enable **AI Code Fix** with a self-hosted provider (Azure OpenAI) in our SonarQube Server instance.

We have verified connectivity with `api.sonarqube.io`. The tests confirm:

- DNS resolution works correctly

- TCP connection is successful

Despite this connectivity, the feature cannot be activated. The UI displays the following error:

> _Fail to save settings. Request failed with status code 400_

In addition, the `web.log` file shows the following messages:

```bash
2026.03.16 12:17:51 WARN web[4a4b6bcb-2ff8-441e-a648-bc3577f7d240][o.s.w.s.PageNotFound] No mapping for GET /api/v2/fix-suggestions
2026.03.16 12:17:51 ERROR web[4a4b6bcb-2ff8-441e-a648-bc3577f7d240][o.s.s.w.WebService$RestResponseEntityExceptionHandler] Resource not found.
at org.springframework.web.servlet.DispatcherServlet.noHandlerFound(DispatcherServlet.java:1177)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:953)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:866)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1003)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:892)
at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:622)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:874)
at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:710)
at org.sonar.server.platform.web.ApiV2Servlet.service(ApiV2Servlet.java:116)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:128)
at org.sonar.server.platform.web.WebPagesFilter.doFilter(WebPagesFilter.java:79)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:107)
at org.sonar.server.platform.web.MasterServletFilter$GodFilterChain.doFilter(MasterServletFilter.java:167)
at org.sonar.server.platform.web.MasterServletFilter$HttpFilterChainAdapter.doFilter(MasterServletFilter.java:208)
at org.sonar.server.platform.web.NoCacheFilter.doFilter(NoCacheFilter.java:34)
at org.sonar.server.platform.web.MasterServletFilter$JavaxFilterAdapter.doFilter(MasterServletFilter.java:194)
at org.sonar.server.platform.web.MasterServletFilter$GodFilterChain.doFilter(MasterServletFilter.java:165)
at org.sonar.server.platform.web.MasterServletFilter.doFilter(MasterServletFilter.java:126)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:107)
at org.sonar.server.platform.web.UserSessionFilter.doFilter(UserSessionFilter.java:83)
at org.sonar.server.platform.web.UserSessionFilter.doFilter(UserSessionFilter.java:70)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:107)
at org.sonar.server.platform.web.CspFilter.doFilter(CspFilter.java:67)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:107)
at org.sonar.server.platform.web.CacheControlFilter.doFilter(CacheControlFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:107)
at org.sonar.server.platform.web.SecurityServletFilter.doHttpFilter(SecurityServletFilter.java:60)

```

Here are the details of our SonarQube environment:

- **Version:** 2026.1.0.119033 Enterprise Edition

- **Deployment method:** zip

Could you please advise on any additional configuration or requirements needed to successfully enable AI Code Fix in this scenario?

Thank you in advance for your support.

---

<div class="post-metadata">

**Author:** ![Joe](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/joe/32/14820_2.png) [@Joe](https://community.sonarsource.com/u/Joe)\
**Post date:** [March 24, 2026, 8:03pm UTC](https://community.sonarsource.com/t/issue-enabling-ai-code-fix-with-azure-open-ai-provider/180249/3 "2026-03-24T20:03:24Z")

</div>

Hello @cdaltamirano ,

We have fixed this problem in SonarQube Server 2026.2. Please update your SonarQube instance.

If you plan to stay on SonarQube Server 2026.1 LTA, we have a bug fix/improvement planned to backport: [SONAR-27243](https://sonarsource.atlassian.net/browse/SONAR-27243). We tentatively plan to release this in April 2026.
