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
In this tutorial, you add an OpenTelemetry collector as a sidecar container to a Linux custom container app in Azure App Service.
14
14
15
-
In Azure App Service, you can add up to four sidecar containers for each sidecar-enabled custom container app. Sidecar containers let you deploy extra services and features to your container application without making them tightly coupled to your main application container. For example, you can add monitoring, logging, configuration, and networking services as sidecar containers. An OpenTelemetry collector sidecar is one such monitoring example.
15
+
In Azure App Service, you can add up to nine sidecar containers for each sidecar-enabled custom container app. Sidecar containers let you deploy extra services and features to your container application without making them tightly coupled to your main application container. For example, you can add monitoring, logging, configuration, and networking services as sidecar containers. An OpenTelemetry collector sidecar is one such monitoring example.
16
16
17
-
For more information about sidecars, see [Sidecar pattern](/azure/architecture/patterns/sidecar).
17
+
For more information about side container in App Service, see:
18
+
19
+
-[Introducing Sidears for Azure App Service for Linux: Now Generally Available](https://azure.github.io/AppService/2024/11/08/Global-Availability-Sidecars.html)
20
+
-[Announcing the general availability of sidecar extensibility in Azure App Service](https://techcommunity.microsoft.com/blog/appsonazureblog/announcing-the-general-availability-of-sidecar-extensibility-in-azure-app-servic/4267985)
Copy file name to clipboardExpand all lines: articles/app-service/tutorial-sidecar.md
+70-5Lines changed: 70 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: 'Tutorial: Configure a sidecar container'
3
3
description: Add sidecar containers to your linux app in Azure App Service. Add or update services to your application without changing your application code.
4
4
ms.topic: tutorial
5
-
ms.date: 11/13/2024
5
+
ms.date: 11/19/2024
6
6
ms.author: msangapu
7
7
author: msangapu-msft
8
8
keywords: azure app service, web app, linux, windows, docker, sidecar
In this tutorial, you add an OpenTelemetry collector as a sidecar container to a Linux app in Azure App Service.
14
14
15
-
In Azure App Service, you can add up to four sidecar containers for each sidecar-enabled custom container app. Sidecar containers let you deploy extra services and features to your container application without making them tightly coupled to your main application container. For example, you can add monitoring, logging, configuration, and networking services as sidecar containers. An OpenTelemetry collector sidecar is one such monitoring example.
15
+
In Azure App Service, you can add up to nine sidecar containers for each sidecar-enabled custom container app. Sidecar containers let you deploy extra services and features to your container application without making them tightly coupled to your main application container. For example, you can add monitoring, logging, configuration, and networking services as sidecar containers. An OpenTelemetry collector sidecar is one such monitoring example.
16
16
17
-
For more information about sidecars, see [Sidecar pattern](/azure/architecture/patterns/sidecar).
17
+
For more information about side container in App Service, see:
18
+
19
+
-[Introducing Sidears for Azure App Service for Linux: Now Generally Available](https://azure.github.io/AppService/2024/11/08/Global-Availability-Sidecars.html)
20
+
-[Announcing the general availability of sidecar extensibility in Azure App Service](https://techcommunity.microsoft.com/blog/appsonazureblog/announcing-the-general-availability-of-sidecar-extensibility-in-azure-app-servic/4267985)
@@ -71,11 +74,16 @@ This basic web application is deployed as MyFirstAzureWebApp.dll to App Service.
71
74
72
75
## 3. Add a sidecar container
73
76
74
-
In this section, you add a sidecar container to your custom container app.
77
+
In this section, you add a sidecar container to your custom container app. The portal experience is still being rolled out. If it's not available to you yet, continue with the **Use ARM template** tab below.
78
+
79
+
### [Use portal UI](#tab/portal)
75
80
76
81
1. In the [Azure portal](https://portal.azure.com), navigate to the app's management page
77
82
1. In the app's management page, from the left menu, select **Deployment Center**.
78
-
1. Select the message **Interested in adding containers to run alongside your app? Click here to give it a try.**
83
+
1. Select the banner **Interested in adding containers to run alongside your app? Click here to give it a try.**
84
+
85
+
If you can't see the banner, then the portal UI isn't rolled out for your subscription yet. Select the **Use ARM template** here instead and continue.
86
+
79
87
1. When the page reloads, select the **Containers (new)** tab.
80
88
1. Select **Add** and configure the new container as follows:
81
89
-**Name**: *otel-collector*
@@ -88,6 +96,63 @@ In this section, you add a sidecar container to your custom container app.
88
96
89
97
:::image type="content" source="media/tutorial-sidecar/add-sidecar-container.png" alt-text="Screenshot showing how to configure a sidecar container in a web app's deployment center.":::
90
98
99
+
### [Use ARM template](#tab/template)
100
+
101
+
1. Navigate to the [custom deployment](https://portal.azure.com/#create/Microsoft.Template) template in the portal.
102
+
103
+
1. Select **Build your own template in the editor**.
104
+
105
+
1. Replace the content in the textbox with the following JSON code and select **Save**:
1. Configure the template with the following information:
146
+
147
+
- **Resource Group**: Select the resource group with the App Service app you created with `az webapp up` earlier.
148
+
- **App Name**: Type the name of the App Service app.
149
+
- **Azure Container Registry Name**: Type the name of the registry you created with `azd up` earlier.
150
+
- **Azure Container Regsitry Image Name**: Leave the default value of *otel-collector:latest*. This points to the OpenTelemtry image in the registry.
151
+
152
+
1. Select **Review + Create**, then select **Create**.
153
+
154
+
-----
155
+
91
156
## 4. Configure environment variables
92
157
93
158
For the sample scenario, the otel-collector sidecar is configured to export the OpenTelemetry data to Azure Monitor, but it needs the connection string as an environment variable (see the [OpenTelemetry configuration file for the otel-collector image](https://github.com/Azure-Samples/app-service-sidecar-tutorial-prereqs/blob/main/images/otel-collector/otel-collector-config.yaml)).
0 commit comments