Skip to content

Commit 9b80e13

Browse files
authored
Merge pull request #200665 from tomvcassidy/aciAPIVersionInfo
ACI API Versioning Info
2 parents 8b86374 + 98624da commit 9b80e13

File tree

1 file changed

+25
-91
lines changed

1 file changed

+25
-91
lines changed

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

Lines changed: 25 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,30 @@
11
---
22
title: YAML reference for container group
33
description: Reference for the YAML file supported by Azure Container Instances to configure a container group
4-
ms.topic: article
5-
ms.date: 11/11/2021
4+
author: tomvcassidy
5+
ms.topic: reference
6+
ms.service: container-instances
7+
services: container-instances
8+
ms.author: tomcassidy
9+
ms.date: 06/06/2022
610
---
711

812
# YAML reference: Azure Container Instances
913

10-
This article covers the syntax and properties for the YAML file supported by Azure Container Instances to configure a [container group](container-instances-container-groups.md). Use a YAML file to input the group configuration to the [az container create][az-container-create] command in the Azure CLI.
14+
This article covers the syntax and properties for the YAML file supported by Azure Container Instances to configure a [container group](container-instances-container-groups.md). Use a YAML file to input the group configuration to the [az container create][az-container-create] command in the Azure CLI.
1115

12-
A YAML file is a convenient way to configure a container group for reproducible deployments. It is a concise alternative to using a [Resource Manager template](/azure/templates/Microsoft.ContainerInstance/2019-12-01/containerGroups) or the Azure Container Instances SDKs to create or update a container group.
16+
A YAML file is a convenient way to configure a container group for reproducible deployments. It's a concise alternative to using a [Resource Manager template](/azure/templates/Microsoft.ContainerInstance/2019-12-01/containerGroups) or the Azure Container Instances SDKs to create or update a container group.
1317

1418
> [!NOTE]
15-
> This reference applies to YAML files for Azure Container Instances REST API version `2021-07-01`.
19+
> This reference applies to YAML files for Azure Container Instances REST API version `2021-10-01`.
1620
17-
## Schema
21+
## Schema
1822

1923
The schema for the YAML file follows, including comments to highlight key properties. For a description of the properties in this schema, see the [Property values](#property-values) section.
2024

21-
[!INCLUDE [network profile callout](./includes/network-profile/network-profile-callout.md)]
22-
23-
```yml
25+
```yaml
2426
name: string # Name of the container group
25-
apiVersion: '2021-07-01'
27+
apiVersion: '2021-10-01'
2628
location: string
2729
tags: {}
2830
identity:
@@ -159,32 +161,24 @@ properties: # Properties of container group
159161
160162
The following tables describe the values you need to set in the schema.
161163
162-
163-
164164
### Microsoft.ContainerInstance/containerGroups object
165165
166166
| Name | Type | Required | Value |
167167
| ---- | ---- | ---- | ---- |
168168
| name | string | Yes | The name of the container group. |
169-
| apiVersion | enum | Yes | 2018-10-01 |
169+
| apiVersion | enum | Yes | **2021-10-01 (latest)**, 2021-09-01, 2021-07-01, 2021-03-01, 2020-11-01, 2019-12-01, 2018-10-01, 2018-09-01, 2018-07-01, 2018-06-01, 2018-04-01 |
170170
| location | string | No | The resource location. |
171171
| tags | object | No | The resource tags. |
172172
| identity | object | No | The identity of the container group, if configured. - [ContainerGroupIdentity object](#containergroupidentity-object) |
173173
| properties | object | Yes | [ContainerGroupProperties object](#containergroupproperties-object) |
174174
175-
176-
177-
178175
### ContainerGroupIdentity object
179176
180177
| Name | Type | Required | Value |
181178
| ---- | ---- | ---- | ---- |
182179
| type | enum | No | The type of identity used for the container group. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the container group. - SystemAssigned, UserAssigned, SystemAssigned, UserAssigned, None |
183180
| userAssignedIdentities | object | No | The list of user identities associated with the container group. The user identity dictionary key references will be Azure Resource Manager resource IDs in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. |
184181
185-
186-
187-
188182
### ContainerGroupProperties object
189183
190184
| Name | Type | Required | Value |
@@ -202,19 +196,13 @@ The following tables describe the values you need to set in the schema.
202196
| encryptionProperties | object | No | The encryption properties for a container group. - [EncryptionProperties object](#encryptionproperties-object) |
203197
| initContainers | array | No | The init containers for a container group. - [InitContainerDefinition object](#initcontainerdefinition-object) |
204198

205-
206-
207-
208199
### Container object
209200

210201
| Name | Type | Required | Value |
211202
| ---- | ---- | ---- | ---- |
212203
| name | string | Yes | The user-provided name of the container instance. |
213204
| properties | object | Yes | The properties of the container instance. - [ContainerProperties object](#containerproperties-object) |
214205

215-
216-
217-
218206
### ImageRegistryCredential object
219207

220208
| Name | Type | Required | Value |
@@ -225,9 +213,6 @@ The following tables describe the values you need to set in the schema.
225213
| identity | string | No | The resource ID of the user or system-assigned managed identity used to authenticate. |
226214
| identityUrl | string | No | The identity URL for the private registry. |
227215

228-
229-
230-
231216
### IpAddress object
232217

233218
| Name | Type | Required | Value |
@@ -237,9 +222,6 @@ The following tables describe the values you need to set in the schema.
237222
| ip | string | No | The IP exposed to the public internet. |
238223
| dnsNameLabel | string | No | The Dns name label for the IP. |
239224

240-
241-
242-
243225
### Volume object
244226

245227
| Name | Type | Required | Value |
@@ -250,28 +232,19 @@ The following tables describe the values you need to set in the schema.
250232
| secret | object | No | The secret volume. |
251233
| gitRepo | object | No | The git repo volume. - [GitRepoVolume object](#gitrepovolume-object) |
252234

253-
254-
255-
256235
### ContainerGroupDiagnostics object
257236

258237
| Name | Type | Required | Value |
259238
| ---- | ---- | ---- | ---- |
260239
| logAnalytics | object | No | Container group log analytics information. - [LogAnalytics object](#loganalytics-object) |
261240

262-
263-
264-
265241
### ContainerGroupSubnetIds object
266242

267243
| Name | Type | Required | Value |
268244
| ---- | ---- | ---- | ---- |
269245
| id | string | Yes | The identifier for a subnet. |
270246
| name | string | No | The name of the subnet. |
271247

272-
273-
274-
275248
### DnsConfiguration object
276249

277250
| Name | Type | Required | Value |
@@ -280,22 +253,20 @@ The following tables describe the values you need to set in the schema.
280253
| searchDomains | string | No | The DNS search domains for hostname lookup in the container group. |
281254
| options | string | No | The DNS options for the container group. |
282255

283-
284256
### EncryptionProperties object
285257

286-
| Name | Type | Required | Value |
258+
| Name | Type | Required | Value |
287259
| ---- | ---- | ---- | ---- |
288-
| vaultBaseUrl | string | Yes | The keyvault base url. |
289-
| keyName | string | Yes | The encryption key name. |
290-
| keyVersion | string | Yes | The encryption key version. |
260+
| vaultBaseUrl | string | Yes | The keyvault base url. |
261+
| keyName | string | Yes | The encryption key name. |
262+
| keyVersion | string | Yes | The encryption key version. |
291263

292264
### InitContainerDefinition object
293265

294-
| Name | Type | Required | Value |
266+
| Name | Type | Required | Value |
295267
| ---- | ---- | ---- | ---- |
296-
| name | string | Yes | The name for the init container. |
297-
| properties | object | Yes | The properties for the init container. - [InitContainerPropertiesDefinition object](#initcontainerpropertiesdefinition-object)
298-
268+
| name | string | Yes | The name for the init container. |
269+
| properties | object | Yes | The properties for the init container. - [InitContainerPropertiesDefinition object](#initcontainerpropertiesdefinition-object)
299270

300271
### ContainerProperties object
301272

@@ -310,19 +281,13 @@ The following tables describe the values you need to set in the schema.
310281
| livenessProbe | object | No | The liveness probe. - [ContainerProbe object](#containerprobe-object) |
311282
| readinessProbe | object | No | The readiness probe. - [ContainerProbe object](#containerprobe-object) |
312283

313-
314-
315-
316284
### Port object
317285

318286
| Name | Type | Required | Value |
319287
| ---- | ---- | ---- | ---- |
320288
| protocol | enum | No | The protocol associated with the port. - TCP or UDP |
321289
| port | integer | Yes | The port number. |
322290

323-
324-
325-
326291
### AzureFileVolume object
327292

328293
| Name | Type | Required | Value |
@@ -332,9 +297,6 @@ The following tables describe the values you need to set in the schema.
332297
| storageAccountName | string | Yes | The name of the storage account that contains the Azure File share. |
333298
| storageAccountKey | string | No | The storage account access key used to access the Azure File share. |
334299

335-
336-
337-
338300
### GitRepoVolume object
339301

340302
| Name | Type | Required | Value |
@@ -343,8 +305,6 @@ The following tables describe the values you need to set in the schema.
343305
| repository | string | Yes | Repository URL |
344306
| revision | string | No | Commit hash for the specified revision. |
345307

346-
347-
348308
### LogAnalytics object
349309

350310
| Name | Type | Required | Value |
@@ -355,15 +315,14 @@ The following tables describe the values you need to set in the schema.
355315
| logType | enum | No | The log type to be used. - ContainerInsights or ContainerInstanceLogs |
356316
| metadata | object | No | Metadata for log analytics. |
357317

358-
359318
### InitContainerPropertiesDefinition object
360319

361-
| Name | Type | Required | Value |
320+
| Name | Type | Required | Value |
362321
| ---- | ---- | ---- | ---- |
363-
| image | string | No | The image of the init container. |
364-
| command | array | No | The command to execute within the init container in exec form. - string |
365-
| environmentVariables | array | No |The environment variables to set in the init container. - [EnvironmentVariable object](#environmentvariable-object)
366-
| volumeMounts |array | No | The volume mounts available to the init container. - [VolumeMount object](#volumemount-object)
322+
| image | string | No | The image of the init container. |
323+
| command | array | No | The command to execute within the init container in exec form. - string |
324+
| environmentVariables | array | No |The environment variables to set in the init container. - [EnvironmentVariable object](#environmentvariable-object)
325+
| volumeMounts | array | No | The volume mounts available to the init container. - [VolumeMount object](#volumemount-object)
367326

368327
### ContainerPort object
369328

@@ -372,9 +331,6 @@ The following tables describe the values you need to set in the schema.
372331
| protocol | enum | No | The protocol associated with the port. - TCP or UDP |
373332
| port | integer | Yes | The port number exposed within the container group. |
374333

375-
376-
377-
378334
### EnvironmentVariable object
379335

380336
| Name | Type | Required | Value |
@@ -383,19 +339,13 @@ The following tables describe the values you need to set in the schema.
383339
| value | string | No | The value of the environment variable. |
384340
| secureValue | string | No | The value of the secure environment variable. |
385341

386-
387-
388-
389342
### ResourceRequirements object
390343

391344
| Name | Type | Required | Value |
392345
| ---- | ---- | ---- | ---- |
393346
| requests | object | Yes | The resource requests of this container instance. - [ResourceRequests object](#resourcerequests-object) |
394347
| limits | object | No | The resource limits of this container instance. - [ResourceLimits object](#resourcelimits-object) |
395348

396-
397-
398-
399349
### VolumeMount object
400350

401351
| Name | Type | Required | Value |
@@ -404,9 +354,6 @@ The following tables describe the values you need to set in the schema.
404354
| mountPath | string | Yes | The path within the container where the volume should be mounted. Must not contain colon (:). |
405355
| readOnly | boolean | No | The flag indicating whether the volume mount is read-only. |
406356

407-
408-
409-
410357
### ContainerProbe object
411358

412359
| Name | Type | Required | Value |
@@ -419,9 +366,6 @@ The following tables describe the values you need to set in the schema.
419366
| successThreshold | integer | No | The success threshold. |
420367
| timeoutSeconds | integer | No | The timeout seconds. |
421368

422-
423-
424-
425369
### ResourceRequests object
426370

427371
| Name | Type | Required | Value |
@@ -430,9 +374,6 @@ The following tables describe the values you need to set in the schema.
430374
| cpu | number | Yes | The CPU request of this container instance. |
431375
| gpu | object | No | The GPU request of this container instance. - [GpuResource object](#gpuresource-object) |
432376

433-
434-
435-
436377
### ResourceLimits object
437378

438379
| Name | Type | Required | Value |
@@ -441,18 +382,12 @@ The following tables describe the values you need to set in the schema.
441382
| cpu | number | No | The CPU limit of this container instance. |
442383
| gpu | object | No | The GPU limit of this container instance. - [GpuResource object](#gpuresource-object) |
443384

444-
445-
446-
447385
### ContainerExec object
448386

449387
| Name | Type | Required | Value |
450388
| ---- | ---- | ---- | ---- |
451389
| command | array | No | The commands to execute within the container. - string |
452390

453-
454-
455-
456391
### ContainerHttpGet object
457392

458393
| Name | Type | Required | Value |
@@ -476,7 +411,6 @@ The following tables describe the values you need to set in the schema.
476411
| count | integer | Yes | The count of the GPU resource. |
477412
| sku | enum | Yes | The SKU of the GPU resource. - K80, P100, V100 |
478413

479-
480414
## Next steps
481415

482416
See the tutorial [Deploy a multi-container group using a YAML file](container-instances-multi-container-yaml.md).

0 commit comments

Comments
 (0)