Skip to content

Commit 7e57b56

Browse files
authored
Merge pull request #46807 from mmacy/aci-remove-version-bug-note
[ACI] remove export bug note
2 parents d299448 + 8ab501b commit 7e57b56

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

articles/container-instances/container-instances-log-analytics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ az container create \
5757

5858
### Deploy with YAML
5959

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**.
6161

6262
```yaml
6363
apiVersion: 2018-06-01

articles/container-instances/container-instances-multi-container-yaml.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ manager: jeconnoc
77

88
ms.service: container-instances
99
ms.topic: article
10-
ms.date: 06/08/2018
10+
ms.date: 07/17/2018
1111
ms.author: marsma
1212
---
1313

@@ -31,7 +31,7 @@ To deploy a multi-container container group with the [az container create][az-co
3131

3232
Start by copying the following YAML into a new file named **deploy-aci.yaml**.
3333

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.
3535

3636
```YAML
3737
apiVersion: 2018-06-01
@@ -79,7 +79,7 @@ az group create --name myResourceGroup --location eastus
7979
Deploy the container group with the [az container create][az-container-create] command, passing the YAML file as an argument:
8080

8181
```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
8383
```
8484

8585
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
196196
Export the configuration for the container group you created earlier by issuing the following [az container export][az-container-export] command:
197197
198198
```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
200200
```
201201

202202
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`:
203203

204204
```console
205205
$ head deployed-aci.yaml
206-
apiVersion: 2018-02-01-preview
206+
additional_properties: {}
207+
apiVersion: '2018-06-01'
207208
location: eastus
208209
name: myContainerGroup
209210
properties:
@@ -212,12 +213,8 @@ properties:
212213
properties:
213214
environmentVariables: []
214215
image: microsoft/aci-helloworld:latest
215-
ports:
216216
```
217217

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-
221218
## Next steps
222219

223220
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

Comments
 (0)