Skip to content

Commit 13021cb

Browse files
committed
More steps for deployment guide
1 parent 56025eb commit 13021cb

File tree

2 files changed

+31
-13
lines changed

2 files changed

+31
-13
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Pricing varies per region and usage, so it isn't possible to predict exact costs
6666
However, you can try the [Azure pricing calculator](https://azure.com/e/a87a169b256e43c089015fda8182ca87) for the resources below.
6767

6868
- 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 instructions [here](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 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/)
7070
- 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/)
7171
- 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/)
7272
- Azure AI Search: Basic tier, 1 replica, free level of semantic search. Pricing per hour. [Pricing](https://azure.microsoft.com/pricing/details/search/)
@@ -135,9 +135,9 @@ The steps below will provision Azure resources and deploy the application code t
135135
azd auth login
136136
```
137137

138-
For GitHub Codespaces users, if the previous command fails, try:
138+
For GitHub Codespaces users, if the previous command fails, try:
139139
```shell
140-
azd auth login --use-device-code
140+
azd auth login --use-device-code
141141
```
142142

143143
1. Create a new azd environment:

docs/azure_container_apps.md

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,37 @@ To deploy to Azure Container Apps, please follow the following steps:
77

88
1. Comment out `host: appservice` and uncomment `host: containerapp` in the [azure.yaml](../azure.yaml) file.
99

10-
1. Run
10+
2. Login to your Azure account:
1111

12-
```bash
13-
# Login to your azure account
14-
azd auth login
12+
```bash
13+
azd auth login
14+
```
1515

16-
# Create a new env
17-
azd env new
18-
# Set deployment target to containerapps
19-
azd env set DEPLOYMENT_TARGET containerapps
16+
3. Create a new `azd` environment to store the deployment parameters:
2017

21-
azd up
22-
```
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 `containerapps`:
26+
27+
```bash
28+
azd env set DEPLOYMENT_TARGET containerapps
29+
```
30+
31+
5. (Optional) This is the point where you can customize the deployment by setting other `azd1 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.
2341

2442
## Customizing Workload Profile
2543

0 commit comments

Comments
 (0)