You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/container-apps/tutorial-code-to-cloud.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -332,15 +332,15 @@ az containerapp create \
332
332
--resource-group $RESOURCE_GROUP \
333
333
--environment $ENVIRONMENT \
334
334
--image $ACR_NAME.azurecr.io/$API_NAME \
335
-
--target-port 3500 \
335
+
--target-port 8080 \
336
336
--ingress 'external' \
337
337
--registry-server $ACR_NAME.azurecr.io \
338
338
--query properties.configuration.ingress.fqdn
339
339
```
340
340
341
341
* By setting `--ingress` to `external`, your container app is accessible from the public internet.
342
342
343
-
* The `target-port` is set to `3500` to match the port that the container is listening to for requests.
343
+
* The `target-port` is set to `8080` to match the port that the container is listening to for requests.
344
344
345
345
* Without a `query` property, the call to `az containerapp create` returns a JSON response that includes a rich set of details about the application. Adding a query parameter filters the output to just the app's fully qualified domain name (FQDN).
346
346
@@ -394,7 +394,7 @@ $AppArgs = @{
394
394
TemplateContainer = $TemplateObj
395
395
ConfigurationRegistry = $RegistryObj
396
396
ConfigurationSecret = $SecretObj
397
-
IngressTargetPort = 3500
397
+
IngressTargetPort = 8080
398
398
IngressExternal = $true
399
399
}
400
400
$MyApp = New-AzContainerApp @AppArgs
@@ -404,7 +404,7 @@ $MyApp.IngressFqdn
404
404
```
405
405
406
406
* By setting `IngressExternal` to `external`, your container app is accessible from the public internet.
407
-
* The `IngressTargetPort` parameter is set to `3500` to match the port that the container is listening to for requests.
407
+
* The `IngressTargetPort` parameter is set to `8080` to match the port that the container is listening to for requests.
0 commit comments