Skip to content

Commit dfca786

Browse files
committed
add yaml
1 parent 8993499 commit dfca786

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

articles/container-apps/ingress-how-to.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,41 @@ az containerapp update
180180
--yaml <your-yaml-file>
181181
```
182182

183+
The following is an example YAML file you can reference in the above CLI command.
184+
185+
```yml
186+
location: northcentralus
187+
name: multiport-example
188+
properties:
189+
configuration:
190+
activeRevisionsMode: Single
191+
ingress:
192+
additionalPortMappings:
193+
- exposedPort: 21025
194+
external: true
195+
targetPort: 1025
196+
allowInsecure: false
197+
external: true
198+
targetPort: 1080
199+
traffic:
200+
- latestRevision: true
201+
weight: 100
202+
transport: http
203+
managedEnvironmentId: <env id>
204+
template:
205+
containers:
206+
- image: maildev/maildev
207+
name: maildev
208+
resources:
209+
cpu: 0.25
210+
memory: 0.5Gi
211+
scale:
212+
maxReplicas: 1
213+
minReplicas: 1
214+
workloadProfileName: Consumption
215+
type: Microsoft.App/containerApps
216+
```
217+
183218
::: zone-end
184219
185220
::: zone pivot="azure-portal"

0 commit comments

Comments
 (0)