你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
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.