azuresdkci / azure-sdk-for-java

Microsoft Azure SDK for Java

Home Page:

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status

#Azure Management Libraries for Java

This README is based on the latest released preview version (1.0.0-beta2). If you are looking for other releases, see More Information

The Azure Management Libraries for Java is a higher-level, object-oriented API for managing Azure resources.

1.0.0-beta2 is a developer preview that supports major parts of Azure Compute, Storage, Networking and Resource Manager. The next preview version of the Azure Management Libraries for Java is a work in-progress. We will be adding support for more Azure services and tweaking the API over the next few months.

Azure Authentication

The Azure class is the simplest entry point for creating and interacting with Azure resources.

Azure azure = Azure.authenticate(credFile).withDefaultSubscription();

Create a Virtual Machine

You can create a virtual machine instance by using the define() … create() method chain.

System.out.println("Creating a Linux VM");

VirtualMachine linuxVM = azure.virtualMachines().define("myLinuxVM")

System.out.println("Created a Linux VM: " +;

Update a Virtual Machine

You can update a virtual machine instance by using the update() … apply() method chain.


Create a Network Security Group

You can create a network security group instance by using the define() … create() method chain.

NetworkSecurityGroup frontEndNSG = azure.networkSecurityGroups().define(frontEndNSGName)
        .withDescription("Allow SSH")
        .withDescription("Allow HTTP")

#Sample Code

You can find plenty of sample code that illustrates management scenarios in Azure Compute, Storage, Network and Resource Manager …



If you are using released builds from 1.0.0-beta2, add the following to your POM file:


or Gradle:

compile group: '', name: 'azure', version: '1.0.0-beta2'

Snapshots builds for this repo

If you are using snapshots builds for this repo, add the following repository and dependency to your POM file:

      <name>Sonatype Snapshots</name>

or Gradle:

repositories {
    maven { url "" }
compile group: '', name: 'azure', version: '1.0.0-SNAPSHOTS'



If you encounter any bugs with these libraries, please file issues via Issues or checkout StackOverflow for Azure Java SDK.

#Contribute Code

If you would like to become an active contributor to this project please follow the instructions provided in Microsoft Azure Projects Contribution Guidelines.

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

#More Information

Previous Releases and Corresponding Repo Branches

Version SHA1 Remarks
1.0.0-beta1 1.0.0-beta1 Maintenance branch for AutoRest generated raw clients
1.0.0-beta1+fixes v1.0.0-beta1+fixes Stable build for AutoRest generated raw clients
0.9.x-SNAPSHOTS 0.9 Maintenance branch for service management libraries
0.9.3 v0.9.3 Latest release for service management libraries

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact with any additional questions or comments.

ezoic increase your site revenue


Microsoft Azure SDK for Java

License:MIT License


Language:Java 99.9%Language:JavaScript 0.1%