Skip to content

Commit c0fc040

Browse files
Merge pull request #260925 from cachai2/cliTCPports
fix CLI instructions
2 parents cc3e0e1 + 9d5d64e commit c0fc040

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ az containerapp ingress enable \
6161
| `--target-port` | targetPort | The port your container listens to for incoming requests. | Set this value to the port number that your container uses. Your application ingress endpoint is always exposed on port `443`. | Yes |
6262
|`--exposed-port` | exposedPort | (TCP ingress only) An port for TCP ingress. If `external` is `true`, the value must be unique in the Container Apps environment if ingress is external. | A port number from `1` to `65535`. (can't be `80` or `443`) | No |
6363
|`--transport` | transport | The transport protocol type. | auto (default) detects HTTP/1 or HTTP/2, `http` for HTTP/1, `http2` for HTTP/2, `tcp` for TCP. | No |
64-
64+
6565
::: zone-end
6666

6767
::: zone pivot="azure-portal"
@@ -149,6 +149,9 @@ Disable ingress for your container app by omitting the `ingress` configuration p
149149

150150
You can expose additional TCP ports from your application. To learn more, see the [ingress concept article](ingress-overview.md#additional-tcp-ports).
151151

152+
> [Note]
153+
> To use this preview feature, you must have the container apps CLI extension. Run `az extension add -n containerapp` in order to install the latest version of the container apps CLI extension.
154+
152155

153156
::: zone pivot="azure-cli"
154157

articles/container-apps/ingress-overview.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ With TCP ingress enabled, your container app:
8282

8383
In addition to the main HTTP/TCP port for your container apps, you might expose additional TCP ports to enable applications that accept TCP connections on multiple ports. This feature is in preview.
8484

85+
> [!NOTE]
86+
> As the feature is in preview, make sure you are using the latest preview version of the container apps CLI extension.
87+
8588
The following apply to additional TCP ports:
8689
- Additional TCP ports can only be external if the app itself is set as external and the container app is using a custom VNet.
8790
- Any externally exposed additional TCP ports must be unique across the entire Container Apps environment. This includes all external additional TCP ports, external main TCP ports, and 80/443 ports used by built-in HTTP ingress. If the additional ports are internal, the same port can be shared by multiple apps.

0 commit comments

Comments
 (0)