The Spring Initializer site indicates that Azure Active Directory can only be chosen for Spring Boot >= 3.3.0 and < 3.5.0-M1.
Azure Active Directory would add the following:
ext {
set('springCloudAzureVersion', "5.22.0")
}
dependencies {
implementation 'com.azure.spring:spring-cloud-azure-starter-active-directory'
...
}
dependencyManagement {
imports {
mavenBom "com.azure.spring:spring-cloud-azure-dependencies:${springCloudAzureVersion}"
}
}
I wasn't able to find any resources online about it, and everything seems to be working fine if I update an existing application to Spring Boot 3.5.0 that already has the dependency.
Spring Initializr’s “Add Azure Active Directory” option is driven by metadata in the Spring Cloud Azure starter, which declares exactly which Spring Boot versions are supported. As of the latest Spring Cloud Azure release (5.22.0), that starter only lists compatibility up through Spring Boot 3.4.x—specifically, 5.22.0 depends on Spring Boot 3.4.4. There is no published Spring Cloud Azure version that formally supports Spring Boot 3.5.0 yet please refer this github link.
Because Initializr reads those compatibility rules at project‐creation time, it will hide the Azure Active Directory checkbox whenever you pick Spring Boot 3.5.0. In other words, until a Spring Cloud Azure BOM is released that names Spring Boot 3.5.0 as a valid target, Initializr will refuse to offer the “azure-active-directory” starter for that Boot version.
Generate with Spring Boot 3.4.x, including “Azure Active Directory,” then manually increment your spring-boot
version to 3.5.0 afterward. Because the 5.22.0 BOM is known to work on 3.4.x, you’ll get the correct starter layout; once your project is up and running, bumping springBootVersion = '3.5.0'
usually works without further change.
Manually add the AAD starter in a 3.5.0 project. Even though Initializr won’t show it, you can simply paste these snippets into your build.gradle
(or equivalent Maven POM) and pull in the appropriate BOM yourself:
ext {
set('springCloudAzureVersion', '5.22.0')
}
dependencies {
implementation 'com.azure.spring:spring-cloud-azure-starter-active-directory'
// … any other dependencies
}
dependencyManagement {
imports {
mavenBom "com.azure.spring:spring-cloud-azure-dependencies:${springCloudAzureVersion}"
}
}
This forces Gradle (or Maven) to pull in Spring Cloud Azure 5.22.0, which is designed to work on Boot 3.4.x and in practice, it will also work just fine on 3.5.0 unless there is a breaking change in Boot itself.
As soon as the Spring Cloud Azure team publishes a new version (for example, 5.23.x) that explicitly declares support for Spring Boot 3.5.0 in its metadata, Initializr will once again display the “Azure Active Directory” option for that Boot version. Until then, generating with 3.4.x or adding the starter by hand are the two most straightforward workarounds.