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-log-analytics.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,7 @@ az container create \
57
57
58
58
### Deploy with YAML
59
59
60
-
Use this method if you prefer to deploy container groups with YAML. The following YAML defines a container group with a single container. Copy the YAML into a new file, then replace `LOG_ANALYTICS_WORKSPACE_ID` and `LOG_ANALYTICS_WORKSPACE_KEY` with the values you obtained in the previous step. Save file as **deploy-aci.yaml**.
60
+
Use this method if you prefer to deploy container groups with YAML. The following YAML defines a container group with a single container. Copy the YAML into a new file, then replace `LOG_ANALYTICS_WORKSPACE_ID` and `LOG_ANALYTICS_WORKSPACE_KEY` with the values you obtained in the previous step. Save the file as **deploy-aci.yaml**.
Copy file name to clipboardExpand all lines: articles/container-instances/container-instances-multi-container-yaml.md
+6-9Lines changed: 6 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ manager: jeconnoc
7
7
8
8
ms.service: container-instances
9
9
ms.topic: article
10
-
ms.date: 06/08/2018
10
+
ms.date: 07/17/2018
11
11
ms.author: marsma
12
12
---
13
13
@@ -31,7 +31,7 @@ To deploy a multi-container container group with the [az container create][az-co
31
31
32
32
Start by copying the following YAML into a new file named **deploy-aci.yaml**.
33
33
34
-
This YAML file defines a container group with two containers, a public IP address, and two exposed ports. The first container in the group runs an internet-facing web application. The second container, the sidecar, periodically makes HTTP requests to the web application running in the first container via the container group's local network.
34
+
This YAML file defines a container group named "myContainerGroup" with two containers, a public IP address, and two exposed ports. The first container in the group runs an internet-facing web application. The second container, the sidecar, periodically makes HTTP requests to the web application running in the first container via the container group's local network.
35
35
36
36
```YAML
37
37
apiVersion: 2018-06-01
@@ -79,7 +79,7 @@ az group create --name myResourceGroup --location eastus
79
79
Deploy the container group with the [az container create][az-container-create] command, passing the YAML file as an argument:
80
80
81
81
```azurecli-interactive
82
-
az container create --resource-group myResourceGroup --name myContainerGroup -f deploy-aci.yaml
82
+
az container create --resource-group myResourceGroup --file deploy-aci.yaml
83
83
```
84
84
85
85
Within a few seconds, you should receive an initial response from Azure.
@@ -196,14 +196,15 @@ Useful for preserving a container group's configuration, export allows you to st
196
196
Export the configuration for the container group you created earlier by issuing the following [az container export][az-container-export] command:
197
197
198
198
```azurecli-interactive
199
-
az container export --resource-group rg604 --name myContainerGroup --file deployed-aci.yaml
199
+
az container export --resource-group myResourceGroup --name myContainerGroup --file deployed-aci.yaml
200
200
```
201
201
202
202
No output is displayed if the command is successful, but you can view the contents of the file to see the result. For example, the first few lines with `head`:
203
203
204
204
```console
205
205
$ head deployed-aci.yaml
206
-
apiVersion: 2018-02-01-preview
206
+
additional_properties: {}
207
+
apiVersion: '2018-06-01'
207
208
location: eastus
208
209
name: myContainerGroup
209
210
properties:
@@ -212,12 +213,8 @@ properties:
212
213
properties:
213
214
environmentVariables: []
214
215
image: microsoft/aci-helloworld:latest
215
-
ports:
216
216
```
217
217
218
-
> [!NOTE]
219
-
> As of Azure CLI version 2.0.34, there is a [known issue][cli-issue-6525] in which exported container groups specify an older API version of **2018-02-01-preview** (seen in the previous JSON output example). If you'd like to redeploy using the exported YAML file, you can safely update the `apiVersion` value in the exported YAML file to **2018-06-01**.
220
-
221
218
## Next steps
222
219
223
220
This article covered the steps needed for deploying a multi-container Azure container instance. For an end-to-end Azure Container Instances experience, including using a private Azure container registry, see the Azure Container Instances tutorial.
0 commit comments