Skip to content

Commit 37c7c88

Browse files
committed
edits
1 parent 521b0e3 commit 37c7c88

File tree

3 files changed

+25
-20
lines changed

3 files changed

+25
-20
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,23 @@ ms.author: cephalin
88

99
### How do sidecar containers handle internal communication?
1010

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

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

1515
### Can a sidecar container receive internet requests?
1616

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`.
1818

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).
2020

2121
### How do I use volume mounts?
2222

2323
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.
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 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.
2828
- **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.
2929

3030
For example, suppose you configure the following volume mounts:
100 Bytes
Loading

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

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ To create the resources that this tutorial uses, run the following commands in C
3939
cd app-service-sidecar-tutorial-prereqs
4040
azd env new my-sidecar-env
4141
azd provision
42-
```
42+
```
4343

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

@@ -55,15 +55,17 @@ When deployment completes, you should see similar to the following output:
5555
```bash
5656
Success!
5757

58-
APPLICATIONINSIGHTS_CONNECTION_STRING = InstrumentationKey=2462f7fd-02ad-4af1-9ca1-ceb8b48d7893;IngestionEndpoint=https://eastus2-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus2.livediagnostics.monitor.azure.com/;ApplicationId=753ad4ce-d852-4118-8d11-d9c5ad3b2252
58+
APPLICATIONINSIGHTS_CONNECTION_STRING = InstrumentationKey=aaaaaaaa-0b0b-1c1c-2d2d-333333333333;IngestionEndpoint=https://eastus2-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus2.livediagnostics.monitor.azure.com/;ApplicationId=00001111-aaaa-2222-bbbb-3333cccc4444
5959
Azure container registry name = acro2lc774l6vjgg
60-
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
6262

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
6464
```
6565

66-
Copy and save the value for `APPLICATIONINSIGHTS_CONNECTION_STRING` to use later in 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.
6769

6870
## 2. Create a sidecar-enabled app
6971

@@ -74,7 +76,7 @@ In this section, you create the Linux custom container app and main container, a
7476

7577
:::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.":::
7678

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:
7880
- **Name**: Enter a unique name for the web app.
7981
- **Publish**: Select **Container**.
8082
- **Operating System**: Select **Linux**.
@@ -96,10 +98,10 @@ In this section, you create the Linux custom container app and main container, a
9698
- **Tag**: Enter *latest*.
9799
- **Port**: Enter *80* if not already set.
98100

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.":::
100102

101103
> [!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).
103105
104106
1. Select **Review + create**, and when validation passes, select **Create**.
105107

@@ -111,7 +113,7 @@ In this section, you create the Linux custom container app and main container, a
111113

112114
In this section, you add a sidecar container to your Linux custom container app.
113115

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

116118
1. Select **Add** > **Custom container**.
117119

@@ -141,7 +143,7 @@ You configure environment variables for the containers like for any App Service
141143
1. On the **Add/Edit application setting** pane, enter the following values:
142144
- **Name**: *APPLICATIONINSIGHTS_CONNECTION_STRING*
143145
- **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.
145147

146148
:::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.":::
147149

@@ -173,15 +175,18 @@ azd down
173175
- [What are the differences for sidecar-enabled custom containers?](#what-are-the-differences-for-sidecar-enabled-custom-containers)
174176
- [How do sidecar containers handle internal communication?](#how-do-sidecar-containers-handle-internal-communication)
175177
- [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)
176179

177180
### What are the differences for sidecar-enabled custom containers?
178181

179182
Sidecar-enabled apps are configured differently than apps that aren't sidecar-enabled.
180183

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).
183188

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

186191
- `DOCKER_REGISTRY_SERVER_URL`
187192
- `DOCKER_REGISTRY_SERVER_USERNAME`
@@ -196,5 +201,5 @@ These settings don't apply for sidecar-enabled apps.
196201

197202
- [Configure custom container](configure-custom-container.md)
198203
- [REST API: Web Apps - Create Or Update Site Container](/rest/api/appservice/web-apps/create-or-update-site-container)
199-
- [Infrastructure as Code: Microsoft.Web sites/sitecontainers](/azure/templates/microsoft.web/sites/sitecontainers)
204+
- [Infrastructure as Code: Microsoft.Web sites/`sitecontainers`](/azure/templates/microsoft.web/sites/sitecontainers)
200205
- [Deploy custom containers with GitHub Actions](deploy-container-github-action.md)

0 commit comments

Comments
 (0)