Azure App Service libraries for Java
Overview
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.
Management API
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>
For more information of using Azure App Service Management API, please refer here.
Example
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();
Samples
Explore more sample Java code for Azure App Service you can use in your apps.
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Azure SDK for Java
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示