Skip to content

Conversation

abrilurena
Copy link

@abrilurena abrilurena commented Apr 1, 2025

Purpose

Based on my experience with various error messages encountered while deploying this template on my Windows laptop, I've come up with the following ideas to help guide others who might receive similar error messages. I hope this helps! 🌟

Documentation updates:

  • docs/deploy_fix.md: Added a new file covering potential error messages when deploying templates locally, along with detailed solutions for each error. This includes handling quota issues, maximum number of environments, and missing Rust/Cargo installations.
  • docs/deploy_troubleshooting.md: Updated the troubleshooting guide to include references to the new error message solutions in deploy_fix.md. This helps users quickly find solutions to specific errors related to quotas, environment limits, and missing dependencies.

Does this introduce a breaking change?

When developers merge from main and run the server, azd up, or azd deploy, will this produce an error?
If you're not sure, try it out on an old environment.

[ ] Yes
[x] No

Does this require changes to learn.microsoft.com docs?

This repository is referenced by this tutorial
which includes deployment, settings and usage instructions. If text or screenshot need to change in the tutorial, check the box below and notify the tutorial author. A Microsoft employee can do this for you if you're an external contributor.

[ ] Yes
[X ] No

Type of change

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[x] Documentation content changes
[ ] Other... Please describe:


1. You're attempting to create resources in regions not enabled for Azure OpenAI (e.g. East US 2 instead of East US), or where the model you're trying to use isn't enabled. See [this matrix of model availability](https://aka.ms/oai/models).

> 💡 **Note (April 1st 2025): Regions available for both services**: australiaeast, brazilsouth, eastus, eastus2, francecentral, germanywestcentral, japaneast, koreacentral, northcentralus, norwayeast, southafricanorth, southcentralus, swedencentral, switzerlandnorth, uaenorth, uksouth, westeurope, westus, westus3
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We already restrict the locations for OpenAI and document intelligence, so you have to explicitly set the location for them. Which region/service did you have an issue with?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi! I thought of including this list to make it easier for users, but I'll delete it now that I know it's restricted in the Bicep file. :D


## Cargo, the Rust package manager, is not installed or is not on Path.

_This package requires Rust and Cargo to compile extensions. Install it through the system's package manager._
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I mentioned on the issue, I am hoping this is no longer an error, as we removed the package that was identified as needing rust. Do you still see it today?

Possible solutions:

1. Review and adjust the quota: Check if you can increase the quota for Tokens Per Minute (thousands) for your gpt-model in your Azure settings. This might involve requesting a quota increase through the Azure portal.
2. Optimize token usage: Examine your implementation to see if you can reduce the number of tokens you're using.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would not work. Our bicep requests 30, so it doesnt matter what the usage is like.
However, they can set this environment variable if they have less than 30 TPM available:

azd env set AZURE_OPENAI_CHATGPT_DEPLOYMENT_CAPACITY 20

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okidoki, would you recommed to include it as an option here on the file?


1. After running `azd up` and visiting the website, you see a '404 Not Found' in the browser. Wait 10 minutes and try again, as it might be still starting up. Then try running `azd deploy` and wait again. If you still encounter errors with the deployed app and are deploying to App Service, consult the [guide on debugging App Service deployments](/docs/appservice.md). Please file an issue if the logs don't help you resolve the error.

1. How to resolve other potential error messages:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you merge deploy_fix into this doc, so that it's all in same doc? I like how you used headings since those can be linked to in issues.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okidoki, i'll change it :D

@abrilurena abrilurena closed this Apr 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants