Skip to content

Commit fcb5b77

Browse files
authored
update the deployment process
1 parent 6c1e688 commit fcb5b77

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

doc/how-to-deploy.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,21 @@ After a few seconds, you should now be in your version of the AzUrlShortener pro
2727

2828
## Deploying to Azure
2929

30+
1. Make sure Docker (or Podman) is currently started. It will be used to package the Apps into containers before being
3031
1. In a terminal, navigate to the `src` directory of your project.
3132

3233
```bash
3334
cd src
3435
```
36+
1. Let's initialize your environment with the following command:
37+
38+
```bash
39+
azd init
40+
```
41+
42+
- You will be asked "How do you want to initialize your app?" Select **Use code in the current directory**.
43+
- azd will says it will generates files for using "Azure Container Apps". Select **Confirm and continue initializing my app**
44+
- Give a name to your environment (ex: azUrlShortener-prod). This will be used as Azure resource group name.
3545
1. If you haven't already, log in to your Azure account with `azd auth login`.
3646
1. To avoid affecting custom domains when deploying Azure Container Apps use the following command. This mostly useful if you are re-deploying, or updating an existing application. If you don't have any custom domain assign to the Azure Container Apps, you can still execute the command, but it's optional.
3747

0 commit comments

Comments
 (0)