|
1 | 1 | # Deploying on Azure Container Apps
|
2 | 2 |
|
3 |
| -Due to [a limitation](https://github.com/Azure/azure-dev/issues/2736) of azd, the azure.yaml file for deploying to Azure Container Apps lives in folder `aca-host` along with symbolic links to `app`,`data` and `scripts` folder. |
4 |
| - |
5 |
| -## For Linux/MacOS users |
6 |
| - |
7 |
| -If you are on Linux/MacOS, it should work without any extra settings to deploy on Azure Container Apps. Please use: |
| 3 | +Due to [a limitation](https://github.com/Azure/azure-dev/issues/2736) of azd, the azure.yaml file for deploying to Azure Container Apps lives here. |
| 4 | +To deploy to azure container apps, please run from project root folder: |
8 | 5 |
|
9 | 6 | ```bash
|
10 |
| -cd aca-host |
| 7 | +cd containerapps |
| 8 | +azd env new |
| 9 | +azd env set DEPLOYMENT_TARGET containerapps |
11 | 10 | azd up
|
12 | 11 | ```
|
13 | 12 |
|
14 |
| -## For Windows users |
| 13 | +## Customizing Workload Profile |
15 | 14 |
|
16 |
| -Because Windows [doesn't enable symbolic links by default](https://stackoverflow.com/questions/5917249/git-symbolic-links-in-windows), you may need to enable [Developer Mode](https://learn.microsoft.com/windows/apps/get-started/enable-your-device-for-development) and symlinks for git before cloning this repo. |
17 |
| -To enable symlinks for git, please use |
| 15 | +The default workload profile is Consumption. If you want to use a dedicated workload profile like D4, please run: |
18 | 16 |
|
19 | 17 | ```bash
|
20 |
| -# local setting |
21 |
| -git config core.symlinks true |
22 |
| -# Alternatively, enable symlinks globally |
23 |
| -git config --global core.symlinks true |
| 18 | +azd env AZURE_CONTAINER_APPS_WORKLOAD_PROFILE D4 |
24 | 19 | ```
|
25 | 20 |
|
26 |
| -Please check whether the symlink works correctly and then run: |
27 |
| - |
28 |
| -```bash |
29 |
| -cd aca-host |
30 |
| -azd up |
31 |
| -``` |
| 21 | +For a full list of workload profiles, please check [here](https://learn.microsoft.com/azure/container-apps/workload-profiles-overview#profile-types). |
| 22 | +Please note dedicated workload profiles have a different billing model than Consumption plan. Please check [here](https://learn.microsoft.com/azure/container-apps/billing) for details. |
0 commit comments