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-instances/container-instances-vnet.md
+11-15Lines changed: 11 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Deploy container group to Azure virtual network
3
3
description: Learn how to deploy container groups to a new or existing Azure virtual network.
4
4
ms.topic: article
5
-
ms.date: 12/17/2019
5
+
ms.date: 01/06/2020
6
6
ms.author: danlep
7
7
8
8
---
@@ -20,7 +20,7 @@ Container groups deployed into an Azure virtual network enable scenarios like:
20
20
* Container communication with on-premises resources through a [VPN gateway](../vpn-gateway/vpn-gateway-about-vpngateways.md) or [ExpressRoute](../expressroute/expressroute-introduction.md)
21
21
22
22
> [!IMPORTANT]
23
-
> This feature is currently in preview, and some [limitations apply](#preview-limitations). Previews are made available to you on the condition that you agree to the [supplemental terms of use][terms-of-use]. Some aspects of this feature may change prior to general availability (GA).
23
+
> Container group deployments to a virtual network are generally available for production workloads only in the following regions: **East US, South Central US, and West US 2**. In other regions where the feature is available, virtual network deployments are currently in preview, with general availability planned in the near future. Previews are made available to you on the condition that you agree to the [supplemental terms of use][terms-of-use].
24
24
25
25
26
26
## Virtual network deployment limitations
@@ -29,11 +29,7 @@ Certain limitations apply when you deploy container groups to a virtual network.
29
29
30
30
* To deploy container groups to a subnet, the subnet cannot contain any other resource types. Remove all existing resources from an existing subnet prior to deploying container groups to it, or create a new subnet.
31
31
* You cannot use a [managed identity](container-instances-managed-identity.md) in a container group deployed to a virtual network.
32
-
* Due to the additional networking resources involved, deploying a container group to a virtual network is typically somewhat slower than deploying a standard container instance.
33
-
34
-
## Preview limitations
35
-
36
-
While this feature is in preview, the following limitations apply when deploying container groups to a virtual network.
32
+
* Due to the additional networking resources involved, deploying a container group to a virtual network is typically slower than deploying a standard container instance.
@@ -42,8 +38,8 @@ Container resource limits may differ from limits for non-networked container ins
42
38
### Unsupported networking scenarios
43
39
44
40
***Azure Load Balancer** - Placing an Azure Load Balancer in front of container instances in a networked container group is not supported
45
-
***Virtual network peering** - VNet peering will not work for ACI if the network to which the ACI VNet is being peered to uses a public IP space. The peered network needs an RFC1918 private IP space in order for peering to work. Additionally, you currently can only peer your VNet to one other VNet
46
-
***Virtual network traffic routing** - Customer routes cannot be set up around public IPs. Routes can be set up within the private IP space of the delegated subnet in which the ACI resources are deployed
41
+
***Virtual network peering** - VNet peering will not work for ACI if the network to which the ACI VNet is peered uses a public IP space. The peered network needs an RFC1918 private IP space in order for peering to work. Additionally, you currently can only peer your VNet to one other VNet
42
+
***Virtual network traffic routing** - Custom routes cannot be set up around public IPs. Routes can be set up within the private IP space of the delegated subnet in which the ACI resources are deployed
47
43
***Network security groups** - Outbound security rules in NSGs applied to a subnet delegated to Azure Container Instances aren't currently enforced
48
44
***Public IP or DNS label** - Container groups deployed to a virtual network don't currently support exposing containers directly to the internet with a public IP address or a fully qualified domain name
49
45
***Internal name resolution** - Name resolution for Azure resources in the virtual network via the internal Azure DNS is not supported
@@ -95,7 +91,7 @@ Once you've deployed your first container group with this method, you can deploy
95
91
96
92
To deploy a container group to an existing virtual network:
97
93
98
-
1. Create a subnet within your existing virtual network, or empty an existing subnet of *all* other resources
94
+
1. Create a subnet within your existing virtual network, use an existing subnet in which a container group is already deployed, or empty an existing subnet of *all* other resources
99
95
1. Deploy a container group with [az container create][az-container-create] and specify one of the following:
100
96
* Virtual network name and subnet name
101
97
* Virtual network resource ID and subnet resource ID, which allows using a virtual network from a different resource group
@@ -111,7 +107,7 @@ The following sections describe how to deploy container groups to a virtual netw
111
107
112
108
First, deploy a container group and specify the parameters for a new virtual network and subnet. When you specify these parameters, Azure creates the virtual network and subnet, delegates the subnet to Azure Container instances, and also creates a network profile. Once these resources are created, your container group is deployed to the subnet.
113
109
114
-
Run the following [az container create][az-container-create] command that specifies settings for a new virtual network and subnet. You need to supply the name of a resource group that was created in a region that [supports](#preview-limitations)container groups in a virtual network. This command deploys the public Microsoft [aci-helloworld][aci-helloworld] container that runs a small Node.js webserver serving a static web page. In the next section, you'll deploy a second container group to the same subnet, and test communication between the two container instances.
110
+
Run the following [az container create][az-container-create] command that specifies settings for a new virtual network and subnet. You need to supply the name of a resource group that was created in a region where container group deployments in a virtual network are [available](#virtual-network-deployment-limitations). This command deploys the public Microsoft [aci-helloworld][aci-helloworld] container that runs a small Node.js webserver serving a static web page. In the next section, you'll deploy a second container group to the same subnet, and test communication between the two container instances.
115
111
116
112
```azurecli
117
113
az container create \
@@ -176,7 +172,7 @@ The log output should show that `wget` was able to connect and download the inde
176
172
177
173
### Deploy to existing virtual network - YAML
178
174
179
-
You can also deploy a container group to an existing virtual network by using a YAML file. To deploy to a subnet in a virtual network, you specify several additional properties in the YAML:
175
+
You can also deploy a container group to an existing virtual network by using a YAML file, a Resource Manager template, or another programmatic method. To deploy to a subnet in a virtual network, you specify several additional properties in the YAML:
180
176
181
177
*`ipAddress`: The IP address settings for the container group.
> If you recieve an error while attempting to remove the Network Profile allow 2-3 days for the platform to automatically mitigate the issue and attempt the deletion again. If you still have issues removing the Network Profile [open a support reqest.](https://azure.microsoft.com/support/create-ticket/)
258
+
> If you receive an error while attempting to remove the network profile, allow 2-3 days for the platform to automatically mitigate the issue and attempt the deletion again. If you still have issues removing the network profile, [open a support request](https://azure.microsoft.com/support/create-ticket/).
263
259
264
-
The initial preview of this feature requires several additional commands to delete the network resources you created earlier. If you used the example commands in previous sections of this article to create your virtual network and subnet, then you can use the following script to delete those network resources.
260
+
This feature currently requires several additional commands to delete the network resources you created earlier. If you used the example commands in previous sections of this article to create your virtual network and subnet, then you can use the following script to delete those network resources.
265
261
266
262
Before executing the script, set the `RES_GROUP` variable to the name of the resource group containing the virtual network and subnet that should be deleted. Update the name of the virtual network if you did not use the `aci-vnet` name suggested earlier. The script is formatted for the Bash shell. If you prefer another shell such as PowerShell or Command Prompt, you'll need to adjust variable assignment and accessors accordingly.
0 commit comments