codeql-analysis markdown-link-check java_ci_with_maven_adopt

Spring Cloud Azure Samples

  • This is a sample project for demonstration purposes.

  • The project demonstrates how to use Spring Cloud Azure to develop applications.

  • The sample project contains 42 samples, and it still grows.

  • These samples are grouped by Azure services and Spring Cloud Azure libraries.

    For example: Use Spring Integration with single Azure Service Bus namespace, it located in the path /servicebus/spring-cloud-azure-starter-integration-servicebus.

    servicebus: The Azure service that the sample integrated with.

    spring-cloud-azure-starter-integration-servicebus: The dependency that the sample depends on.

Current Branch Supported versions

All active branches

Spring Boot Version Spring Cloud version Spring Cloud Azure Version
2.5.5 2021.0.0 4.0

All samples in this repo

Azure Service Spring Cloud Azure Starter Dependency Sample Project
AAD spring-cloud-azure-starter-active-directory-b2c:4.0.0-beta.4 aad-b2c-resource-server
AAD spring-cloud-azure-starter-active-directory-b2c:4.0.0-beta.4 aad-b2c-web-application
AAD spring-cloud-azure-starter-active-directory:4.0.0-beta.4 aad-resource-server-by-filter-stateless
AAD spring-cloud-azure-starter-active-directory:4.0.0-beta.4 aad-resource-server-by-filter
AAD spring-cloud-azure-starter-active-directory:4.0.0-beta.4 web-client-access-resource-server
AAD spring-cloud-azure-starter-active-directory:4.0.0-beta.4 aad-webapp-resource-server
App Configuration spring-cloud-azure-starter-data-cosmos:4.0.0-beta.4 azure-appconfiguration-conversion-sample-initial
App Configuration spring-cloud-azure-starter-data-cosmos:4.0.0-beta.4 azure-appconfiguration-conversion-sample-initial
App Configuration azure-spring-cloud-appconfiguration-config:2.3.0 azure-appconfiguration-sample
App Configuration azure-spring-cloud-feature-management:2.2.0 feature-management-sample
App Configuration azure-spring-cloud-feature-management:2.2.0 feature-management-web-sample
App Configuration azure-spring-cloud-appconfiguration-config:2.3.0 azure-appconfiguration-conversion-sample-complete
Cache N/A azure-spring-cloud-sample-cache
Cloud Foundry N/A azure-cloud-foundry-service-sample
Cosmos DB azure-spring-data-cosmos:3.17.0 cosmos-multi-database-multi-account
Cosmos DB azure-spring-data-cosmos:3.17.0 cosmos-multi-database-single-account
Cosmos DB spring-cloud-azure-starter-data-cosmos:4.0.0-beta.4 spring-cloud-azure-data-cosmos-sample
Cosmos DB spring-cloud-azure-starter-cosmos:4.0.0-beta.4 spring-cloud-azure-cosmos-sample
Event Hubs N/A spring-cloud-azure-sample-eventhubs-kafka
Event Hubs spring-cloud-azure-starter-integration-eventhubs:4.0.0-beta.4 eventhubs-integration
Event Hubs spring-cloud-azure-stream-binder-eventhubs:4.0.0-beta.4 eventhubs-binder
Event Hubs spring-cloud-azure-stream-binder-eventhubs:4.0.0-beta.4 eventhubs-multibinders
Key Vault azure-spring-boot-starter-keyvault-certificates:3.13.0 keyvault-certificates-client-side
Key Vault azure-spring-boot-starter-keyvault-certificates:3.13.0 keyvault-certificates-server-side
Key Vault run-with-command-line-server-side
Key Vault run-with-command-line-client-side
Key Vault spring-cloud-azure-starter-keyvault-secrets:4.0.0-beta.4 property-source
Key Vault spring-cloud-azure-starter-keyvault-secrets:4.0.0-beta.4 secret-client
Service Bus spring-cloud-azure-starter-servicebus-jms:4.0.0-beta.4 servicebus-jms-queue
Service Bus spring-cloud-azure-starter-servicebus-jms:4.0.0-beta.4 servicebus-jms-topic
Service Bus spring-cloud-azure-starter-integration-servicebus:4.0.0-beta.4 single-namespace
Service Bus spring-cloud-azure-starter-integration-servicebus:4.0.0-beta.4 multiple-namespaces
Service Bus spring-cloud-azure-stream-binder-servicebus:4.0.0-beta.4 servicebus-queue-binder
Service Bus spring-cloud-azure-stream-binder-servicebus:4.0.0-beta.4 servicebus-queue-multibinders
Service Bus spring-cloud-azure-stream-binder-servicebus:4.0.0-beta.4 servicebus-topic-binder
Service Bus spring-cloud-azure-stream-binder-servicebus:4.0.0-beta.4 servicebus-queue-binder-arm
Storage spring-cloud-azure-starter-storage-blob:4.0.0-beta.4 storage-blob-sample
Storage spring-cloud-azure-starter-storage-file-share:4.0.0-beta.4 storage-file-sample
Storage spring-cloud-azure-starter-integration-storage-queue:4.0.0-beta.4 storage-queue-integration
Storage spring-cloud-azure-starter-integration-storage-queue:4.0.0-beta.4 storage-queue-operation

Running Samples With Terraform

With terraform scripts and DefaultAzureCredential, most samples in the project can be run with the same 4 steps below:

# Step1 Initialize Terraform
terraform -chdir=./terraform init

# Step2 Apply your Terraform Configuration
terraform -chdir=./terraform apply -auto-approve

# Step3 Export Environment Valuables
source ./terraform/setup_env.sh

# Step4 Run With Maven
mvn clean spring-boot:run

It supports both Bash environment and PowerShell environment.
Please refer to README.md under each sample for detailed information.