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/app-service/includes/tutorial-sidecar/common-faqs.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,8 +24,8 @@ The volume mounts feature lets you share non-persistent files and directories be
24
24
25
25
:::image type="content" source="../../media/tutorial-custom-container-sidecar/configure-volume-mounts.png" alt-text="Screenshot showing a volume mount configuration for a sidecar container.":::
26
26
27
-
-**Volume sub path** is a logical directory path that's created automatically and isn't referenced within the container. Containers that are configured with the same volume sub path can share files and directories.
28
-
-**Container mount path**corresponds to a directory path that you reference within the container. The container mount path is mapped to the volume sub path.
27
+
-**Volume sub path** is an automatically created logical directory path that isn't referenced within the container. Containers that are configured with the same volume sub path can share files and directories.
28
+
-**Container mount path**is a directory path that you reference within the container. The container mount path is mapped to the volume sub path.
29
29
30
30
For example, suppose you configure the following volume mounts:
Copy file name to clipboardExpand all lines: articles/app-service/includes/tutorial-sidecar/sidecar-overview.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,5 +8,5 @@ ms.author: cephalin
8
8
9
9
Sidecar containers in App Service let you deploy extra services and features to your Linux apps without tightly coupling them to the built-in or custom main container. The sidecar containers run alongside the main application container in the same App Service plan.
10
10
11
-
You can add up to nine sidecar containers for each Linux app in App Service. For example, you can add monitoring, logging, configuration, and networking services as sidecar containers. An OpenTelemetry collector sidecar is one such monitoring example.
11
+
You can add up to nine sidecar containers for each Linux app in App Service. For example, you can add monitoring, logging, configuration, and networking services as sidecar containers. An OpenTelemetry collector sidecar is one example for monitoring.
- You can run the commands in this tutorial by using Azure Cloud Shell, an interactive shell you can use through your browser to work with Azure services. To use Cloud Shell:
22
+
- You can run the commands in this tutorial by using Azure Cloud Shell, an interactive shell you use through your browser to work with Azure services. To use Cloud Shell:
23
23
24
24
1. Select the following **Launch Cloud Shell** button or go to https://shell.azure.com to open Cloud Shell in your browser.
25
25
26
26
:::image type="icon" source="~/reusable-content/ce-skilling/azure/media/cloud-shell/launch-cloud-shell-button.png" alt-text="Button to launch the Azure Cloud Shell." border="false" link="https://shell.azure.com":::
27
27
28
28
1. Sign in to Azure if necessary, and make sure you're in the **Bash** environment of Cloud Shell.
29
-
1. Select **Copy** in a code block, paste the code into Cloud Shell, and run it.
29
+
1. Select **Copy** in any code block, paste the code into Cloud Shell, and run it.
30
30
31
31
The `azd` commands in this tutorial use the [Azure Developer CLI](/azure/developer/azure-developer-cli/overview), an open-source tool that accelerates provisioning and deploying app resources on Azure.
32
32
@@ -44,13 +44,13 @@ To clone the sample repository and create the resources for this tutorial, run t
44
44
The `azd provision` command uses the included templates to create an Azure resource group called `my-sidecar-env_group` that contains the following Azure resources:
45
45
46
46
- A [container registry](/azure/container-registry/container-registry-intro) with two repositories that have the following images:
47
-
- An `nginx` image that contains the OpenTelemetry module.
47
+
- An `nginx` image that has the OpenTelemetry module.
48
48
- An `otel-collector` OpenTelemetry collector image configured to export to [Azure Monitor](/azure/azure-monitor/overview).
49
49
- A [Log Analytics](/azure/azure-monitor/logs/log-analytics-overview) workspace.
50
50
- An [Application Insights](/azure/azure-monitor/app/app-insights-overview) component.
51
51
- A user-assigned [managed identity](/entra/identity/managed-identities-azure-resources/overview) called `id-my-sidecar-env_group`.
52
52
53
-
When deployment completes, you should see output similar to the following message:
53
+
When deployment completes, you should see output similar to the following example:
54
54
55
55
```output
56
56
Success!
@@ -69,7 +69,7 @@ Select the link for `Open resource group in the portal` to open the provisioned
69
69
70
70
## 2. Create a sidecar-enabled app
71
71
72
-
In this section, you create the Linux custom container app with sidecar support and configure the main container.
72
+
In the resource group in the Azure portal, create a Linux custom container app with sidecar support, and configure the main container.
73
73
74
74
1. On the resource group's page in the Azure portal, select **Create**.
75
75
1. On the **Marketplace** page, search for *web app*, select the down arrow next to **Create** on the **Web App** tile, and select **Web App**.
@@ -90,7 +90,7 @@ In this section, you create the Linux custom container app with sidecar support
90
90
1. On the **Container** tab, select the following settings:
91
91
-**Sidecar support**: Set to **Enhanced configuration with sidecar support on**.
-**Registry**: Select the registry created by `azd provision`.
95
95
-**Authentication**: Select **Managed identity**.
96
96
-**Identity**: Select the managed identity created by `azd provision`.
@@ -111,7 +111,7 @@ In this section, you create the Linux custom container app with sidecar support
111
111
112
112
## 3. Add a sidecar container to the app
113
113
114
-
In this section, you add a sidecar container to your Linux custom container app.
114
+
Add a sidecar container to your Linux custom container app.
115
115
116
116
1. On the app's page in the Azure portal, select **Deployment Center** under **Deployment** in the left navigation menu. The **Deployment Center** page shows all the containers in the app, currently only the main container.
117
117
@@ -135,15 +135,16 @@ There are now two containers in the deployment center labeled **Main** and **Sid
135
135
136
136
## 4. Configure environment variables
137
137
138
-
For the sample scenario, the `otel-collector` sidecar is configured to export the OpenTelemetry data to Azure Monitor using the connection string as an environment variable. For more information, 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).
138
+
In the sample scenario, the `otel-collector` sidecar is configured to export the OpenTelemetry data to Azure Monitor using the connection string as an environment variable. For more information, 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).
139
+
140
+
Configure the environment variable for the container by configuring [app settings](configure-common.md#configure-app-settings) for the app. App settings are accessible to all the containers in the app.
139
141
140
-
You configure environment variables for the containers like for any App Service app by configuring [app settings](configure-common.md#configure-app-settings). The app settings are accessible to all the containers in the app.
141
142
1. On the app's page in the Azure portal, select **Environment variables** under **Settings** in the left navigation menu.
142
143
1. On the **App settings** tab of the **Environment variables** page, select **Add**.
143
144
1. On the **Add/Edit application setting** pane, enter the following values:
-**Value**: The value of `APPLICATIONINSIGHTS_CONNECTION_STRING` from the output of `azd provision`. You can also find this value on the **Overview** page of the Application Insight resource under **Connection String**.
146
-
1. Select **Apply**, then select **Apply** again, and then select **Confirm**. You now see the **APPLICATIONINSIGHTS_CONNECTION_STRING** app setting on the **Environment variables**page.
146
+
-**Value**: The value of `APPLICATIONINSIGHTS_CONNECTION_STRING` from the output of `azd provision`. You can also find this value as **Connection String**on the **Overview** page of the resource group's Application Insight resource.
147
+
1. Select **Apply**, then select **Apply** again, and then select **Confirm**. The **APPLICATIONINSIGHTS_CONNECTION_STRING** app setting now appears on the **App settings**tab.
147
148
148
149
:::image type="content" source="media/tutorial-custom-container-sidecar/configure-app-settings.png" alt-text="Screenshot showing a web app's Configuration page with two app settings added.":::
149
150
@@ -152,10 +153,10 @@ You configure environment variables for the containers like for any App Service
152
153
153
154
## 5. Verify in Application Insights
154
155
155
-
The `otel-collector` sidecar should export data to Application Insights now.
156
+
The `otel-collector` sidecar should now export data to Application Insights.
156
157
157
-
1. Go to the browser tab for your app and refresh the page a few times to generate some web requests.
158
-
1. On the resource group page in the Azure portal, select the **Application Insights** resource. You should now see some data in the default charts.
158
+
1. Go to your app in a new browser tab and refresh the page a few times to generate some web requests.
159
+
1. On the resource group page in the Azure portal, select the **Application Insights** resource. You should now see some data in the default charts on the Application Insights **Overview** page.
159
160
160
161
:::image type="content" source="media/tutorial-custom-container-sidecar/app-insights-view.png" alt-text="Screenshot of the Application Insights page showing data in the default charts.":::
161
162
@@ -164,7 +165,7 @@ The `otel-collector` sidecar should export data to Application Insights now.
164
165
165
166
## 6. Clean up resources
166
167
167
-
When you no longer need the environment, you can delete the resource group, app service, and all related resources. Run the following command in the cloned repository in Cloud Shell.
168
+
When you no longer need the environment you created for this tutorial, you can delete the resource group, which removes the app service and all related resources. Run the following command in the cloned repository in Cloud Shell.
168
169
169
170
```azurecli
170
171
azd down
@@ -182,7 +183,7 @@ azd down
182
183
Sidecar-enabled apps are configured differently than apps that aren't sidecar-enabled.
183
184
184
185
- Sidecar-enabled apps are designated by `LinuxFxVersion=sitecontainers` and configured with [`sitecontainers`](/azure/templates/microsoft.web/sites/sitecontainers) resources.
185
-
-App container names and types for apps that aren't sidecar enabled are configured directly with `LinuxFxVersion=DOCKER|<image-details>`.
186
+
-Apps that aren't sidecar enabled configure the container name and type directly with `LinuxFxVersion=DOCKER|<image-details>`.
186
187
187
188
For more information, see [az webapp config set --linux-fx-version](/cli/azure/webapp/config).
0 commit comments