Skip to content

Commit 7eb7ee2

Browse files
Freshness, in progress.
1 parent a9cdcc4 commit 7eb7ee2

7 files changed

+153
-264
lines changed

articles/app-service/includes/quickstart-custom-container/quickstart-custom-container-linux-azure-portal-pivot.md

Lines changed: 38 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,11 @@ ms.date: 02/11/2025
88
ms.author: cephalin
99
---
1010

11-
[Azure App Service](../../overview.md) on Linux provides predefined application stacks on Linux with support for languages such as .NET, Java, Node.js, PHP, and others. You can also use a custom Docker image to run your web app on an application stack that isn't already defined in Azure. This quickstart shows you how to deploy an image from Azure Container Registry to Azure App Service.
11+
[Azure App Service](../../overview.md) on Linux provides predefined application stacks on Linux with support for languages such as .NET, Java, Node.js, and PHP. You can also use a custom Docker image to run your web app on an application stack that isn't already defined in Azure. This quickstart shows you how to deploy an image from Azure Container Registry to Azure App Service.
1212

13-
> [!NOTE]
14-
> For information regarding running containerized applications in a serverless environment, see [Container Apps](../../../container-apps/overview.md).
15-
>
13+
For more information about containerized applications in a serverless environment, see [Container Apps](../../../container-apps/overview.md).
1614

17-
To complete this quickstart, you need:
15+
## Prerequisites
1816

1917
- An [Azure account](https://azure.microsoft.com/free/?utm_source=campaign&utm_campaign=vscode-tutorial-docker-extension&mktingSource=vscode-tutorial-docker-extension)
2018
- An [Azure container registry](/azure/container-registry/container-registry-get-started-portal)
@@ -31,34 +29,34 @@ git clone https://github.com/Azure-Samples/dotnetcore-docs-hello-world.git
3129

3230
## Push the image to Azure Container Registry
3331

34-
Make sure you are in the cloned repository's root folder. This repository contains a **Dockerfile.linux** file.
32+
Make sure you are in the cloned repository's root folder. This repository contains a *Dockerfile.linux* file.
3533

3634
1. Sign in to the Azure CLI.
3735

38-
```azurecli
39-
az login
40-
```
36+
```azurecli
37+
az login
38+
```
4139

4240
1. Sign in to Azure Container Registry.
4341

44-
```azurecli
45-
az acr login -n <your_registry_name>
46-
```
42+
```azurecli
43+
az acr login -n <your_registry_name>
44+
```
4745

48-
1. Build the container image. This example uses the image name **dotnetcore-docs-hello-world-linux**.
46+
1. Build the container image. This example uses the image name *dotnetcore-docs-hello-world-linux*.
4947

50-
```docker
51-
docker build -f Dockerfile.linux -t <your_registry_name>.azurecr.io/dotnetcore-docs-hello-world-linux .
52-
```
48+
```docker
49+
docker build -f Dockerfile.linux -t <your_registry_name>.azurecr.io/dotnetcore-docs-hello-world-linux .
50+
```
5351

5452
1. Push the container image to Azure Container Registry.
5553

56-
```docker
57-
docker push <your_registry_name>.azurecr.io/dotnetcore-docs-hello-world-linux:latest
58-
```
54+
```docker
55+
docker push <your_registry_name>.azurecr.io/dotnetcore-docs-hello-world-linux:latest
56+
```
5957

60-
> [!NOTE]
61-
> The Dockerfile sets the port number to 80 internally. For more information about configuring the container, see [Configure custom container](../../configure-custom-container.md).
58+
> [!NOTE]
59+
> The Dockerfile sets the port number to 80 internally. For more information about configuring the container, see [Configure custom container](../../configure-custom-container.md).
6260
6361
## Deploy to Azure
6462

@@ -70,23 +68,23 @@ Sign in to the [Azure portal](https://portal.azure.com).
7068

7169
1. Type **app services** in the search. Under **Services**, select **App Services**.
7270

73-
:::image type="content" source="../../media/quickstart-custom-container/portal-search.png?text=Azure portal search details" alt-text="Screenshot of searching for 'app services' in the Azure portal.":::
71+
:::image type="content" source="../../media/quickstart-custom-container/portal-search.png" alt-text="Screenshot of searching for 'app services' in the Azure portal.":::
7472

75-
1. In the **App Services** page, select **+ Create**.
73+
1. In the **App Services** page, select **Create**.
7674

77-
1. In the **Basics** tab, under **Project details**, ensure the correct subscription is selected and then select to **Create new** resource group. Type *myResourceGroup* for the name.
75+
1. In the **Basics** tab, under **Project details**, select the correct subscription and then select to **Create new** resource group. Type *myResourceGroup* for the name.
7876

79-
:::image type="content" source="../../media/quickstart-custom-container/project-details.png" alt-text="Screenshot of the Project details section showing where you select the Azure subscription and the resource group for the web app.":::
77+
:::image type="content" source="../../media/quickstart-custom-container/project-details.png" alt-text="Screenshot of the Project details section showing where you select the Azure subscription and the resource group for the web app.":::
8078

81-
1. Under **Instance details**, type a globally unique name for your web app and select **Docker Container**. Select *Linux* for the **Operating System**. Select a **Region** you want to serve your app from.
79+
1. Under **Instance details**, enter a globally unique name for your web app and select **Docker Container**. Select *Linux* for the **Operating System**. Select a **Region** you want to serve your app from.
8280

83-
:::image type="content" source="../../media/quickstart-custom-container/instance-details-linux.png" alt-text="Screenshot of the Instance details section where you provide a name for the virtual machine and select its region, image, and size.":::
81+
:::image type="content" source="../../media/quickstart-custom-container/instance-details-linux.png" alt-text="Screenshot of the Instance details section where you provide a name for the virtual machine and select its region, image, and size.":::
8482

85-
1. Under **App Service Plan**, select **Create new** App Service Plan. Type *myAppServicePlan* for the name. To change to the Free tier, select **Change size**, select the **Dev/Test** tab, select **F1**, and select the **Apply** button at the bottom of the page.
83+
1. Under **App Service Plan**, select **Create new** App Service Plan. Type *myAppServicePlan* for the name. To change to the Free tier, select **Change size**, select the **Dev/Test** tab, select **F1**. Select **Apply**.
8684

87-
:::image type="content" source="../../media/quickstart-custom-container/app-service-plan-details-linux.png" alt-text="Screenshot of the App Service plan options.":::
85+
:::image type="content" source="../../media/quickstart-custom-container/app-service-plan-details-linux.png" alt-text="Screenshot of the App Service plan options.":::
8886

89-
1. Select the **Next: Docker >** button at the bottom of the page.
87+
1. Select **Next: Docker >** button at the bottom of the page.
9088

9189
1. In the **Docker** tab, select *Single Container* under **Options** and *Azure Container Registry* for the **Image Source**. Under **Azure container registry options**, set the following values:
9290
- **Registry**: Select your Azure Container Registry.
@@ -115,35 +113,18 @@ Browse to the deployed application in your web browser at the URL `http://<app-n
115113

116114
[!INCLUDE [Clean-up Portal web app resources](../../../../includes/clean-up-section-portal-no-h.md)]
117115

118-
## Next steps
116+
## Related content
119117

120118
Congratulations, you've successfully completed this quickstart.
121119

122120
The App Service app pulls from the container registry every time it starts. If you rebuild your image, you just need to push it to your container registry, and the app pulls in the updated image when it restarts. To tell your app to pull in the updated image immediately, restart it.
123121

124-
> [!div class="nextstepaction"]
125-
> [Secure with custom domain and certificate](../../tutorial-secure-domain-certificate.md)
126-
127-
> [!div class="nextstepaction"]
128-
> [Migrate to Windows container in Azure](../../tutorial-custom-container.md)
129-
130-
> [!div class="nextstepaction"]
131-
> [Integrate your app with an Azure virtual network](../../overview-vnet-integration.md)
132-
133-
> [!div class="nextstepaction"]
134-
> [Use Private Endpoints for App Service apps](../../networking/private-endpoint.md)
135-
136-
> [!div class="nextstepaction"]
137-
> [Azure Monitor overview](/azure/azure-monitor/overview)
138-
139-
> [!div class="nextstepaction"]
140-
> [Application monitoring for Azure App Service overview](/azure/azure-monitor/app/azure-web-apps)
141-
142-
> [!div class="nextstepaction"]
143-
> [How to use managed identities for App Service and Azure Functions](../../overview-managed-identity.md)
144-
145-
> [!div class="nextstepaction"]
146-
> [Configure custom container](../../configure-custom-container.md)
147-
148-
> [!div class="nextstepaction"]
149-
> [Sidecar container tutorial](../../tutorial-custom-container-sidecar.md)
122+
- [Secure with custom domain and certificate](../../tutorial-secure-domain-certificate.md)
123+
- [Migrate to Windows container in Azure](../../tutorial-custom-container.md)
124+
- [Integrate your app with an Azure virtual network](../../overview-vnet-integration.md)
125+
- [Use Private Endpoints for App Service apps](../../networking/private-endpoint.md)
126+
- [Azure Monitor overview](/azure/azure-monitor/overview)
127+
- [Application monitoring for Azure App Service overview](/azure/azure-monitor/app/azure-web-apps)
128+
- [How to use managed identities for App Service and Azure Functions](../../overview-managed-identity.md)
129+
- [Configure custom container](../../configure-custom-container.md)
130+
- [Sidecar container tutorial](../../tutorial-custom-container-sidecar.md)

0 commit comments

Comments
 (0)