You need to deploy a containerized API gateway to Azure Container Instances (ACI). The container must be integrated into a new subnet within an existing virtual network to access private back-end services. In which order should you perform the steps to configure and deploy the container group?
- 1Create a new subnet in the existing virtual network.
- 2Delegate the subnet to the Microsoft.ContainerInstance/containerGroups service.
- 3Retrieve the resource ID of the delegated subnet.
- 4Run the az container create command, specifying the subnet resource ID.
Answer
The correct sequence is: Create a new subnet in the existing virtual network, delegate the subnet to the Microsoft.ContainerInstance/containerGroups service, retrieve the resource ID of the delegated subnet, and run the az container create command specifying the subnet resource ID.
To integrate an Azure Container Instances container group with a virtual network, you must first create a subnet, delegate that subnet to the Microsoft.ContainerInstance/containerGroups provider, retrieve the subnet's resource ID, and then issue the deployment command with the subnet ID referenced.
Step-by-Step Solution
Key Concept
Integrating Azure Container Instances (ACI) into a virtual network via subnet delegation