Skip to content

Commit 63a0da5

Browse files
Instructions to choose terraform or bicep.
1 parent 0e1627e commit 63a0da5

File tree

2 files changed

+26
-6
lines changed

2 files changed

+26
-6
lines changed

articles/aks/includes/azd/azd-login-ts.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,13 @@ ms.date: 02/21/2024
99
1010
The workaround requires the Azure CLI for authentication. If you don't have it or aren't using GitHub Codespaces, install the [Azure CLI][install-azure-cli].
1111

12-
1. Inside a terminal, run `az login --scope https://graph.microsoft.com/.default`
13-
2. Copy the "localhost" URL from the failed redirect
14-
3. In a new terminal window, type `curl` and paste your url
15-
4. If it works, code for a webpage saying "You have logged into Microsoft Azure!" appears
12+
1. Inside a terminal, login with Azure CLI
13+
```azurecli-interactive
14+
az login --scope https://graph.microsoft.com/.default
15+
```
16+
1. Copy the "localhost" URL from the failed redirect
17+
1. In a new terminal window, type `curl` and paste your url
18+
1. If it works, code for a webpage saying "You have logged into Microsoft Azure!" appears
1619
1720
```html
1821
<!DOCTYPE html>

articles/aks/tutorial-kubernetes-prepare-app.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@ The [sample application][sample-application] used in this tutorial is a basic st
6464

6565
### [Azure Developer CLI](#tab/azure-azd)
6666

67-
1. Create an empty directory named `aks-store-demo` to host the azd template files.
67+
1. If you are using AZD locally, create an empty directory named `aks-store-demo` to host the azd template files.
6868

6969
```azurecli
7070
mkdir aks-store-demo
7171
```
7272

73-
1. Change into the new directory.
73+
1. Change into the new directory to load all the files from the azd template.
7474

7575
```azurecli
7676
cd aks-store-demo
@@ -244,6 +244,23 @@ Since you validated the application's functionality, you can stop and remove the
244244

245245
When you use AZD, there are no manual container image dependencies. AZD handles the provisioning, deployment, and cleans up of your applications and clusters with the `azd up` and `azd down` commands, similar to Docker.
246246

247+
You can customize the preparation steps to use either Terraform or Bicep before deploying the cluster.
248+
249+
1. This is selected within your `azure.yaml` infra section. By default, this project uses terraform.
250+
251+
```yml
252+
infra:
253+
provider: terraform
254+
path: infra/terraform
255+
256+
2. To select Bicep change the provider and path from terraform to bicep
257+
258+
```yml
259+
infra:
260+
provider: bicep
261+
path: infra/bicep
262+
```
263+
247264
---
248265
## Next steps
249266

0 commit comments

Comments
 (0)