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
-Run the commands in this tutorial by using Azure Cloud Shell, an interactive shell that 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 can 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
@@ -28,11 +28,11 @@ For bring-your-own-code Linux apps, see [Tutorial: Configure a sidecar container
28
28
1. Sign in to Azure if necessary, and make sure you're in the **Bash** environment of Cloud Shell.
29
29
1. Select **Copy** in a code block, paste the code into Cloud Shell, and run it.
30
30
31
-
The 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.
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
33
33
## 1. Set up the tutorial resources
34
34
35
-
To create the resources that this tutorial uses, run the following commands in Cloud Shell. When prompted, select the Azure subscription and Azure region you want to use.
35
+
To clone the sample repository and create the resources for this tutorial, run the following commands in Cloud Shell. When prompted, select the Azure subscription and Azure region you want to use.
@@ -43,16 +43,16 @@ To create the resources that this tutorial uses, run the following commands in C
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
46
-
- A [container registry](/azure/container-registry/container-registry-intro) with two repositories, containing the following images:
47
-
- An `nginx` image with the OpenTelemetry module.
48
-
- An `otel-collector` OpenTelemetry collector image, configured to export to [Azure Monitor](/azure/azure-monitor/overview).
49
-
- A [Log Analytics workspace](/azure/azure-monitor/logs/log-analytics-overview).
50
-
- An [Application Insights](/azure/azure-monitor/app/app-insights-overview) component and Application Insights Smart Detection action group.
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.
48
+
- An `otel-collector` OpenTelemetry collector image configured to export to [Azure Monitor](/azure/azure-monitor/overview).
49
+
- A [Log Analytics](/azure/azure-monitor/logs/log-analytics-overview) workspace.
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 similar to the following output:
53
+
When deployment completes, you should see output similar to the following message:
@@ -63,24 +63,24 @@ Managed identity client ID = 00aa00aa-bb11-cc22-dd33-44ee44ee44ee
63
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 later in this tutorial.
66
+
Copy and save the value for `APPLICATIONINSIGHTS_CONNECTION_STRING` to use later in this tutorial.
67
67
68
-
Select the **Open resource group in the portal** link to open the resource group in the Azure portal.
68
+
Select the link for `Open resource group in the portal`to open the provisioned resource group in the Azure portal.
69
69
70
70
## 2. Create a sidecar-enabled app
71
71
72
-
In this section, you create the Linux custom container app and main container, and enable sidecar support for the app.
72
+
In this section, you create the 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
-
1. On the **Marketplace** page, search for *web app*, select the down arrow next to **Create** on the **Web App** tile, and then select **Web App**.
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**.
76
76
77
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.":::
78
78
79
79
1. On the **Basics** tab of the **Create Web App** page, provide the following information:
80
80
-**Name**: Enter a unique name for the web app.
81
81
-**Publish**: Select **Container**.
82
82
-**Operating System**: Select **Linux**.
83
-
-**Region**: Select the same region as the one you chose with`azd provision`.
83
+
-**Region**: Select the same region you chose for`azd provision`.
84
84
-**Linux Plan**: Select the provided **(New)** App Service plan.
85
85
86
86
:::image type="content" source="media/tutorial-custom-container-sidecar/create-wizard-basics-panel.png" alt-text="Screenshot showing the Basic settings for the Linux custom container web app.":::
@@ -92,7 +92,7 @@ In this section, you create the Linux custom container app and main container, a
-**Registry**: Select the registry created by `azd provision`.
95
-
-**Authentication**: Select **Managed Identity**.
95
+
-**Authentication**: Select **Managed identity**.
96
96
-**Identity**: Select the managed identity created by `azd provision`.
97
97
-**Image**: Enter *nginx*.
98
98
-**Tag**: Enter *latest*.
@@ -107,7 +107,7 @@ In this section, you create the Linux custom container app and main container, a
107
107
108
108
1. Once the deployment completes, select **Go to resource**.
109
109
110
-
1. On your app's page, open the URL next to **Default domain**, such as `https://<app-name>.azurewebsites.net`, in a new browser tab to see the default **nginx** page.
110
+
1. On your app's page, open the URL next to **Default domain**, `https://<app-name>.azurewebsites.net`, in a new browser tab to see the default **nginx** page.
111
111
112
112
## 3. Add a sidecar container to the app
113
113
@@ -142,7 +142,7 @@ You configure environment variables for the containers like for any App Service
142
142
1. On the **App settings** tab of the **Environment variables** page, select **Add**.
143
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**.
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
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.
147
147
148
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.":::
0 commit comments