-
Notifications
You must be signed in to change notification settings - Fork 157
chore: Dev to Main changes merge #657
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 56 commits
Commits
Show all changes
59 commits
Select commit
Hold shift + click to select a range
1a8347f
model deployment when reusing existing foundry
Priyanka-Microsoft 383706b
change model deployment name
Priyanka-Microsoft 5ccc7c1
removed system managed identity code
Priyanka-Microsoft 99ad169
seggregated the files
Priyanka-Microsoft e0747b2
fix: Updated file names
Prajwal-Microsoft d604cea
Resolved main json commit
Priyanka-Microsoft d4065d5
Merge pull request #621 from microsoft/model-deployment-resusing-exis…
Prajwal-Microsoft dc627e4
chore: down merging main into dev (#638)
Rafi-Microsoft c509549
added for cross-subscription existing AI project resource ID
Kanchan-Microsoft ad9ba63
update
Kanchan-Microsoft 18f3e78
fix: agent cleanup (#639)
Shreyas-Microsoft 0f8ccc5
TS( 21657) Bicep Standard code changes
Bangarraju-Microsoft d499936
Merge branch 'dev' of https://github.com/microsoft/Build-your-own-cop…
Bangarraju-Microsoft e8a113f
Added required env variables for local debugging in .env generated by…
Prasanjeet-Microsoft 12b99bb
Merge pull request #642 from microsoft/PSL-US-21463
Prajwal-Microsoft 2c17025
Added "Required/Optional" and changed aiProjectName suffix.
Bangarraju-Microsoft 51df269
removed location tag
Bangarraju-Microsoft f9dbf41
Merge branch 'dev' into psl-bug-21342
Kanchan-Microsoft f202b60
foundry project documentation
Kanchan-Microsoft 313f6e3
Merge branch 'psl-bug-21342' of https://github.com/microsoft/Build-yo…
Kanchan-Microsoft 8b24bca
corrected name
Kanchan-Microsoft b0e5161
Merge branch 'dev' of https://github.com/microsoft/Build-your-own-cop…
Bangarraju-Microsoft d455118
updated CAdeploy.yml
Kanchan-Microsoft a8e25dd
update CAdeploy.yml
Kanchan-Microsoft 2f89864
Merge pull request #640 from microsoft/psl-bug-21342
Prajwal-Microsoft 1df9fc6
changed pipeline variable
Bangarraju-Microsoft 1166aa8
Merge pull request #644 from microsoft/main
Prajwal-Microsoft d9c999d
Merge branch 'dev' of https://github.com/microsoft/Build-your-own-cop…
Bangarraju-Microsoft a911f20
updated main.json file
Bangarraju-Microsoft d3ed0ee
updated yml file
Bangarraju-Microsoft 0742080
test
Kanchan-Microsoft edd0c97
test
Kanchan-Microsoft 9b812cc
update
Kanchan-Microsoft a2328c0
update
Kanchan-Microsoft b84cd26
test
Kanchan-Microsoft f4b5b14
update CAdeploy.yml
Kanchan-Microsoft 6f083ea
Merge pull request #645 from microsoft/git-actions
Prajwal-Microsoft fe7c161
CustomizingAzdparamMd
UtkarshMishra-Microsoft 7c5b9d4
Merge pull request #647 from microsoft/customizemd
Prajwal-Microsoft c317d43
Merge pull request #643 from microsoft/PSLRJ-TS-21657
Prajwal-Microsoft c38e7a9
deploymentMdUpdate
UtkarshMishra-Microsoft 55aa714
Updated
UtkarshMishra-Microsoft 45fd259
Merge pull request #648 from microsoft/deploymentMd
Prajwal-Microsoft 39e0085
Update infra/main.bicep
Prasanjeet-Microsoft a1b363d
Update src/App/backend/plugins/chat_with_data_plugin.py
Prasanjeet-Microsoft 4f81d2a
Update infra/main.bicep
Prasanjeet-Microsoft 12ca750
Revert Copilot suggestion: `and project_client` is unnecessary.
Prasanjeet-Microsoft 7232d77
Merge branch 'main' into dev
Roopan-Microsoft 9c0b3da
docs: Added Troubleshoot.md files for BYOC-Client Advisor (#650)
VishalS-Microsoft 9ed413c
added colon
VishalS-Microsoft f9e0c08
Replace 'u' with 'you' for proper grammarUpdate docs/TroubleShootingS…
VishalS-Microsoft d31d0e8
extra space removed
VishalS-Microsoft 3c2645f
The command block is not properly closed
VishalS-Microsoft 3f092e4
The command should be wrapped in a proper code block with language id…
VishalS-Microsoft ccc16de
The total asset value and current asset value are responding correctl…
Prekshith-Microsoft a0f3944
Bicep file changes to add CreatedBy tag (#655)
NirajC-Microsoft c900215
Update docs/TroubleShootingSteps.md
NirajC-Microsoft 8138165
fix: Adding a hardcoded createdBy parameter to the CAdeploy.yml file …
NirajC-Microsoft 3df581e
Merge branch 'main' into dev
Roopan-Microsoft File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,355 @@ | ||
|
||
# 🛠️ Troubleshooting | ||
When deploying Azure resources, you may come across different error codes that stop or delay the deployment process. This section lists some of the most common errors along with possible causes and step-by-step resolutions. | ||
|
||
Use these as quick reference guides to unblock your deployments. | ||
|
||
## Error Codes | ||
|
||
<details> | ||
<summary><b>ReadOnlyDisabledSubscription</b></summary> | ||
|
||
- Check if you have an active subscription before starting the deployment. | ||
|
||
</details> | ||
|
||
<details> | ||
<summary><b>MissingSubscriptionRegistration/ AllowBringYourOwnPublicIpAddress/ InvalidAuthenticationToken</b></summary> | ||
|
||
|
||
Enable `AllowBringYourOwnPublicIpAddress` Feature | ||
|
||
Before deploying the resources, you may need to enable the **Bring Your Own Public IP Address** feature in Azure. This is required only once per subscription. | ||
|
||
### Steps | ||
|
||
1. **Run the following command to register the feature:** | ||
|
||
```bash | ||
az feature register --namespace Microsoft.Network --name AllowBringYourOwnPublicIpAddress | ||
``` | ||
|
||
2. **Wait for the registration to complete.** | ||
You can check the status using: | ||
|
||
```bash | ||
az feature show --namespace Microsoft.Network --name AllowBringYourOwnPublicIpAddress --query properties.state | ||
``` | ||
|
||
3. **The output should show:** | ||
"Registered" | ||
|
||
4. **Once the feature is registered, refresh the provider:** | ||
|
||
```bash | ||
az provider register --namespace Microsoft.Network | ||
``` | ||
|
||
💡 Note: Feature registration may take several minutes to complete. This needs to be done only once per Azure subscription. | ||
|
||
</details> | ||
|
||
<details> | ||
<summary><b>ResourceGroupNotFound</b></summary> | ||
|
||
## Option 1 | ||
### Steps | ||
|
||
1. Go to [Azure Portal](https://portal.azure.com/#home). | ||
|
||
2. Click on the **"Resource groups"** option available on the Azure portal home page. | ||
 | ||
|
||
3. In the Resource Groups search bar, search for the resource group you intend to target for deployment. If it exists, you can proceed with using it. | ||
 | ||
|
||
## Option 2 | ||
|
||
- This error can occur if you deploy the template using the same .env file - from a previous deployment. | ||
- To avoid this issue, create a new environment before redeploying. | ||
- You can use the following command to create a new environment: | ||
```bash | ||
azd env new <env-name> | ||
``` | ||
</details> | ||
<details> | ||
<summary><b>ResourceGroupBeingDeleted</b></summary> | ||
|
||
To prevent this issue, please ensure that the resource group you are targeting for deployment is not currently being deleted. You can follow steps to verify resource group is being deleted or not. | ||
### Steps: | ||
1. Go to [Azure Portal](https://portal.azure.com/#home) | ||
2. Go to resource group option and search for targeted resource group | ||
3. If Targeted resource group is there and deletion for this is in progress, it means you cannot use this, you can create new or use any other resource group | ||
|
||
</details> | ||
|
||
<details> | ||
<summary><b>InternalSubscriptionIsOverQuotaForSku/ManagedEnvironmentProvisioningError </b></summary> | ||
|
||
Quotas are applied per resource group, subscriptions, accounts, and other scopes. For example, your subscription might be configured to limit the number of vCPUs for a region. If you attempt to deploy a virtual machine with more vCPUs than the permitted amount, you receive an error that the quota was exceeded. | ||
For PowerShell, use the `Get-AzVMUsage` cmdlet to find virtual machine quotas. | ||
```ps | ||
Get-AzVMUsage -Location "West US" | ||
``` | ||
based on available quota you can deploy application otherwise, you can request for more quota | ||
</details> | ||
|
||
<details> | ||
<summary><b>InsufficientQuota</b></summary> | ||
|
||
- Check if you have sufficient quota available in your subscription before deployment. | ||
- To verify, refer to the [quota_check](../docs/QuotaCheck.md) file for details. | ||
|
||
</details> | ||
|
||
<details> | ||
<summary><b>DeploymentModelNotSupported</b></summary> | ||
|
||
- The updated model may not be supported in the selected region. Please verify its availability in the [Azure AI Foundry models](https://learn.microsoft.com/en-us/azure/ai-foundry/openai/concepts/models?tabs=global-standard%2Cstandard-chat-completions) document. | ||
|
||
</details> | ||
<details> | ||
<summary><b>LinkedInvalidPropertyId/ ResourceNotFound/DeploymentOutputEvaluationFailed/ CanNotRestoreANonExistingResource </b></summary> | ||
|
||
- Before using any resource ID, ensure it follows the correct format. | ||
- Verify that the resource ID you are passing actually exists. | ||
- Make sure there are no typos in the resource ID. | ||
- Verify that the provisioning state of the existing resource is `Succeeded` by running the following command to avoid this error while deployment or restoring the resource. | ||
|
||
```bash | ||
az resource show --ids <Resource ID> --query "properties.provisioningState" | ||
``` | ||
- Sample Resource IDs format | ||
- Log Analytics Workspace Resource ID | ||
``` | ||
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName} | ||
``` | ||
- Azure AI Foundry Project Resource ID | ||
``` | ||
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{name} | ||
``` | ||
- For more information refer [Resource Not Found errors solutions](https://learn.microsoft.com/en-us/azure/azure-resource-manager/troubleshooting/error-not-found?tabs=bicep) | ||
|
||
</details> | ||
<details> | ||
<summary><b>ResourceNameInvalid</b></summary> | ||
|
||
- Ensure the resource name is within the allowed length and naming rules defined for that specific resource type, you can refer [Resource Naming Convention](https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/resource-name-rules) document. | ||
|
||
</details> | ||
<details> | ||
<summary><b>ServiceUnavailable/ResourceNotFound</b></summary> | ||
|
||
- 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). | ||
|
||
- You can request more quota, refer [Quota Request](https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/create-support-request-quota-increase) Documentation | ||
|
||
|
||
</details> | ||
<details> | ||
<summary><b>Workspace Name - InvalidParameter</b></summary> | ||
|
||
To avoid this errors in workspace ID follow below rules. | ||
1. Must start and end with an alphanumeric character (letter or number). | ||
2. Allowed characters: | ||
`a–z` | ||
`0–9` | ||
`- (hyphen)` | ||
3. Cannot start or end with a hyphen -. | ||
4. No spaces, underscores (_), periods (.), or special characters. | ||
5. Must be unique within the Azure region & subscription. | ||
6. Length: 3–33 characters (for AML workspaces). | ||
</details> | ||
<details> | ||
<summary><b>BadRequest: Dns record under zone Document is already taken</b></summary> | ||
|
||
This error can occur only when user hardcoding the CosmosDB Service name. To avoid this you can try few below suggestions. | ||
- Verify resource names are globally unique. | ||
- If you already created an account/resource with same name in another subscription or resource group, check and delete it before reusing the name. | ||
- By default in this template we are using unique prefix with every resource/account name to avoid this kind for errors. | ||
</details> | ||
<details> | ||
<summary><b>NetcfgSubnetRangeOutsideVnet</b></summary> | ||
|
||
- Ensure the subnet’s IP address range falls within the virtual network’s address space. | ||
- Always validate that the subnet CIDR block is a subset of the VNet range. | ||
- For Azure Bastion, the AzureBastionSubnet must be at least /27. | ||
- Confirm that the AzureBastionSubnet is deployed inside the VNet. | ||
</details> | ||
<details> | ||
<summary><b>DisableExport_PublicNetworkAccessMustBeDisabled</b></summary> | ||
|
||
- <b>Check container source:</b> Confirm whether the deployment is using a Docker image or Azure Container Registry (ACR). | ||
- <b>Verify ACR configuration:</b> If ACR is included, review its settings to ensure they comply with Azure requirements. | ||
- <b>Check export settings:</b> If export is disabled in ACR, make sure public network access is also disabled. | ||
- <b>Dedeploy after fix:</b> Correct the configuration and redeploy. This will prevent the Conflict error during deployment. | ||
- For more information refer [ACR Data Loss Prevention](https://learn.microsoft.com/en-us/azure/container-registry/data-loss-prevention) document. | ||
</details> | ||
<details> | ||
<summary><b>AccountProvisioningStateInvalid</b></summary> | ||
|
||
- The AccountProvisioningStateInvalid error occurs when you try to use resources while they are still in the Accepted provisioning state. | ||
- This means the deployment has not yet fully completed. | ||
- To avoid this error, wait until the provisioning state changes to Succeeded. | ||
- Only use the resources once the deployment is fully completed. | ||
</details> | ||
<details> | ||
<summary><b>VaultNameNotValid</b></summary> | ||
|
||
In this template Vault name will be unique everytime, but if you trying to hard code the name then please make sure below points. | ||
1. Check name length | ||
- Ensure the Key Vault name is between 3 and 24 characters. | ||
2. Validate allowed characters | ||
- The name can only contain letters (a–z, A–Z) and numbers (0–9). | ||
- Hyphens are allowed, but not at the beginning or end, and not consecutive (--). | ||
3. Ensure proper start and end | ||
- The name must start with a letter. | ||
- The name must end with a letter or digit (not a hyphen). | ||
4. Test with a new name | ||
- Example of a valid vault name: | ||
✅ `cartersaikeyvault1` | ||
✅ `securevaultdemo` | ||
✅ `kv-project123` | ||
</details> | ||
<details> | ||
<summary><b>DeploymentCanceled</b></summary> | ||
|
||
There might be multiple reasons for this error you can follow below steps to troubleshoot. | ||
1. Check deployment history | ||
- Go to Azure Portal → Resource Group → Deployments. | ||
- Look at the detailed error message for the deployment that was canceled — this will show which resource failed and why. | ||
2. Identify the root cause | ||
- A DeploymentCanceled usually means: | ||
- A dependent resource failed to deploy. | ||
- A validation error occurred earlier. | ||
- A manual cancellation was triggered. | ||
- Expand the failed deployment logs for inner error messages. | ||
3. Validate your template (ARM/Bicep) | ||
Run: | ||
``` | ||
az deployment group validate --resource-group <rg-name> --template-file main.bicep | ||
``` | ||
4. Check resource limits/quotas | ||
- Ensure you have not exceeded quotas (vCPUs, IPs, storage accounts, etc.), which can silently cause cancellation. | ||
5. Fix the failed dependency | ||
- If a specific resource shows BadRequest, Conflict, or ValidationError, resolve that first. | ||
- Re-run the deployment after fixing the root cause. | ||
6. Retry deployment | ||
Once corrected, redeploy with: | ||
``` | ||
az deployment group create --resource-group <rg-name> --template-file main.bicep | ||
``` | ||
Essentially: DeploymentCanceled itself is just a wrapper error — you need to check inner errors in the deployment logs to find the actual failure. | ||
</details> | ||
<details> | ||
<summary><b>LocationNotAvailableForResourceType</b></summary> | ||
|
||
- You may encounter a LocationNotAvailableForResourceType error if you set the secondary location to 'Australia Central' in the main.bicep file. | ||
- This happens because 'Australia Central' is not a supported region for that resource type. | ||
- Always refer to the README file or Azure documentation to check the list of supported regions. | ||
- Update the deployment with a valid supported region to resolve the issue. | ||
|
||
</details> | ||
|
||
<details> | ||
<summary><b>InvalidResourceLocation</b></summary> | ||
|
||
- 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. | ||
- Azure resources like Cosmos DB and Storage Accounts do not support changing regions after deployment. | ||
- If you need to change the region again, first delete the existing deployment. | ||
- Then redeploy the resources with the updated region configuration. | ||
|
||
</details> | ||
|
||
<details> | ||
|
||
<summary><b>DeploymentActive</b></summary> | ||
|
||
- This issue occurs when a deployment is already in progress and another deployment is triggered in the same resource group, causing a DeploymentActive error. | ||
- Cancel the ongoing deployment before starting a new one. | ||
- Do not initiate a new deployment in the same resource group until the previous one is completed. | ||
</details> | ||
|
||
<details> | ||
<summary><b>ResourceOperationFailure/ProvisioningDisabled</b></summary> | ||
|
||
- 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. | ||
|
||
- 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). | ||
|
||
- 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. | ||
|
||
</details> | ||
|
||
<details> | ||
<summary><b>MaxNumberOfRegionalEnvironmentsInSubExceeded</b></summary> | ||
|
||
- This error occurs when you try to create more than the allowed number of **Azure Container App Environments (ACA Environments)** in the same region for a subscription. | ||
- For example, in **Sweden Central**, only **1 Container App Environment** is allowed per subscription. | ||
|
||
The subscription 'xxxx-xxxx' cannot have more than 1 Container App Environments in Sweden Central. | ||
|
||
- To fix this, you can: | ||
- Deploy the Container App Environment in a **different region**, OR | ||
- Request a quota increase via Azure Support → [Quota Increase Request](https://go.microsoft.com/fwlink/?linkid=2208872) | ||
|
||
</details> | ||
|
||
<details> | ||
<summary><b>Unauthorized - Operation cannot be completed without additional quota</b> </summary> | ||
|
||
- You can check your quota usage using `az vm list-usage`. | ||
|
||
``` | ||
az vm list-usage --location "<Location>" -o table | ||
``` | ||
- To Request more quota refer [VM Quota Request](https://techcommunity.microsoft.com/blog/startupsatmicrosoftblog/how-to-increase-quota-for-specific-types-of-azure-virtual-machines/3792394). | ||
|
||
</details> | ||
|
||
<details><summary><b>ParentResourceNotfound</b> | ||
</summary> | ||
|
||
- You can refer to the [Parent Resource Not found](https://learn.microsoft.com/en-us/azure/azure-resource-manager/troubleshooting/error-parent-resource?tabs=bicep) documentation if you encounter this error. | ||
|
||
</details> | ||
|
||
<details><summary><b>ResourceProviderError</b></summary> | ||
|
||
- This error occurs when the resource provider is not registered in your subscription. | ||
- To register it, refer to [Register Resource Provider](https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/resource-providers-and-types) documentation. | ||
|
||
</details> | ||
|
||
<details><summary><b>Conflict - Cannot use the SKU Basic with File Change Audit for site.</b></summary> | ||
|
||
- This error happens because File Change Audit logs aren’t supported on Basic SKU App Service Plans. | ||
|
||
- Upgrading to Premium/Isolated SKU (supports File Change Audit), or | ||
|
||
- Disabling File Change Audit in Diagnostic Settings if you must stay on Basic. | ||
- Always cross-check the [supported log types](https://aka.ms/supported-log-types) | ||
before adding diagnostic logs to your Bicep templates. | ||
|
||
</details> | ||
|
||
<details> | ||
|
||
<summary><b>AccountPropertyCannotBeUpdated</b></summary> | ||
|
||
- The property **`isHnsEnabled`** (Hierarchical Namespace for Data Lake Gen2) is **read-only** and can only be set during **storage account creation**. | ||
- Once a storage account is created, this property **cannot be updated**. | ||
- Trying to update it via ARM template, Bicep, CLI, or Portal will fail. | ||
|
||
- **Resolution** | ||
- Create a **new storage account** with `isHnsEnabled=true` if you require hierarchical namespace. | ||
- Migration may be needed if you already have data. | ||
- Refer to [Storage Account Update Restrictions](https://aka.ms/storageaccountupdate) for more details. | ||
|
||
</details> | ||
|
||
|
||
💡 Note: If you encounter any other issues, you can refer to the [Common Deployment Errors](https://learn.microsoft.com/en-us/azure/azure-resource-manager/troubleshooting/common-deployment-errors) documentation. | ||
If the problem persists, you can also raise an bug in our [BYOC-Client Advisor Github Issues](https://github.com/microsoft/Build-your-own-copilot-Solution-Accelerator/issues) for further support. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.