-
Notifications
You must be signed in to change notification settings - Fork 150
Azure Container Apps: Deploy
-
Deploy container image, Jar, or soruce code to an Azure Container Apps based on your configuration.
If the specified resource group, container app environment or container app don't exist, they will be created. -
Configuration:
Property Required Description Version <subscriptionId>
true Your Azure Subscription Id. 0.1.0+ <resourceGroup>
true Azure Resource Group for your Container App. 0.1.0+ <region>
false Specifies the region where your Container App will be hosted 0.1.0+ <appEnvironment>
true The name of your Container App Environment. 0.1.0+ <appName>
true The name of your Container App. 0.1.0+ <registry>
false The the azure container resigry used to store the image. If not specified, will create one in your resource group 0.1.0+ <containers>
true The containers configuration of your Container App. 0.1.0+ <ingress>
false The ingress type of your Container App. 0.1.0+ <scale>
false The scale configuration of your Container App. 0.1.0+ -
Supported
<type>
values are Image, Artifact and Source.
Option1: Image
The plugin will deploy the specified image to your Container App directly.<configuration> ... <containers> <container> <type>image</type> <image>mcr.microsoft.com/k8se/quickstart:latest</image> <resources> <cpu>0.5</cpu> <memory>1Gi</memory> </resources> </container> </containers> </configuration>
Option2: Artifact
The plugin will generate dockerfile for your project if not dockerfile detected, build the specified artifact/jar to image by ACR task and deploy the image to your Container App.<configuration> ... <containers> <container> <type>artifact</type> <directory>${project.basedir}/target/hello.jar</directory> </container> </containers> </configuration>
Option3: Source code
The plugin will generate dockerfile for your project if not dockerfile detected, build the source code to image by ACR task and deploy the image to your Container App.<configuration> ... <containers> <container> <type>code</type> <directory>${project.basedir}</directory> </container> </containers> </configuration>
-
Configure the ingress settings of your Container App.
<configuration> ... <ingress> <external>true</external> <targetPort>8080</targetPort> </ingress> </configuration>
-
Configure the scale settings of your Container App.
<configuration> ... <scale> <minReplicas>1</minReplicas> <maxReplicas>10</maxReplicas> </scale> </configuration>
- Home
- Authentication
- Proxy
- Common Configurations
-
Maven Plugin for Azure Web Apps
- Quickstarts
- Goals
- Configuration Details
- Samples
-
Maven Plugin for Azure Functions
- Quickstarts
- Archetype
- Goals
- Configuration Details
-
Maven Plugin for Azure Spring Apps
- Quickstarts
- Goals
- Configuration Details
- Maven Plugin for Azure Container Apps
- Using in CI/CD