title | description | ms.date | ms.topic | ms.devlang | ms.service |
---|---|---|---|---|---|
Azure App Service SDK for Java |
Reference for Azure App Service SDK for Java |
07/08/2024 |
reference |
java |
app-service |
Deploy and manage websites, web applications, and REST APIs with Azure App Service.
To get started with Azure App Service, see Create your first Java web app in Azure.
Deploy, scale, and configure applications in Azure App Service with the management API.
Add a dependency to your Maven pom.xml
file to use the management API in your project.
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-appservice</artifactId>
<version>2.8.0</version>
</dependency>
[!div class="nextstepaction"] Explore the Management APIs
For more information of using Azure App Service Management API, please refer here.
Deploy a webapp from a Docker image into an Azure Web App running on Linux.
WebApp app = azure.webApps().define("newLinuxWebApp")
.withExistingLinuxPlan(myLinuxAppServicePlan)
.withExistingResourceGroup("myResourceGroup")
.withPrivateDockerHubImage("username/my-java-app")
.withCredentials("dockerHubUser","dockerHubPassword")
.withAppSetting("PORT","8080")
.create();
Explore more sample Java code for Azure App Service you can use in your apps.