Skip to content

Commit afedbb3

Browse files
committed
touchups
1 parent 8425c75 commit afedbb3

File tree

4 files changed

+20
-19
lines changed

4 files changed

+20
-19
lines changed

articles/app-service/includes/tutorial-sidecar/common-faqs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ The volume mounts feature lets you share non-persistent files and directories be
2424

2525
:::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.":::
2626

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.
2929

3030
For example, suppose you configure the following volume mounts:
3131

articles/app-service/includes/tutorial-sidecar/sidecar-overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ ms.author: cephalin
88

99
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.
1010

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.
1212

22 KB
Loading

articles/app-service/tutorial-custom-container-sidecar.md

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ For bring-your-own-code Linux apps, see [Tutorial: Configure a sidecar container
1919
## Prerequisites
2020

2121
- [!INCLUDE [quickstarts-free-trial-note](~/reusable-content/ce-skilling/azure/includes/quickstarts-free-trial-note.md)]
22-
- 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:
2323

2424
1. Select the following **Launch Cloud Shell** button or go to https://shell.azure.com to open Cloud Shell in your browser.
2525

2626
:::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":::
2727

2828
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.
3030

3131
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.
3232

@@ -44,13 +44,13 @@ To clone the sample repository and create the resources for this tutorial, run t
4444
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:
4545

4646
- 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.
4848
- An `otel-collector` OpenTelemetry collector image configured to export to [Azure Monitor](/azure/azure-monitor/overview).
4949
- A [Log Analytics](/azure/azure-monitor/logs/log-analytics-overview) workspace.
5050
- An [Application Insights](/azure/azure-monitor/app/app-insights-overview) component.
5151
- A user-assigned [managed identity](/entra/identity/managed-identities-azure-resources/overview) called `id-my-sidecar-env_group`.
5252

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:
5454

5555
```output
5656
Success!
@@ -69,7 +69,7 @@ Select the link for `Open resource group in the portal` to open the provisioned
6969

7070
## 2. Create a sidecar-enabled app
7171

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.
7373

7474
1. On the resource group's page in the Azure portal, select **Create**.
7575
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
9090
1. On the **Container** tab, select the following settings:
9191
- **Sidecar support**: Set to **Enhanced configuration with sidecar support on**.
9292
- **Image Source**: Select **Azure Container Registry**.
93-
- **Name**: Make sure *main* appears.
93+
- **Name**: Make sure **main** appears.
9494
- **Registry**: Select the registry created by `azd provision`.
9595
- **Authentication**: Select **Managed identity**.
9696
- **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
111111

112112
## 3. Add a sidecar container to the app
113113

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.
115115

116116
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.
117117

@@ -135,15 +135,16 @@ There are now two containers in the deployment center labeled **Main** and **Sid
135135

136136
## 4. Configure environment variables
137137

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.
139141

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.
141142
1. On the app's page in the Azure portal, select **Environment variables** under **Settings** in the left navigation menu.
142143
1. On the **App settings** tab of the **Environment variables** page, select **Add**.
143144
1. On the **Add/Edit application setting** pane, enter the following values:
144145
- **Name**: *APPLICATIONINSIGHTS_CONNECTION_STRING*
145-
- **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.
147148

148149
:::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.":::
149150

@@ -152,10 +153,10 @@ You configure environment variables for the containers like for any App Service
152153
153154
## 5. Verify in Application Insights
154155

155-
The `otel-collector` sidecar should export data to Application Insights now.
156+
The `otel-collector` sidecar should now export data to Application Insights.
156157

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.
159160

160161
:::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.":::
161162

@@ -164,7 +165,7 @@ The `otel-collector` sidecar should export data to Application Insights now.
164165
165166
## 6. Clean up resources
166167

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.
168169

169170
```azurecli
170171
azd down
@@ -182,7 +183,7 @@ azd down
182183
Sidecar-enabled apps are configured differently than apps that aren't sidecar-enabled.
183184

184185
- 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>`.
186187

187188
For more information, see [az webapp config set --linux-fx-version](/cli/azure/webapp/config).
188189

0 commit comments

Comments
 (0)