Skip to content

Commit 8b2317c

Browse files
Update ACRBuildAndPushGuide.md file with mcp_server and correct steps to resolve fir InvalidResourceLocation and LocationNotAvailableForResourceType
1 parent 1521f39 commit 8b2317c

File tree

3 files changed

+25
-2
lines changed

3 files changed

+25
-2
lines changed

docs/ACRBuildAndPushGuide.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,29 @@ If you want to update image tag and image manually you can follow below steps:
7474
![alt text](./images/AppServiceContainer.png)
7575

7676

77+
**MCP Server :**
78+
79+
```bash
80+
az acr login --name <containerregname>
81+
docker build --no-cache -f src/mcp_server/Dockerfile -t <acrloginserver>/<repo>:<tagname> ./src/mcp_server
82+
docker push <acrloginserver>/<repo>:<tagname>
83+
```
84+
85+
If you want to update image tag and image manually you can follow below steps:
86+
- Go to your **Container App** in the [Azure Portal](https://portal.azure.com/#home).
87+
- In the left menu, select **Containers**.
88+
- Under your container, update:
89+
90+
- Image source → Azure Container Registry / Docker Hub.
91+
92+
- Image name → myapp/mcp.
93+
94+
- Tag → change to the new one you pushed (e.g., v2).
95+
96+
- Click **Save** → this will create a new revision automatically with the updated image.
97+
98+
![alt text](./images/mcpContainer.png)
99+
77100
## ✅ Verification
78101

79102
Run the following command to verify that images were pushed successfully:

docs/TroubleShootingSteps.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ Use these as quick reference guides to unblock your deployments.
8383

8484
| Issue/Error Code | Description | Steps to Resolve |
8585
|-----------------|-------------|------------------|
86-
| **LocationNotAvailableForResourceType** | Resource type not supported in selected region | <ul><li>You may encounter a LocationNotAvailableForResourceType error if you set the secondary location to 'Australia Central' in the main.bicep file</li><li>This happens because 'Australia Central' is not a supported region for that resource type</li><li>Always refer to the README file or Azure documentation to check the list of supported regions</li><li>Update the deployment with a valid supported region to resolve the issue</li></ul> |
87-
| **InvalidResourceLocation** | Cannot change region for already deployed resources | <ul><li>You may encounter an InvalidResourceLocation error if you change the region for Cosmos DB or the Storage Account (secondary location) multiple times in the main.bicep file and redeploy</li><li>Azure resources like Cosmos DB and Storage Accounts do not support changing regions after deployment</li><li>If you need to change the region again, first delete the existing deployment</li><li>Then redeploy the resources with the updated region configuration</li></ul> |
86+
| **LocationNotAvailableForResourceType** | Resource type not supported in selected region | This error occurs when you attempt to deploy a resource to a region that does not support that specific resource type or SKU.<br><br>**Resolution:**<br><ul><li>**Verify resource availability by region:**<br>`az provider show --namespace <provider-namespace> --query "resourceTypes[?resourceType=='<resource-type>'].locations" -o table`</li><li>**Check Azure Products by Region:**<br>[Azure Products by Region](https://azure.microsoft.com/en-us/explore/global-infrastructure/products-by-region/)</li><li>**Supported regions for this deployment:**<br><ul><li>`australiaeast`</li><li>`centralus`</li><li>`eastasia`</li><li>`eastus2`</li><li>`japaneast`</li><li>`northeurope`</li><li>`southeastasia`</li><li>`uksouth`</li></ul></li><li>**Redeploy:**<br>`azd up`</li></ul> |
87+
| **InvalidResourceLocation** | Cannot change region for already deployed resources | This error occurs when you attempt to modify the location/region of a resource that has already been deployed. Azure resources **cannot change regions** after creation.<br><br>**Resolution:**<br><ul><li>**Option 1: Delete and Redeploy:**<br>`azd down --force --purge`<br> after purge redeploy app `azd up`</li><li>**Option 2: Create new environment with different region:**<br>`azd env new <new-env-name>`<br>`azd env set AZURE_LOCATION <new-region>`<br>`azd up`</li><li>**Option 3: Keep existing deployment:**<br>Revert configuration files to use the original region</li></ul><br>⚠️ **Important:** Backup critical data before deleting resources.<br><br>**Reference:** [Move Azure resources across regions](https://learn.microsoft.com/en-us/azure/resource-mover/overview) |
8888
| **ServiceUnavailable/ResourceNotFound** | Service unavailable or restricted in selected region | <ul><li>Regions are restricted to guarantee compatibility with paired regions and replica locations for data redundancy and failover scenarios based on articles [Azure regions list](https://learn.microsoft.com/en-us/azure/reliability/regions-list) and [Azure Database for MySQL Flexible Server - Azure Regions](https://learn.microsoft.com/azure/mysql/flexible-server/overview#azure-regions)</li><li>You can request more quota, refer [Quota Request](https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/create-support-request-quota-increase) Documentation</li></ul> |
8989
| **ResourceOperationFailure/<br>ProvisioningDisabled** | Resource provisioning restricted or disabled in region | <ul><li>This error occurs when provisioning of a resource is restricted in the selected region. It usually happens because the service is not available in that region or provisioning has been temporarily disabled</li><li>Regions are restricted to guarantee compatibility with paired regions and replica locations for data redundancy and failover scenarios based on articles [Azure regions list](https://learn.microsoft.com/en-us/azure/reliability/regions-list) and [Azure Database for MySQL Flexible Server - Azure Regions](https://learn.microsoft.com/azure/mysql/flexible-server/overview#azure-regions)</li><li>If you need to use the same region, you can request a quota or provisioning exception. Refer [Quota Request](https://docs.microsoft.com/en-us/azure/sql-database/quota-increase-request) for more details</li></ul> |
9090
| **RedundancyConfigurationNotAvailableInRegion** | Redundancy configuration not supported in selected region | <ul><li>This issue happens when you try to create a **Storage Account** with a redundancy configuration (e.g., `Standard_GRS`) that is **not supported in the selected Azure region**</li><li>Example: Creating a storage account with **GRS** in **italynorth** will fail with error:<br>`az storage account create -n mystorageacct123 -g myResourceGroup -l italynorth --sku Standard_GRS --kind StorageV2`</li><li>To check supported SKUs for your region:<br>`az storage account list-skus -l italynorth -o table`</li><li>Use a supported redundancy option (e.g., Standard_LRS) in the same region or deploy the Storage Account in a region that supports your chosen redundancy</li><li>For more details, refer to [Azure Storage redundancy documentation](https://learn.microsoft.com/en-us/azure/storage/common/storage-redundancy?utm_source=chatgpt.com)</li></ul> |

docs/images/mcpContainer.png

99.8 KB
Loading

0 commit comments

Comments
 (0)