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-apps/services.md
+97-9Lines changed: 97 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,20 +4,108 @@ description: Learn how to use runtime services in Azure Container Apps.
4
4
services: container-apps
5
5
author: craigshoemaker
6
6
ms.service: azure-container-apps
7
-
ms.custom:
8
-
- ignite-2023
9
7
ms.topic: conceptual
10
-
ms.date: 11/02/2023
8
+
ms.date: 03/31/2025
11
9
ms.author: cshoe
12
10
---
13
11
14
12
# Connect to services in Azure Container Apps (preview)
15
13
16
-
As you develop applications in Azure Container Apps, you often need to connect to different services. Rather than creating services ahead of time and manually connecting them to your container app, you can quickly create instances of development-grade services that are designed for nonproduction environments known as add-ons.
14
+
> [!IMPORTANT]
15
+
> The public preview add-ons feature will be retired on September 30, 2025. To prepare for this change, transition to Azure-managed services, such as Azure Cache for Redis or Azure Database for PostgreSQL for a production-level service. For development and testing purposes, review the supported open-source software (OSS) quickstart images.
17
16
18
-
Add-ons allow you to use OSS services without the burden of manual downloads, creation, and configuration.
17
+
As you develop applications in Azure Container Apps, you often need to connect to different services. Rather than creating services ahead of time and manually connecting them to your container app, you can quickly create instances of development-grade services that are designed for nonproduction environments known as add-ons.
19
18
20
-
Once you're ready for your app to use a production level service, you can connect your application to an Azure managed service.
19
+
Add-ons allow you to use OSS services without the burden of manual downloads, creation, and configuration. Since add-ons will be retired on September 30, 2025, we recommend you use our new OSS quickstarts if you want to continue using these OSS services for nonproduction environments.
20
+
21
+
If you're ready for your app to use a production level service, you can connect your application to an Azure managed service.
22
+
23
+
## Migration Guide
24
+
25
+
As add-ons are being retired, you need to plan how to transition your applications away from this preview feature. Use the following steps help you for either a production level service if you're using open source technologies in a development or testing capacity.
26
+
27
+
Make sure you prepare for data continuity between your add-on and your new Container App.
28
+
29
+
### Option 1: Transition to Azure managed services
30
+
31
+
If you're ready for a production level service, follow these steps to transition your add-on to an Azure managed service.
32
+
33
+
1. Identify add-ons in use. Run the following command to locate all existing add-ons in your environment.
34
+
35
+
Before you run the following command, make sure to replace the placeholders surrounded by `<>` with you values.
36
+
37
+
```azurecli
38
+
az containerapp add-on list \
39
+
--environment <ENVIRONMENT_NAME> \
40
+
--resource-group <RESOURCE_GROUP>
41
+
```
42
+
43
+
1. Plan data continuity.
44
+
45
+
Create a backup or snapshot of your data in the current add-on if applicable.
46
+
47
+
1. Deploy the new managed service.
48
+
49
+
For example, create an [Azure Cache for Redis](/azure/azure-cache-for-redis/scripts/create-manage-cache?pivots=azure-managed-redis) or [Azure Database for PostgreSQL](/azure/postgresql/) instance using the Azure portal or CLI.
50
+
51
+
1. Create a new container app.
52
+
53
+
Create a new app using the [Azure portal](quickstart-portal.md) or [CLI](get-started.md?tabs=bash).
54
+
55
+
1. Configure connection settings.
56
+
57
+
In your new container app configuration, set the environment variables and network settings to point to your new managed service’s connection string, credentials, and endpoints.
58
+
59
+
1. Remove the add-on.
60
+
61
+
Once the add-on is no longer needed, delete it with the following command.
62
+
63
+
Before you run the following command, make sure to replace the placeholders surrounded by `<>` with you values.
64
+
65
+
```azurecli
66
+
az containerapp add-on <SERVICE_TYPE> delete \
67
+
--name <ADDON_NAME> \
68
+
--resource-group <RESOURCE-GROUP>
69
+
```
70
+
71
+
### Option 2: Use open source quickstart images
72
+
73
+
If you only need these services for development or testing environments and don't require production-level guarantees, follow these steps to switch to use the open-source quickstart images.
74
+
75
+
1. Identify add-ons in use. Run the following command to locate all existing add-ons in your environment.
76
+
77
+
Before you run the following command, make sure to replace the placeholders surrounded by `<>` with you values.
78
+
79
+
```azurecli
80
+
az containerapp add-on list \
81
+
--environment <ENVIRONMENT_NAME> \
82
+
--resource-group <RESOURCE_GROUP>
83
+
```
84
+
85
+
1. Review the supported quickstart images: Redis, PostgreSQL, MariaDB, Qdrant, and Kafka.
86
+
87
+
1. Plan data continuity.
88
+
89
+
Create a backup or snapshot of your data in the current add-on if applicable.
90
+
91
+
1. Create a new [Container App](quickstart-portal.md) using a quickstart image.
92
+
93
+
1. Remove the add-on.
94
+
95
+
Once the add-on is no longer needed, delete it with the following command.
96
+
97
+
Before you run the following command, make sure to replace the placeholders surrounded by `<>` with you values.
98
+
99
+
```azurecli
100
+
az containerapp add-on <SERVICE_TYPE> delete \
101
+
--name <ADDON_NAME> \
102
+
--resource-group <RESOURCE-GROUP>
103
+
```
104
+
105
+
## Add-ons
106
+
107
+
> [!IMPORTANT]
108
+
> The public preview add-ons feature will be retired on September 30, 2025. To prepare for this change, transition to Azure-managed services, such as Azure Cache for Redis or Azure Database for PostgreSQL for a production-level service. For development and testing purposes, review the supported open-source quickstarts.
21
109
22
110
Services available as an add-on include:
23
111
@@ -81,7 +169,7 @@ You're responsible for data continuity between development and production enviro
81
169
82
170
To connect a service to an application, you first need to create the service.
83
171
84
-
Use the `az containerapp add-on <SERVICE_TYPE> create` command with the service type and name to create a new service.
172
+
To create a new service, use the `az containerapp add-on <SERVICE_TYPE> create` command with the service type and name.
85
173
86
174
```CLI
87
175
az containerapp add-on redis create \
@@ -124,9 +212,9 @@ For more information on the service commands and arguments, see the
124
212
- Add-ons are in public preview.
125
213
- Any container app created before May 23, 2023 isn't eligible to use add-ons.
126
214
- Add-ons come with minimal guarantees. For instance, they're automatically restarted if they crash, however there's no formal quality of service or high-availability guarantees associated with them. For production workloads, use Azure-managed services.
127
-
- If you use your own VNET, you must use a workload profiles environment. The Add-ons feature is not supported in consumption only environments that use custom VNETs.
215
+
- If you use your own virtual network (virtual network), you must use a workload profiles environment. The Add-ons feature isn't supported in consumption only environments that use custom virtual networks.
128
216
129
217
## Next steps
130
218
131
219
> [!div class="nextstepaction"]
132
-
> [Connect services to a container app](connect-services.md)
220
+
> [Connect services to a container app](connect-services.md)
0 commit comments