nilaydshah / azure-sdk-for-java

Microsoft Azure SDK for Java

Home Page:

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status #Microsoft Azure SDK for Java

This project provides a client library in Java that makes it easy to consume Microsoft Azure services. For documentation please see the JavaDocs. For a list of libraries and how they are organized, please see the [Azure SDK for Java Features Wiki page] (

#Download Notes: If you are using snapshots builds from beta1 we recommend going to and find the exact version number. The latest beta1 snapshot versions are

  • client-runtime: 1.0.0-20160513.000825-29
  • azure-client-runtime: 1.0.0-20160513.000812-28
  • azure-client-authentication: 1.0.0-20160513.000802-24

To compile either this repo, you need snapshot builds in sonatype snapshots repository. Add the following to your pom:

      <name>Sonatype Snapshots</name>

or Gradle:

repositories {
    maven { url "" }

#Getting Started You will need Java v1.7+. If you would like to develop on the SDK, you will also need maven.

Azure Resource Manager (ARM) Usage

ResourceManagementClient client = new ResourceManagementClientImpl(
    new ApplicationTokenCredentials("client-id", "tenant-id", "secret", null) // see Authentication

ResourceGroup group = new ResourceGroup();
group.setLocation("West US");
client.getResourceGroups().createOrUpdate("myresourcegroup", group);


The first step to using the SDK is authentication and permissioning. For people unfamilar with Azure this may be one of the more difficult concepts. For a reference on setting up a service principal from the command line see Authenticating a service principal with Azure Resource Manager or Unattended Authentication. For a more robust explanation of authentication in Azure, see Developer’s guide to auth with Azure Resource Manager API.

After creating the service principal, you should have three pieces of information, a client id (GUID), client secret (string) and tenant id (GUID) or domain name (string). By feeding them into the ApplicationTokenCredentials and initialize the ARM client with it, you should be ready to go.

Need some help?

If you encounter any bugs with the SDK please file an issue 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

#Learn More

ezoic increase your site revenue


Microsoft Azure SDK for Java

License:MIT License


Language:Java 99.9%Language:JavaScript 0.1%