Skip to content

Commit 102c0ce

Browse files
authored
Merge pull request #2637 from paulth1/container-instances-articles
[AQ] edit pass: Container instances articles
2 parents 9626846 + 994abf9 commit 102c0ce

File tree

5 files changed

+175
-174
lines changed

5 files changed

+175
-174
lines changed

articles/container-instances/container-instances-config-map.md

Lines changed: 46 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Config maps for Azure Container Instances
2+
title: Config Maps for Azure Container Instances
33
description: Learn how to use config maps with Azure Container Instances.
44
author: mimckitt
55
ms.author: mimckitt
@@ -9,23 +9,23 @@ ms.custom:
99
ms.topic: how-to
1010
ms.date: 11/17/2025
1111
ms.reviewer: tomvcassidy
12-
# Customer intent: As a container orchestrator user, I want to implement config maps in Azure Container Instances so that I can modify container configurations dynamically without restarting the instances, ensuring high availability and minimizing downtime.
12+
# Customer intent: As a container orchestrator user, I want to implement config maps in Azure Container Instances so that I can modify container configurations dynamically without restarting the instances to ensure high availability and minimize downtime.
1313
---
1414
# Config maps for Azure Container Instances
1515

16-
A config map is a property that can be used to apply container configurations similar to environment variables and secret volumes. However, unlike when using environment variables or secret volumes where restarting the pod to apply the settings is required, apply settings using a config map doesn't require any restarts for the changes to take effect.
17-
18-
Azure Container Instances can be created with or without config maps and can be updated at any point in time post creation using config maps. Updating config maps in an existing running container group can be accomplished quickly without compromising uptime of the container.
16+
A config map is a property that you can use to apply container configurations similar to environment variables and secret volumes. The process is unlike using environment variables or secret volumes where you must restart the pod to apply the settings. Using a config map to apply settings doesn't require any restarts for the changes to take effect.
1917

18+
You can use Azure Container Instances to create container instances with or without config maps. You can also update them at any point after creation by using config maps. Updating config maps in an existing running container group is a task that you can accomplish quickly without compromising uptime of the container.
2019

2120
## How it works
2221

23-
A config map can be included in the container properties or in a container group profile. Creating a container group profile with the config map settings makes applying those settings simple and easy to automate.
22+
You can include a config map in the container properties or in a container group profile. Creating a container group profile with the config map settings makes applying those settings simple and easy to automate.
2423

25-
### Create a container group profile with config map settings
24+
### Create a container group profile with config map settings
2625

2726
### [CLI](#tab/cli)
28-
Create a container group profile with config map settings using [az container container-group-profile create](/cli/azure/container).
27+
28+
Create a container group profile with config map settings by using [az container container-group-profile create](/cli/azure/container).
2929

3030
```azurecli-interactive
3131
az container container-group-profile create \
@@ -41,8 +41,10 @@ az container container-group-profile create \
4141
--restart-policy never \
4242
--config-map key1=value1 key2=value2
4343
```
44+
4445
### [PowerShell](#tab/powershell)
45-
Create a container group profile with config map settings using [New-AzContainerInstanceContainerGroupProfile](/powershell/module/az.containerinstance).
46+
47+
Create a container group profile with config map settings by using [New-AzContainerInstanceContainerGroupProfile](/powershell/module/az.containerinstance).
4648

4749
```azurepowershell-interactive
4850
$port1 = New-AzContainerInstancePortObject -Port 8000 -Protocol TCP
@@ -61,8 +63,8 @@ New-AzContainerInstanceContainerGroupProfile `
6163
```
6264

6365
### [ARM template](#tab/template)
64-
Create a container group profile with and config map settings deploy the template using [az deployment group create](/cli/azure/deployment/group) or [New-AzResourceGroupDeployment](/powershell/module/az.resources/new-azresourcegroupdeployment).
6566

67+
Create a container group profile with config map settings by deploying the template by using [az deployment group create](/cli/azure/deployment/group) or [New-AzResourceGroupDeployment](/powershell/module/az.resources/new-azresourcegroupdeployment).
6668

6769
```json
6870
{
@@ -144,9 +146,9 @@ Create a container group profile with and config map settings deploy the templat
144146

145147
```
146148

147-
148149
### [REST](#tab/rest)
149-
Create a container group profile with config map settings using [Create or Update](/rest/api/container-instances/container-groups/create-or-update).
150+
151+
Create a container group profile with config map settings by using [Create or Update](/rest/api/container-instances/container-groups/create-or-update).
150152

151153
```HTTP
152154
PUT https://management.azure.com/subscriptions/{SubscriptionID}/resourceGroups/myResourceGroup/providers/Microsoft.ContainerInstance/containerGroupProfiles/myContainerGroupProfile?api-version=2024-05-01-preview
@@ -201,12 +203,13 @@ Request Body
201203

202204
---
203205

204-
### Apply config map settings using a container group profile
206+
### Apply config map settings by using the container group profile
205207

206-
Applying the config map settings stored in a container group profile requires updating the container and specifying the container group profile that should be associated with the update.
208+
Applying the config map settings stored in a container group profile requires you to update the container. You also must specify the container group profile that should be associated with the update.
207209

208210
### [CLI](#tab/cli)
209-
Apply the config map settings stored in the container group profile using [az container create](/cli/azure/container).
211+
212+
Apply the config map settings stored in the container group profile by using [az container create](/cli/azure/container).
210213

211214
```azurecli-interactive
212215
az container create
@@ -219,7 +222,8 @@ az container create
219222
```
220223

221224
### [PowerShell](#tab/powershell)
222-
Apply the config map settings stored in the container group profile using [New-AzContainerGroup](/powershell/module/az.containerinstance/new-azcontainergroup).
225+
226+
Apply the config map settings stored in the container group profile by using [New-AzContainerGroup](/powershell/module/az.containerinstance/new-azcontainergroup).
223227

224228
```azurepowershell-interactive
225229
$container = New-AzContainerInstancenoDefaultObject -Name myContainer
@@ -235,8 +239,8 @@ New-AzContainerGroup `
235239
```
236240

237241
### [ARM template](#tab/template)
238-
Apply the config map settings stored in the container group profile using [az deployment group create](/cli/azure/deployment/group) or [New-AzResourceGroupDeployment](/powershell/module/az.resources/new-azresourcegroupdeployment).
239242

243+
Apply the config map settings stored in the container group profile by using [az deployment group create](/cli/azure/deployment/group) or [New-AzResourceGroupDeployment](/powershell/module/az.resources/new-azresourcegroupdeployment).
240244

241245
```json
242246
{
@@ -330,9 +334,9 @@ Apply the config map settings stored in the container group profile using [az de
330334

331335
```
332336

333-
334337
### [REST](#tab/rest)
335-
Apply the config map settings stored in the container group profile using [Create or Update](/rest/api/container-instances/container-groups/create-or-update).
338+
339+
Apply the config map settings stored in the container group profile by using [Create or Update](/rest/api/container-instances/container-groups/create-or-update).
336340

337341
```HTTP
338342
PUT
@@ -359,14 +363,13 @@ Request Body
359363

360364
---
361365

366+
### Apply config map settings without the container group profile
362367

363-
### Apply config map settings without container group profile
364-
365-
Config map settings can also be applied directly to the instance by specifying the config map settings in the create commands.
366-
368+
You can also apply config map settings directly to the instance by specifying the config map settings in the create commands.
367369

368370
### [CLI](#tab/cli)
369-
Apply the config map settings using [az container create](/cli/azure/container).
371+
372+
Apply the config map settings by using [az container create](/cli/azure/container).
370373

371374
```azurecli-interactive
372375
az container create \
@@ -377,8 +380,10 @@ az container create \
377380
378381
379382
```
383+
380384
### [PowerShell](#tab/powershell)
381-
Apply the config map settings using [New-AzContainerGrouop](/powershell/module/az.containerinstance/new-azcontainergroup).
385+
386+
Apply the config map settings by using [New-AzContainerGroup](/powershell/module/az.containerinstance/new-azcontainergroup).
382387

383388
```azurepowershell-interactive
384389
$container = New-AzContainerInstancenoDefaultObject -Name myContainer -ConfigMapKeyValuePair @{"key1"="value1"}
@@ -392,8 +397,8 @@ New-AzContainerGroup `
392397
```
393398

394399
### [ARM template](#tab/template)
395-
Apply the config map settings using [az deployment group create](/cli/azure/deployment/group) or [New-AzResourceGroupDeployment](/powershell/module/az.resources/new-azresourcegroupdeployment).
396400

401+
Apply the config map settings by using [az deployment group create](/cli/azure/deployment/group) or [New-AzResourceGroupDeployment](/powershell/module/az.resources/new-azresourcegroupdeployment).
397402

398403
```json
399404
{
@@ -476,9 +481,9 @@ Apply the config map settings using [az deployment group create](/cli/azure/depl
476481

477482
```
478483

479-
480484
### [REST](#tab/rest)
481-
Apply the config map settings using [Create or Update](/rest/api/container-instances/container-groups/create-or-update).
485+
486+
Apply the config map settings by using [Create or Update](/rest/api/container-instances/container-groups/create-or-update).
482487

483488
```HTTP
484489
PUT
@@ -506,19 +511,24 @@ Request Body
506511

507512
---
508513

509-
### ConfigMaps in Linux containers
510-
Once the update has been applied to an existing container and you will see the values mounted in the linux container without requiring a restart.
514+
### Config maps in Linux containers
515+
516+
After the update is applied to an existing container, you see the values mounted in the Linux container without requiring a restart.
511517

512518
```
513-
/mnt/configmap/<containername>/key1 with value as value1
519+
/mnt/configmap/<containername>/key1 with value as "value1"
514520
515-
/mnt/configmap/<containername>/key2 with value as value2
521+
/mnt/configmap/<containername>/key2 with value as "value2"
516522
```
517-
### ConfigMaps in Windows Containers
518-
Once the update has been applied to an existing container and you can fetch the configmap keyvalue pairs in the windows container by making the following call, without requiring a restart. These values are not mounted anywhere for windows containers, as is the case for linux.
523+
524+
### Config maps in Windows containers
525+
526+
After the update is applied to an existing container, you can fetch the config map key/value pairs in the Windows container by making the following call, without requiring a restart. These values aren't mounted anywhere for Windows containers, as is the case for Linux.
527+
519528
```
520529
Invoke-Expression "$Env:ConfigMapURI"
521530
```
522531

523-
## Next steps
524-
Learn how to use config maps with [standby pools to increase scale and availability](container-instances-standby-pool-get-details.md)
532+
## Related content
533+
534+
- Learn how to use config maps with [standby pools to increase scale and availability](container-instances-standby-pool-get-details.md).

0 commit comments

Comments
 (0)