Azure Resource Manager samples for Java
July 28, 2026 ยท View on GitHub
This contains Java samples for managing Azure resources with the Azure Resource Manager client library. Each sample is
self-contained, focuses on a specific scenario, and exposes a main() entrypoint so it can be run directly.
Getting started
Getting started is explained in detail here. Please refer to it to add the dependency and configure the authentication environment variables.
For general documentation on how to use the management libraries, please visit here. For additional code snippets grouped by service, see SAMPLE.md.
Sample details
App Service
- Connect a web app to a SQL database (passwordless)
- Connect a web app to a storage account (passwordless)
- Deploy an image from Azure Container Registry to a Linux web app
- Manage web app deployment slots
- Manage a web app with a custom domain
- Scale a web app across multiple regions with a Traffic Manager
Authorization (Microsoft Entra ID / RBAC)
Compute
- Create a virtual machine from a custom image
- Create a virtual machine from a specialized managed disk (snapshot)
- Create multiple virtual machines in parallel in the same network
Container Registry
Container Service
SQL Database
Next steps
Start using the Azure Resource Manager Java SDK in your solutions. Our SDK details can be found at SDK README.
For more information about other Azure Management SDKs, refer here.
Contributing
For details on contributing to this repository, see the contributing guide.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request