java-on-azure-examples icon indicating copy to clipboard operation
java-on-azure-examples copied to clipboard

Java on Azure examples

Java on Azure Examples

This GitHub repository contains a set of Azure examples specifically for Java developers to quickly get started with Azure. Please use the issue tracker to leave feedback, file issues or to propose other examples.

Getting started

To work with these examples it is assumed you have the Azure CLI installed, and you have logged in and set your default subscription. If you haven't done so follow the steps below.

Note: Logging in and setting your default subscription needs to be done once per terminal session.

Install Azure CLI

To setup the Azure CLI, please visit Install the Azure CLI. And once you are done come back to this README.

Login into Azure

  az login

Set your default subscription

Get a list of your subscriptions (notice the refresh parameter that retrieves up-to-date subscriptions from the server) :

  az account list --output table --refresh

Set your default subscription for this session using the subscription id from the previous output:

  az account set --subscription "subscription-id"

Our alphabetical list of examples

  1. Azure App Service examples
  2. Azure Cache for Redis examples
  3. Azure Container Apps examples
  4. Azure Container Instances examples
  5. Azure Container Registry examples
  6. Azure Cosmos DB examples
  7. Azure Data Explorer examples
  8. Azure Database for MySQL examples
  9. Azure Database for PostgreSQL examples
  10. Azure Event Hubs examples
  11. Azure Functions examples
  12. Azure Key Vault examples
  13. Azure Kubernetes Service examples
  14. Azure Monitor examples
  15. Azure Networking examples
  16. Azure Red Hat OpenShift examples
  17. Azure Resource Group examples
  18. Azure Service Bus examples
  19. Azure Spring Apps examples
  20. Azure SQL Database examples
  21. Azure Storage examples

Contributing

How do I contribute? See Contributing