You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -65,8 +65,8 @@ The repo includes sample data so it's ready to try end to end. In this sample ap
65
65
Pricing varies per region and usage, so it isn't possible to predict exact costs for your usage.
66
66
However, you can try the [Azure pricing calculator](https://azure.com/e/a87a169b256e43c089015fda8182ca87) for the resources below.
67
67
68
-
- Azure App Service: Basic Tier with 1 CPU core, 1.75 GB RAM. Pricing per hour. [Pricing](https://azure.microsoft.com/pricing/details/app-service/linux/)
69
-
- Azure Container Apps: Only provisioned if you deploy to Azure Container Apps following [the ACA deployment guide](docs/azure_container_apps.md). Consumption plan with 1 CPU core, 2.0 GB RAM. Pricing with Pay-as-You-Go. [Pricing](https://azure.microsoft.com/pricing/details/container-apps/)
68
+
- Azure Container Apps: Default host for app deployment as of 10/28/2024. See more details in [the ACA deployment guide](docs/azure_container_apps.md). Consumption plan with 1 CPU core, 2.0 GB RAM. Pricing with Pay-as-You-Go. [Pricing](https://azure.microsoft.com/pricing/details/container-apps/)
69
+
- Azure App Service: Only provisioned if you deploy to Azure App Service following [the App Service deployment guide](docs/azure_app_service.md). Basic Tier with 1 CPU core, 1.75 GB RAM. Pricing per hour. [Pricing](https://azure.microsoft.com/pricing/details/app-service/linux/)
70
70
- Azure OpenAI: Standard tier, GPT and Ada models. Pricing per 1K tokens used, and at least 1K tokens are used per question. [Pricing](https://azure.microsoft.com/pricing/details/cognitive-services/openai-service/)
71
71
- Azure AI Document Intelligence: SO (Standard) tier using pre-built layout. Pricing per document page, sample documents have 261 pages total. [Pricing](https://azure.microsoft.com/pricing/details/form-recognizer/)
72
72
- Azure AI Search: Basic tier, 1 replica, free level of semantic search. Pricing per hour. [Pricing](https://azure.microsoft.com/pricing/details/search/)
@@ -127,7 +127,7 @@ A related option is VS Code Dev Containers, which will open the project in your
127
127
128
128
## Deploying
129
129
130
-
The steps below will provision Azure resources and deploy the application code to Azure App Service. To deploy to Azure Container Apps instead, follow [the container apps deployment guide](docs/azure_container_apps.md).
130
+
The steps below will provision Azure resources and deploy the application code to Azure Container Apps. To deploy to Azure App Service instead, follow [the app service deployment guide](docs/azure_app_service.md).
131
131
132
132
1. Login to your Azure account:
133
133
@@ -136,6 +136,7 @@ The steps below will provision Azure resources and deploy the application code t
136
136
```
137
137
138
138
For GitHub Codespaces users, if the previous command fails, try:
139
+
139
140
```shell
140
141
azd auth login --use-device-code
141
142
```
@@ -157,7 +158,7 @@ It will look like the following:
157
158
158
159

159
160
160
-
> NOTE: It may take 5-10 minutes after you see 'SUCCESS'for the application to be fully deployed. If you see a "Python Developer" welcome screen or an error page, thenwait a bit and refresh the page. See [guide on debugging App Service deployments](docs/appservice.md).
161
+
> NOTE: It may take 5-10 minutes after you see 'SUCCESS'for the application to be fully deployed. If you see a "Python Developer" welcome screen or an error page, thenwait a bit and refresh the page.
161
162
162
163
### Deploying again
163
164
@@ -261,7 +262,7 @@ Here are the most common failure scenarios and solutions:
261
262
262
263
1. You see `CERTIFICATE_VERIFY_FAILED` when the `prepdocs.py` script runs. That's typically due to incorrect SSL certificates setup on your machine. Try the suggestions in this [StackOverflow answer](https://stackoverflow.com/questions/35569042/ssl-certificate-verify-failed-with-python3/43855394#43855394).
263
264
264
-
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, 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.
265
+
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.
Due to [a limitation](https://github.com/Azure/azure-dev/issues/2736) of the Azure Developer CLI (`azd`), there can be only one host option in the [azure.yaml](../azure.yaml) file.
4
+
By default, `host: containerapp` is used and `host: appservice` is commented out.
5
+
6
+
To deploy to Azure Container Apps, please follow the following steps:
7
+
8
+
1. Comment out `host: containerapp` and uncomment `host: appservice` in the [azure.yaml](../azure.yaml) file.
9
+
10
+
2. Login to your Azure account:
11
+
12
+
```bash
13
+
azd auth login
14
+
```
15
+
16
+
3. Create a new `azd` environment to store the deployment parameters:
17
+
18
+
```bash
19
+
azd env new
20
+
```
21
+
22
+
Enter a name that will be used for the resource group.
23
+
This will create a new folder in the `.azure` folder, and set it as the active environment for any calls to `azd` going forward.
24
+
25
+
4. Set the deployment target to `appservice`:
26
+
27
+
```bash
28
+
azd env set DEPLOYMENT_TARGET appservice
29
+
```
30
+
31
+
5. (Optional) This is the point where you can customize the deployment by setting other `azd` environment variables, in order to [use existing resources](docs/deploy_existing.md), [enable optional features (such as auth or vision)](docs/deploy_features.md), or [deploy to free tiers](docs/deploy_lowcost.md).
32
+
6. Provision the resources and deploy the code:
33
+
34
+
```bash
35
+
azd up
36
+
```
37
+
38
+
This will provision Azure resources and deploy this sample to those resources, including building the search index based on the files found in the `./data` folder.
39
+
40
+
**Important**: Beware that the resources created by this command will incur immediate costs, primarily from the AI Search resource. These resources may accrue costs even if you interrupt the command before it is fully executed. You can run `azd down` or delete the resources manually to avoid unnecessary spending.
Copy file name to clipboardExpand all lines: docs/azure_container_apps.md
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,9 @@
1
1
# Deploying on Azure Container Apps
2
2
3
3
Due to [a limitation](https://github.com/Azure/azure-dev/issues/2736) of the Azure Developer CLI (`azd`), there can be only one host option in the [azure.yaml](../azure.yaml) file.
4
-
By default, `host: appservice` is used and `host: containerapp` is commented out.
4
+
By default, `host: containerapp` is used and `host: appservice` is commented out.
5
+
6
+
However, if you have an older version of the repo, you may need to follow these steps to deploy to Container Apps instead, or you can stick with Azure App Service.
5
7
6
8
To deploy to Azure Container Apps, please follow the following steps:
7
9
@@ -52,4 +54,4 @@ Please note dedicated workload profiles have a different billing model than Cons
52
54
53
55
## Private endpoints
54
56
55
-
Private endpoints is still in private preview for Azure Conainer Apps and not supported for now.
57
+
Private endpoints is still in private preview for Azure Container Apps and not supported for now.
0 commit comments