close

Spring Cloud Azure

4.3

Spring Cloud Azure is an open-source project that provides seamless Spring integration with Azure services. It gives developers a Spring-idiomatic way to connect and consume Azure services, with only need few lines of configuration and minimal code changes. Once you’re ready to run your Spring app in the cloud, we recommend Azure Spring Apps. Azure Spring Apps is a fully managed Spring Cloud service, built and supported by the same team as Spring Cloud Azure.

Support

Azure support tickets

Customers with an Azure support plan can open an Azure support ticket. We recommend this option if your problem requires immediate attention.

GitHub issues

We use GitHub Issues to track bugs, questions, and feature requests. GitHub issues are free, but response time is not guaranteed. See GitHub issues support process for more details.

Features

Project features include:

Spring Cloud

Spring Boot

Spring Data

Spring Integration

Getting Started

The Azure Support entry contains auto-configuration support for Azure managed services. It also provides the capability to automatically inject properties from Cloud Foundry into your applications using Azure managed services. Let us take Spring Boot Starter for Azure Service Bus as an example. All Spring Cloud for Azure artifacts are made available through Maven Central. You can bootstrap your application with Spring Initializr and add the Azure Support dependency. Then you can add the usual azure-servicebus dependency to your project and the Spring Boot auto-configuration will automatically configure your Spring application with Azure Service Bus.

<dependency>
  <groupId>com.azure.spring</groupId>
  <artifactId>spring-cloud-azure-starter</artifactId>
</dependency>
<dependency>
  <groupId>com.azure</groupId>
  <artifactId>azure-messaging-servicebus</artifactId>
</dependency>

Alternatively, you can add the full name of the Spring Boot Starter for Azure Service Bus.

<dependency>
  <groupId>com.azure.spring</groupId>
  <artifactId>spring-cloud-azure-starter-servicebus</artifactId>
</dependency>

Run your Spring Boot applications

The best way to run Spring Boot apps on Azure is to use Azure Spring Apps, a fully managed Spring Cloud service, jointly built and operated by Microsoft and Pivotal (VMware). It enables Java developers to easily build and run Spring-boot based microservices on Azure with no code changes. Follow this tutorial to prepare a Java Spring application for deployment in Azure Spring Apps.

Additionally, you can deploy a Spring Boot application on

Spring Initializr

Quickstart Your Project

Bootstrap your application with Spring Initializr.

Documentation

Each Spring project has its own; it explains in great details how you can use project features and what you can achieve with them.
4.3 CURRENT GA Reference Doc.
4.2 GA Reference Doc.
2.2.0 GA Reference Doc.
2.1.7 GA Reference Doc.
2.0.7 GA Reference Doc.
1.0.0 GA Reference Doc.

A few examples to try out: