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
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,23 +8,23 @@ ms.author: cephalin
8
8
9
9
### How do sidecar containers handle internal communication?
10
10
11
-
Sidecar containers share the same network host as the main container, so the main container and other sidecar containers can reach any port on the sidecar with `localhost:<port>`. The example *startup.sh* uses `localhost:4318` to access port 4318 on the **otel-collector** sidecar.
11
+
Sidecar containers share the same network host as the main container, so the main container and other sidecar containers can reach any port on the sidecar with `localhost:<port>`. The example *startup.sh* uses `localhost:4318` to access port 4318 on the otel-collector sidecar.
12
12
13
-
In the **Edit container** dialog, the **Port**box isn't currently used by App Service. You can use it as part of the sidecar metadata, such as to indicate which port the sidecar is listening to.
13
+
In the **Edit container** dialog, the **Port**setting isn't currently used by App Service. You can use it as part of the sidecar metadata, such as to indicate which port the sidecar is listening to.
14
14
15
15
### Can a sidecar container receive internet requests?
16
16
17
-
No. App Service routes internet requests only to the main container. For code-based Linux apps, the built-in Linux container is the main container, and any sidecar [sitecontainers](/azure/templates/microsoft.web/sites/sitecontainers) should be added with `IsMain=false`.
17
+
No. App Service routes internet requests only to the main container. For code-based Linux apps, the built-in Linux container is the main container, and any sidecar [`sitecontainers`](/azure/templates/microsoft.web/sites/sitecontainers) should be added with `IsMain=false`.
18
18
19
-
For custom containers, all except one of the [sitecontainers](/azure/templates/microsoft.web/sites/sitecontainers) should have `IsMain=false`. For more information on configuring `IsMain`, see [Microsoft.Web sites/sitecontainers](/azure/templates/microsoft.web/sites/sitecontainers).
19
+
For custom containers, all except one of the [`sitecontainers`](/azure/templates/microsoft.web/sites/sitecontainers) should have `IsMain=false`. For more information on configuring `IsMain`, see [Microsoft.Web sites/sitecontainers](/azure/templates/microsoft.web/sites/sitecontainers).
20
20
21
21
### How do I use volume mounts?
22
22
23
23
The volume mounts feature lets you share non-persistent files and directories between containers within your web app. To add or configure volume mounts, use **Volume mounts** on the **Add container** or **Edit container** page.
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 automatically created and isn't referenced within the container. Containers that are configured with the same volume sub path can share files and directories.
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
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.
29
29
30
30
For example, suppose you configure the following volume mounts:
Copy file name to clipboardExpand all lines: articles/app-service/tutorial-custom-container-sidecar.md
+20-15Lines changed: 20 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ To create the resources that this tutorial uses, run the following commands in C
39
39
cd app-service-sidecar-tutorial-prereqs
40
40
azd env new my-sidecar-env
41
41
azd provision
42
-
```
42
+
```
43
43
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
@@ -55,15 +55,17 @@ When deployment completes, you should see similar to the following output:
Managed identity resource ID = /subscriptions/116dc797-1663-4e33-92f6-195da3734e6e/resourceGroups/my-sidecar-env_group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id-my-sidecar-env_group
61
-
Managed identity client ID = ca492300-1051-401e-b5b1-74be61ca03c1
60
+
Managed identity resource ID = /subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/resourceGroups/my-sidecar-env_group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id-my-sidecar-env_group
61
+
Managed identity client ID = 00aa00aa-bb11-cc22-dd33-44ee44ee44ee
62
62
63
-
Open resource group in the portal: https://portal.azure.com/#@/resource/subscriptions/116dc797-1663-4e33-92f6-195da3734e6e/resourceGroups/my-sidecar-env_group
63
+
Open resource group in the portal: https://portal.azure.com/#@/resource/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/resourceGroups/my-sidecar-env_group
64
64
```
65
65
66
-
Copy and save the value for`APPLICATIONINSIGHTS_CONNECTION_STRING` to use laterin this tutorial. Select the `Open resource group in the portal` link to open the resource group in the Azure portal.
66
+
Copy and save the value for **APPLICATIONINSIGHTS_CONNECTION_STRING** to use later in this tutorial.
67
+
68
+
Select the **Open resource group in the portal** link to open the resource group in the Azure portal.
67
69
68
70
## 2. Create a sidecar-enabled app
69
71
@@ -74,7 +76,7 @@ In this section, you create the Linux custom container app and main container, a
74
76
75
77
:::image type="content" source="media/tutorial-custom-container-sidecar/create-web-app.png" alt-text="Screenshot showing Azure Marketplace page with web app being searched and create web app button highlighted.":::
76
78
77
-
1. On the **Basics** tab of the **Create Web App** screen, provide the following information:
79
+
1. On the **Basics** tab of the **Create Web App**page, provide the following information:
78
80
-**Name**: Enter a unique name for the web app.
79
81
-**Publish**: Select **Container**.
80
82
-**Operating System**: Select **Linux**.
@@ -96,10 +98,10 @@ In this section, you create the Linux custom container app and main container, a
96
98
-**Tag**: Enter *latest*.
97
99
-**Port**: Enter *80* if not already set.
98
100
99
-
:::image type="content" source="media/tutorial-custom-container-sidecar/create-wizard-container-panel.png" alt-text="Screenshot showing the Container settings for the Linux custom container web app with settings for the container image and the sidecar support highlighted.":::
101
+
:::image type="content" source="media/tutorial-custom-container-sidecar/create-wizard-container-panel.png" alt-text="Screenshot showing the Container settings for the Linux custom container web app.":::
100
102
101
103
> [!NOTE]
102
-
> These settings are configured differently in sidecar-enabled apps than in non-sidecar enabled apps. For more information, see [What are the differences for sidecar-enabled custom containers](#what-are-the-differences-for-sidecar-enabled-custom-containers).
104
+
> These settings are configured differently in sidecar-enabled apps than in apps not enabled for sidecars. For more information, see [What are the differences for sidecar-enabled custom containers](#what-are-the-differences-for-sidecar-enabled-custom-containers).
103
105
104
106
1. Select **Review + create**, and when validation passes, select **Create**.
105
107
@@ -111,7 +113,7 @@ In this section, you create the Linux custom container app and main container, a
111
113
112
114
In this section, you add a sidecar container to your Linux custom container app.
113
115
114
-
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, which is currently only the main container.
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.
115
117
116
118
1. Select **Add** > **Custom container**.
117
119
@@ -141,7 +143,7 @@ You configure environment variables for the containers like for any App Service
141
143
1. On the **Add/Edit application setting** pane, enter the following values:
-**Value**: The `APPLICATIONINSIGHTS_CONNECTION_STRING` value from the output of `azd provision`. You can also find the value on the **Overview** page of the Application Insight resource, under **Connection String**.
144
-
1. Select **Apply**, then select **Apply** again, and then select **Confirm**.
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.
145
147
146
148
:::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.":::
147
149
@@ -173,15 +175,18 @@ azd down
173
175
-[What are the differences for sidecar-enabled custom containers?](#what-are-the-differences-for-sidecar-enabled-custom-containers)
174
176
-[How do sidecar containers handle internal communication?](#how-do-sidecar-containers-handle-internal-communication)
175
177
-[Can a sidecar container receive internet requests?](#can-a-sidecar-container-receive-internet-requests)
178
+
-[How do I use volume mounts?](how-do-i-use-volume-mounts)
176
179
177
180
### What are the differences for sidecar-enabled custom containers?
178
181
179
182
Sidecar-enabled apps are configured differently than apps that aren't sidecar-enabled.
180
183
181
-
- Sidecar-enabled apps are designated by `LinuxFxVersion=sitecontainers` and configured with [sitecontainers](/azure/templates/microsoft.web/sites/sitecontainers) resources. For more information, see [az webapp config set --linux-fx-version](/cli/azure/webapp/config).
182
-
- Non-sidecar enabled app container names and types are configured directly with `LinuxFxVersion=DOCKER|<image-details>`. For more information, see [az webapp config set --linux-fx-version](/cli/azure/webapp/config).
184
+
- 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
+
187
+
For more information, see [az webapp config set --linux-fx-version](/cli/azure/webapp/config).
183
188
184
-
Non-sidecar enabled apps configure the main container with app settings such as:
189
+
Apps that aren't sidecar-enabled configure the main container with app settings such as:
185
190
186
191
-`DOCKER_REGISTRY_SERVER_URL`
187
192
-`DOCKER_REGISTRY_SERVER_USERNAME`
@@ -196,5 +201,5 @@ These settings don't apply for sidecar-enabled apps.
0 commit comments