Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
1273265
Additional troubleshooting steps
NirajC-Microsoft Sep 8, 2025
92cadba
Remove trypo
NirajC-Microsoft Sep 8, 2025
abef875
Add Correct Resource provider URL
NirajC-Microsoft Sep 8, 2025
080926b
remove <br> tag
NirajC-Microsoft Sep 8, 2025
c3254dd
Update docs/TroubleShootingSteps.md
NirajC-Microsoft Sep 8, 2025
34ed02d
Update docs/TroubleShootingSteps.md
NirajC-Microsoft Sep 8, 2025
933f80e
Fix duplicate content in Troubleshooting Steps
NirajC-Microsoft Sep 8, 2025
1f6d0fa
Enhance troubleshooting documentation with new errors
NirajC-Microsoft Sep 8, 2025
fbb3172
Enhance troubleshooting for Azure SQL Server issues
NirajC-Microsoft Sep 9, 2025
265f94a
Update docs/TroubleShootingSteps.md
NirajC-Microsoft Sep 9, 2025
4899ecb
Document handling of DeploymentCanceled error
NirajC-Microsoft Sep 15, 2025
ae62895
Update troubleshooting steps for Cosmos DB provisioning errors
NirajC-Microsoft Sep 16, 2025
4122c57
Modify troubleshooting summary for deployment issues
NirajC-Microsoft Sep 16, 2025
9f44541
Simplify BadRequest error message in documentation
NirajC-Microsoft Sep 16, 2025
491b218
Add ACR Build and Push Guide documentation
NirajC-Microsoft Sep 18, 2025
be9aefa
Add troubleshooting for Azure OpenAI model access error
NirajC-Microsoft Sep 18, 2025
f8a9b9e
Update troubleshooting steps for deployment models
NirajC-Microsoft Sep 18, 2025
5877bbd
Update TroubleShootingSteps.md with new error details
NirajC-Microsoft Sep 18, 2025
628180f
Fix summary tag in ContainerAppOperationError section
NirajC-Microsoft Sep 18, 2025
e933ec9
Fix punctuation in ContainerAppOperationError section
NirajC-Microsoft Sep 18, 2025
be21418
Enhance ACR Build and Push Guide with additional resources
NirajC-Microsoft Sep 18, 2025
d084366
Add container File images
NirajC-Microsoft Sep 18, 2025
0d1b92a
Enhance ACR Build and Push Guide with update steps
NirajC-Microsoft Sep 18, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
95 changes: 95 additions & 0 deletions docs/ACRBuildAndPushGuide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
# Azure Container Registry (ACR) – Build & Push Guide

This guide provides step-by-step instructions to build and push Docker images for **WebApp** and **Backend** services into Azure Container Registry (ACR).

## 📋 Prerequisites
Before starting, ensure you have:
- An active [Azure Subscription](https://portal.azure.com/)
- [Azure CLI](https://learn.microsoft.com/en-us/cli/azure/install-azure-cli) installed and logged in
- [Docker Desktop](https://docs.docker.com/get-docker/) installed and running
- Access to your Azure Container Registry (ACR)
- To create an Azure Container Registry (ACR), you can refer to the following guides:

- [Create Container Registry using Azure CLI](https://learn.microsoft.com/en-us/azure/container-registry/container-registry-get-started-azure-cli)

- [Create Container Registry using Azure Portal](https://learn.microsoft.com/en-us/azure/container-registry/container-registry-get-started-portal?tabs=azure-cli)

- [Create Container Registry using PowerShell](https://learn.microsoft.com/en-us/azure/container-registry/container-registry-get-started-powershell)

- [Create Container Registry using ARM Template](https://learn.microsoft.com/en-us/azure/container-registry/container-registry-get-started-geo-replication-template)

- [Create Container Registry using Bicep](https://learn.microsoft.com/en-us/azure/container-registry/container-registry-get-started-bicep?tabs=CLI)

---

Login to ACR :
``` bash
az acr login --name $ACR_NAME
```

## 🚀 Build and Push Images

**Backend :**

```bash
az acr login --name <containerregname>
docker build --no-cache -f docker/Backend.Dockerfile -t <acrloginserver>/<repo>:<tagname> .
docker push <acrloginserver>/<repo>:<tagname>
```

If you want to update image tag and image manually you can follow below steps:
- Go to your **Container App** in the [Azure Portal](https://portal.azure.com/#home).
- In the left menu, select **Containers**.
- Under your container, update:

- Image source → Azure Container Registry / Docker Hub.

- Image name → myapp/backend.

- Tag → change to the new one you pushed (e.g., v2).

- Click **Save** → this will create a new revision automatically with the updated image.

![alt text](./images/ContainerApp.png)

**WebApp :**

```bash
az acr login --name <containerregname>
docker build --no-cache -f docker/Frontend.Dockerfile -t <acrloginserver>/<repo>:<tagname> .
docker push <acrloginserver>/<repo>:<tagname>
```

If you want to update image tag and image manually you can follow below steps:
- Go to your App Service in the [Azure Portal](https://portal.azure.com/#home).
- In the left menu, select Deployment → Deployment Center
- Under Container settings, you can configure:

- Image Source → (e.g., Azure Container Registry / Docker Hub / Other).

- Image Name → e.g., myapp/backend.

- Tag → e.g., v1.2.3.

![alt text](./images/AppServiceContainer.png)


## ✅ Verification

Run the following command to verify that images were pushed successfully:
```bash
az acr repository list --name $ACR_NAME --output table
```

You should see repositories in the output.

## 📝 Notes

- Always use meaningful tags (v1.0.0, staging, prod) instead of just latest.

- If you are pushing from a CI/CD pipeline, make sure the pipeline agent has access to Docker and ACR.

- For private images, ensure your services (e.g., Azure Container Apps, AKS, App Service) are configured with appropriate ACR pull permissions.



Loading
Loading