Partager via


Azure Resource Manager libraries for Java

Overview

Deploy, monitor, and manage resources in groups with Azure Resource Manager.

Management API

Use the management API to create resource groups and deploy resources from templates.

Add a dependency to your Maven pom.xml file to use the management API in your project.

<dependency>
    <groupId>com.microsoft.azure</groupId>
    <artifactId>azure-mgmt-resources</artifactId>
    <version>1.3.0</version>
</dependency>

Example

Create a new resource group in the Azure Eastern US region.

ResourceGroup resourceGroup = azure.resourceGroups().define("myResourceGroup")
            .withRegion(Region.US_EAST)
            .create();

Samples

Manage Azure Resource Groups with Java Deploy resources using an ARM template

View the complete list of Azure Resource Manager samples.