Skip to content

Commit 0a6bcdb

Browse files
author
naman-msft
committed
updated doc
1 parent aa56f28 commit 0a6bcdb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

scenarios/azure-compute-docs/articles/container-instances/container-instances-vnet.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,15 @@ export MY_SUBNET_ID="/subscriptions/$(az account show --query id --output tsv)/r
4040
export MY_APP_CONTAINER_NAME="appcontainer"
4141
export MY_COMM_CHECKER_NAME="commchecker"
4242
export MY_YAML_APP_CONTAINER_NAME="appcontaineryaml"
43+
export MY_REGION="eastus2"
4344
```
4445

4546
### Create a resource group
4647

4748
You need a resource group to manage all the resources used in the following examples. To create a resource group, use [az group create][az-group-create]:
4849

4950
```azurecli-interactive
50-
az group create --name $MY_RESOURCE_GROUP_NAME --location eastus
51+
az group create --name $MY_RESOURCE_GROUP_NAME --location $MY_REGION
5152
```
5253

5354
A successful operation should produce output similar to the following JSON:
@@ -282,7 +283,7 @@ type: Microsoft.ContainerInstance/containerGroups
282283
The following Bash command is for the automated deployment pathway.
283284
284285
```bash
285-
echo -e "apiVersion: '2021-07-01'\nlocation: eastus\nname: $MY_YAML_APP_CONTAINER_NAME\nproperties:\n containers:\n - name: $MY_YAML_APP_CONTAINER_NAME\n properties:\n image: mcr.microsoft.com/azuredocs/aci-helloworld\n ports:\n - port: 80\n protocol: TCP\n resources:\n requests:\n cpu: 1.0\n memoryInGB: 1.5\n ipAddress:\n type: Private\n ports:\n - protocol: tcp\n port: '80'\n osType: Linux\n restartPolicy: Always\n subnetIds:\n - id: $MY_SUBNET_ID\n name: default\ntags: null\ntype: Microsoft.ContainerInstance/containerGroups" > container-instances-vnet.yaml
286+
echo -e "apiVersion: '2021-07-01'\nlocation: $MY_REGION\nname: $MY_YAML_APP_CONTAINER_NAME\nproperties:\n containers:\n - name: $MY_YAML_APP_CONTAINER_NAME\n properties:\n image: mcr.microsoft.com/azuredocs/aci-helloworld\n ports:\n - port: 80\n protocol: TCP\n resources:\n requests:\n cpu: 1.0\n memoryInGB: 1.5\n ipAddress:\n type: Private\n ports:\n - protocol: tcp\n port: '80'\n osType: Linux\n restartPolicy: Always\n subnetIds:\n - id: $MY_SUBNET_ID\n name: default\ntags: null\ntype: Microsoft.ContainerInstance/containerGroups" > container-instances-vnet.yaml
286287
```
287288
288289
Deploy the container group with the [az container create][az-container-create] command, specifying the YAML file name for the `--file` parameter:
@@ -359,7 +360,7 @@ Now, set `CONTAINER_GROUP_IP` to the IP you retrieved with the `az container sho
359360
az container create \
360361
--resource-group $MY_RESOURCE_GROUP_NAME \
361362
--name $MY_COMM_CHECKER_NAME \
362-
--image mcr.microsoft.com/azuredocs/aci-helloworld \
363+
--image mcr.microsoft.com/devcontainers/base:alpine \
363364
--command-line "wget 10.0.0.4" \
364365
--restart-policy never \
365366
--vnet $MY_VNET_NAME \

0 commit comments

Comments
 (0)