Skip to content

Commit 552e44a

Browse files
authored
Merge pull request #187356 from craigshoemaker/ca/vnet-updates
[Container Apps] VNET updates
2 parents 6c0ae62 + c4db348 commit 552e44a

File tree

3 files changed

+29
-13
lines changed

3 files changed

+29
-13
lines changed

articles/container-apps/get-started.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ az containerapp create `
8282

8383
---
8484

85+
> [!NOTE]
86+
> Make sure the value for the `--image` parameter is in lower case.
87+
8588
By setting `--ingress` to `external`, you make the container app available to public requests.
8689

8790
## Verify deployment

articles/container-apps/vnet-custom.md

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,30 @@ As you create an Azure Container Apps [environment](environment.md), a virtual n
2525
2626
:::image type="content" source="media/networking/azure-container-apps-virtual-network.png" alt-text="Azure Container Apps environments use an existing VNET, or you can provide your own.":::
2727

28+
## Restrictions
29+
30+
Subnet address ranges can't overlap with the following reserved ranges:
31+
32+
- 169.254.0.0/16
33+
- 172.30.0.0/16
34+
- 172.31.0.0/16
35+
- 192.0.2.0/24
36+
37+
Additionally, subnets must have a size between /21 and /12.
38+
2839
## Subnet types
2940

3041
As a Container Apps environment is created, you provide resource IDs for two different subnets. Both subnets must be defined in the same container apps.
3142

3243
- **App subnet**: Subnet for user app containers. Subnet that contains IP ranges mapped to applications deployed as containers.
3344
- **Control plane subnet**: Subnet for [control plane infrastructure](/azure/azure-resource-manager/management/control-plane-and-data-plane) components and user app containers.
3445

46+
::: zone pivot="azure-cli"
47+
3548
If the [platformReservedCidr](#networking-parameters) range is defined, both subnets must not overlap with the IP range defined in `platformReservedCidr`.
3649

50+
::: zone-end
51+
3752
## Accessibility level
3853

3954
You can deploy your Container Apps environment with an internet-accessible endpoint or with an IP address in your VNET. The accessibility level determines the type of load balancer used with your Container Apps instance.
@@ -46,8 +61,12 @@ Container Apps environments deployed as external resources are available for pub
4661

4762
When set to internal, the environment has no public endpoint. Internal environments are deployed with a virtual IP (VIP) mapped to an internal IP address. The internal endpoint is an Azure internal load balancer (ILB) and IP addresses are issued from the custom VNET's list of private IP addresses.
4863

64+
::: zone pivot="azure-cli"
65+
4966
To create an internal only environment, provide the `--internal-only` parameter to the `az containerapp env create` command.
5067

68+
::: zone-end
69+
5170
## Example
5271

5372
The following example shows you how to create a Container Apps environment in an existing virtual network.
@@ -234,6 +253,9 @@ az containerapp env create `
234253

235254
---
236255

256+
> [!NOTE]
257+
> As you call `az conatinerapp create` to create the container app inside your environment, make sure the value for the `--image` parameter is in lower case.
258+
237259
The following table describes the parameters used in for `containerapp env create`.
238260

239261
| Parameter | Description |
@@ -343,7 +365,9 @@ az network private-dns record-set a add-record `
343365

344366
#### Networking parameters
345367

346-
There are three optional networking parameters you can choose to define when calling `containerapp env create`. You must either provide values for all three of these properties, or none of them. If they aren’t provided, the CLI generates the values for you.
368+
There are three optional networking parameters you can choose to define when calling `containerapp env create`. Use these options when you have a peered VNET with separate address ranges. Explicitly configuring these ranges ensures the addresses used by the Container Apps environment doesn't conflict with other ranges in the network infrastructure.
369+
370+
You must either provide values for all three of these properties, or none of them. If they aren’t provided, the CLI generates the values for you.
347371

348372
| Parameter | Description |
349373
|---|---|
@@ -381,17 +405,6 @@ az group delete `
381405

382406
::: zone-end
383407

384-
## Restrictions
385-
386-
Subnet address ranges can't overlap with the following reserved ranges:
387-
388-
- 169.254.0.0/16
389-
- 172.30.0.0/16
390-
- 172.31.0.0/16
391-
- 192.0.2.0/24
392-
393-
Additionally, subnets must have a size between /21 and /12.
394-
395408
## Additional resources
396409

397410
- Refer to [What is Azure Private Endpoint](/azure/private-link/private-endpoint-overview) for more details on configuring your private endpoint.

includes/container-apps-create-cli-steps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
author: craigshoemaker
3-
ms.service: app-service
3+
ms.service: container-apps
44
ms.topic: include
55
ms.date: 01/26/2022
66
ms.author: cshoe

0 commit comments

Comments
 (0)