Overview
Learn
Samples
The Spring on Azure project is designed to provide seamless Spring integration with Azure managed services. Developers can adopt a Spring-idiomatic way to take advantage of managed services on Azure, with only few lines of configuration and minimal code changes.
Features
Project features include:
Spring Cloud
Spring Cloud Stream Binder for Azure Event Hubs (native API and Apache Kafka API), including Spring Integration Channel Adapters
Spring Cloud Stream Binder for Azure Service Bus Topic and Queue, including Spring Integration Channel Adapters
Spring Resource Abstraction for Azure Storage
Spring Cache auto-configuration for Azure Cache for Redis
Spring Cloud Functions in Azure
Spring Cloud Config for Azure App Configuration (Preview)
Spring Boot
Azure support
Spring Boot Starter for Azure Active Directory
Spring Boot Starter for Azure Key Vault
Spring Boot Starter for Azure Storage store
Spring Boot Starter for Micrometer with Application Insights
Spring Boot Starter for Azure Media Services
Spring Boot Starter for Azure Active Directory B2C
Spring Boot Starter for Azure Cosmos DB
Spring Boot Starter for Azure Service Bus
Spring Boot Starter for Azure Service Bus with JMS
Spring Boot Starter for Spring Data Gremlin with Azure Cosmos DB and any Gremlin-compatible data store
Spring Boot Starter for Micrometer with Application Insights
Spring Boot Starter for Azure Media Services
Spring Data
Spring Data JPA - Azure MySQL, Azure PostgreSQL, Microsoft SQL Server
Spring Data JDBC - Azure MySQL, Azure PostgreSQL, Microsoft SQL Server
Spring Data MongoDB - Azure MongoDB (via Azure Cosmos DB)
Spring Data for Apache Cassandra - Azure Cassandra (via Azure CosmosDB)
Spring Data Azure Cosmos DB - Azure Cosmos DB
Spring Data Redis - Azure Cache for Redis
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.
com.microsoft.azure azure-spring-boot-starter com.microsoft.azure azure-servicebusAlternatively, you can add the full name of the Spring Boot Starter for Azure Service Bus.
com.microsoft.azure azure-servicebus-spring-boot-starterRun your Spring Boot applications
The best way to run Spring Boot apps on Azure is to use Azure Spring Cloud, 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 Cloud.
Additionally, you can deploy a Spring Boot application on
Azure App Service on Linux
Azure Kubernetes Service
Spring Initializr
Quickstart Your Project
Bootstrap your application with Spring Initializr.