Skip to content

Java examples on Microsoft Azure. How to manage Virtual Machines instances, Blob Storage, Azure Functions, etc.

License

Notifications You must be signed in to change notification settings

alfonsof/azure-java-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java examples on Microsoft Azure

This repo contains Java code examples on Microsoft Azure.

These examples show how to use Java 8, Azure Management Libraries for Java and Azure SDKs for Java in order to manage services on Microsoft Azure.

Azure Management Libraries for Java and Azure SDKs for Java allow Java developers to write software that makes use of Azure services like Virtual Machines and Blob storage.

Azure offers two different kinds of API:

  • Azure Management Libraries for Java: It is a higher-level, object-oriented API for managing Azure resources, that is optimized for ease of use, succinctness and consistency.
  • Azure SDKs for Java: It enables the programmatic consumption of miscellaneous Azure services (not management).

Quick start

You must have a Microsoft Azure subscription.

The code for the samples is contained in individual folders on this repository.

For instructions on running the code, please consult the README in each folder.

This is the list of examples:

Compute - Azure Virtual Machines:

  • azurevm - Azure Virtual Machines: Example of how to handle Azure Virtual Machines. It uses Azure Management Libraries for Java.

Compute - Azure Functions:

  • azurefunctionhttprequest - Azure Function HTTP Request: Example of how to handle an Azure Function that responds to an HTTP request.
  • azurefunctionblobevent - Azure Function Blob Storage event: Example of how to handle an Azure Function that responds to a Blob Storage event (trigger) when a blob appears in a blob storage.
  • azurefunctionblobcopy - Azure Function Blob Storage copy: Example of how to handle an Azure Function that responds to a Blob Storage event (trigger) and copy the blob when it appears in a blob storage to another blob storage.
  • azurefunctionblobmove - Azure Function Blob Storage move: Example of how to handle an Azure Function that responds to a Blob Storage event (trigger) and move the blob when it appears in a blob storage to another blob storage.
  • azurefunctioneventgridevent - Azure Function Event Grid event: Example of how to handle an Azure Function that responds to an Event Grid event (trigger) when an event is sent to an Event Grid topic.
  • azurefunctioneventhubevent - Azure Function Event Hub event: Example of how to handle an Azure Function that responds to an Event Hub event (trigger) when an event is sent to an event hub event stream.

Storage - Azure Blob Storage:

  • azureblobstoragecreate - Azure Blob Storage Create: Example of how to handle Azure Blob Storage and create a new Blob Storage container in an Azure storage account. It uses Azure SDKs for Java.
  • azureblobstoragedelete - Azure Blob Storage Delete: Example of how to handle Azure Blob Storage and delete a Blob Storage container in an Azure storage account. It uses Azure SDKs for Java.
  • azureblobstoragelist - Azure Blob Storage List: Example of how to handle Azure Blob Storage and list the blobs in a Blob Storage container in an Azure storage account. It uses Azure SDKs for Java.
  • azureblobstoragelistall - Azure Blob Storage List All: Example of how to handle Azure Blob Storage and list the blobs in all Blob Storage containers in an Azure storage account. It uses Azure SDKs for Java.
  • azureblobstorageupload - Azure Blob Storage Upload: Example of how to handle Azure Blob Storage and upload a local file to a Blob Storage container in an Azure storage account. It uses Azure SDKs for Java.
  • azureblobstoragedownload - Azure Blob Storage Download: Example of how to handle Azure Blob Storage and download a Blob from a Blob Storage container in an Azure storage account. It uses Azure SDKs for Java.
  • azureblobstoragedeleteobject - Azure Blob Storage Delete Object: Example of how to handle Azure Blob Storage and delete a Blob in a Blob Storage container in an Azure storage account.
  • azureblobstoragecopy - Azure Blob Storage Copy: Example of how to handle Azure Blob Storage and copy a Blob from a Blob Storage container to another Blob Storage container in an Azure storage account. It uses Azure SDKs for Java.
  • azureblobstoragemove - Azure Blob Storage Move: Example of how to handle Azure Blob Storage and move a Blob from a Blob Storage container to another Blob Storage container in an Azure storage account. It uses Azure SDKs for Java.

Messaging and Event Services - Azure Event Grid, Azure Event Hub:

  • azureeventgridsendevent - Azure Event Grid send event: Example of how to handle an Event Grid and send events to an Event Grid Topic.
  • azureeventhubsendevent - Azure Event Hub send event: Example of how to handle an Event Hub and send events to an event hub event stream.
  • azureeventhubreceiveevent - Azure Event Hub receive event: Example of how to handle an Event Hub and receive events from an event hub event stream.

License

This code is released under the MIT License. See LICENSE file.

About

Java examples on Microsoft Azure. How to manage Virtual Machines instances, Blob Storage, Azure Functions, etc.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages