Skip to content

Commit 262f7fd

Browse files
authored
Merge pull request #6 from schaffererin/review-aks-bicep
Doc review for Bicep extensibility provider AKS quickstart
2 parents e0391c2 + bb6523b commit 262f7fd

File tree

1 file changed

+42
-43
lines changed

1 file changed

+42
-43
lines changed

articles/aks/learn/quick-kubernetes-deploy-bicep-extensibility-kubernetes-provider.md

Lines changed: 42 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,42 @@
11
---
2-
title: Quickstart - Deploy Azure applications to Azure Kubernetes Services by using Bicep extensibility Kubernetes provider
3-
description: Learn how to quickly create a Kubernetes cluster and deploy Azure applications in Azure Kubernetes Service (AKS) by using Bicep extensibility Kubernetes provider.
2+
title: Quickstart: Deploy Azure applications to Azure Kubernetes Service clusters using Bicep extensibility Kubernetes provider
3+
description: Learn how to quickly create a Kubernetes cluster and deploy Azure applications in Azure Kubernetes Service (AKS) using Bicep extensibility Kubernetes provider.
44
services: container-service
55
ms.topic: quickstart
66
ms.date: 02/03/2023
77
#Customer intent: As a developer or cluster operator, I want to quickly create an AKS cluster and deploy an application so that I can see how to run applications using the managed Kubernetes service in Azure.
88
---
99

10-
# Quickstart: Deploy Azure applications to Azure Kubernetes Service (AKS) cluster using Bicep extensibility Kubernetes provider (Preview)
10+
# Quickstart: Deploy Azure applications to Azure Kubernetes Service (AKS) clusters using Bicep extensibility Kubernetes provider (Preview)
1111

12-
Azure Kubernetes Service (AKS) is a managed Kubernetes service that lets you quickly deploy and manage clusters. In this quickstart, you'll deploy a sample multi-container application with a web front-end and a Redis instance to an AKS cluster. This quickstart assumes a basic understanding of Kubernetes concepts. For more information, see [Kubernetes core concepts for Azure Kubernetes Service (AKS)][kubernetes-concepts].
12+
Azure Kubernetes Service (AKS) is a managed Kubernetes service that lets you quickly deploy and manage clusters. In this quickstart, you'll deploy a sample multi-container application with a web front-end and a Redis instance to an AKS cluster.
1313

14-
[!INCLUDE [About Bicep](../../../includes/resource-manager-quickstart-bicep-introduction.md)]
14+
This quickstart assumes a basic understanding of Kubernetes concepts. For more information, see [Kubernetes core concepts for Azure Kubernetes Service (AKS)][kubernetes-concepts].
1515

16-
The Bicep Kubernetes provider is currently in preview. To enable the feature from the [Bicep configuration file](../../azure-resource-manager/bicep/bicep-config.md#enable-experimental-features).
16+
[!INCLUDE [About Bicep](../../../includes/resource-manager-quickstart-bicep-introduction.md)]
1717

18-
```json
19-
{
20-
"experimentalFeaturesEnabled": {
21-
"extensibility": true,
22-
}
23-
}
24-
```
18+
> [!IMPORTANT]
19+
> The Bicep Kubernetes provider is currently in preview. You can enable the feature from the [Bicep configuration file](../../azure-resource-manager/bicep/bicep-config.md#enable-experimental-features) by adding:
20+
>
21+
> ```json
22+
> {
23+
> "experimentalFeaturesEnabled": {
24+
> "extensibility": true,
25+
> }
26+
> }
27+
> ```
2528
2629
## Prerequisites
2730
2831
[!INCLUDE [quickstarts-free-trial-note](../../../includes/quickstarts-free-trial-note.md)]
2932
3033
* To set up your environment for Bicep development, see [Install Bicep tools](../../azure-resource-manager/bicep/install.md). After completing those steps, you'll have [Visual Studio Code](https://code.visualstudio.com/) and the [Bicep extension](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-bicep). You also have either the latest [Azure CLI](/cli/azure/) or the latest [Azure PowerShell module](/powershell/azure/new-azureps-module-az).
3134
32-
* To create an AKS cluster using a Bicep file, you provide an SSH public key. If you need this resource, see the following section; otherwise skip to the [Review the Bicep file](#review-the-bicep-file) section.
35+
* To create an AKS cluster using a Bicep file, you provide an SSH public key. If you need this resource, see [Create an SSH key pair](#create-an-ssh-key-pair). If not, skip to [Review the Bicep file](#review-the-bicep-file).
3336
34-
* The identity you're using to create your cluster has the appropriate minimum permissions. For more information on access and identity for AKS, see [Access and identity options for Azure Kubernetes Service (AKS)](../concepts-identity.md).
37+
* The identity you use to create your cluster has the appropriate minimum permissions. For more information on access and identity for AKS, see [Access and identity options for Azure Kubernetes Service (AKS)](../concepts-identity.md).
3538
36-
* To deploy a Bicep file, you need write access on the resources you're deploying and access to all operations on the Microsoft.Resources/deployments resource type. For example, to deploy a virtual machine, you need Microsoft.Compute/virtualMachines/write and Microsoft.Resources/deployments/* permissions. For a list of roles and permissions, see [Azure built-in roles](../../role-based-access-control/built-in-roles.md).
39+
* To deploy a Bicep file, you need write access on the resources you deploy and access to all operations on the `Microsoft.Resources/deployments` resource type. For example, to deploy a virtual machine, you need `Microsoft.Compute/virtualMachines/write and Microsoft.Resources/deployments/*` permissions. For a list of roles and permissions, see [Azure built-in roles](../../role-based-access-control/built-in-roles.md).
3740
3841
### Create an SSH key pair
3942
@@ -51,35 +54,31 @@ For more information about creating SSH keys, see [Create and manage SSH keys fo
5154
5255
## Review the Bicep file
5356
54-
The Bicep file used to create AKS cluster is from [Azure Quickstart Templates](https://azure.microsoft.com/resources/templates/aks/).
57+
The Bicep file used to create an AKS cluster is from [Azure Quickstart Templates](https://azure.microsoft.com/resources/templates/aks/). For more AKS samples, see the [AKS quickstart templates][aks-quickstart-templates] site.
5558
5659
:::code language="bicep" source="~/quickstart-templates/quickstarts/microsoft.kubernetes/aks/main.bicep":::
5760
58-
The resource defined in the Bicep file:
59-
60-
* [**Microsoft.ContainerService/managedClusters**](/azure/templates/microsoft.containerservice/managedclusters?tabs=bicep&pivots=deployment-language-bicep)
61-
62-
For more AKS samples, see the [AKS quickstart templates][aks-quickstart-templates] site.
61+
The resource defined in the Bicep file is [**Microsoft.ContainerService/managedClusters**](/azure/templates/microsoft.containerservice/managedclusters?tabs=bicep&pivots=deployment-language-bicep).
6362
64-
Save a copy of the file as **main.bicep** to your local computer.
63+
Save a copy of the file as `main.bicep` to your local computer.
6564
6665
## Add the application definition
6766
6867
A [Kubernetes manifest file][kubernetes-deployment] defines a cluster's desired state, such as which container images to run.
6968
70-
In this quickstart, you'll use a manifest to create all objects needed to run the [Azure Vote application][azure-vote-app]. This manifest includes two [Kubernetes deployments][kubernetes-deployment]:
69+
In this quickstart, you use a manifest to create all objects needed to run the [Azure Vote application][azure-vote-app]. This manifest includes two [Kubernetes deployments][kubernetes-deployment]:
7170
72-
* The sample Azure Vote Python applications.
73-
* A Redis instance.
71+
* The sample Azure Vote Python applications
72+
* A Redis instance
7473
7574
Two [Kubernetes Services][kubernetes-service] are also created:
7675
77-
* An internal service for the Redis instance.
78-
* An external service to access the Azure Vote application from the internet.
76+
* An internal service for the Redis instance
77+
* An external service to access the Azure Vote application from the internet
7978
8079
Use the following procedure to add the application definition:
8180
82-
1. Create a file named **azure-vote.yaml** in the same folder as **main.bicep** with the following YAML definition:
81+
1. Create a file named `azure-vote.yaml` in the same folder as `main.bicep` with the following YAML definition:
8382
8483
```yaml
8584
apiVersion: apps/v1
@@ -171,20 +170,20 @@ Use the following procedure to add the application definition:
171170
172171
For a breakdown of YAML manifest files, see [Deployments and YAML manifests](../concepts-clusters-workloads.md#deployments-and-yaml-manifests).
173172
174-
1. Open **main.bicep** in Visual Studio Code.
173+
1. Open `main.bicep` in Visual Studio Code.
175174
1. Press <kbd>Ctrl+Shift+P</kbd> to open **Command Palette**.
176-
1. Type **bicep**, and then select **Import kubernetes Manifest**.
175+
1. Search for **bicep**, and then select **Bicep: Import Kubernetes Manifest**.
177176
178177
:::image type="content" source="./media/quick-kubernetes-deploy-bicep-extensibility-kubernetes-provider/bicep-extensibility-kubernetes-provider-import-kubernetes-manifest.png" alt-text="Screenshot of Visual Studio Code import Kubernetes Manifest":::
179178
180-
1. Select **azure-vote.yml** from the prompt. This process creates an **azure-vote.bicep** in the same folder.
181-
1. Open **azure-vote.bicep**, add the following line at the end of the file to output the load balancer public IP.
179+
1. Select `azure-vote.yaml` from the prompt. This process creates an `azure-vote.bicep` file in the same folder.
180+
1. Open `azure-vote.bicep` and add the following line at the end of the file to output the load balancer public IP:
182181
183182
```bicep
184183
output frontendIp string = coreService_azureVoteFront.status.loadBalancer.ingress[0].ip
185184
```
186185
187-
1. Before the `output` statement in **main.bicep**, add the following Bicep to reference the newly created **azure-vote.bicep** module:
186+
1. Before the `output` statement in `main.bicep`, add the following Bicep to reference the newly created `azure-vote.bicep` module:
188187
189188
```bicep
190189
module kubernetes './azure-vote.bicep' = {
@@ -195,13 +194,13 @@ Use the following procedure to add the application definition:
195194
}
196195
```
197196
198-
1. At the end of **main.bicep**, add the following line to output the load balancer public IP:
197+
1. At the bottom of `main.bicep`, add the following line to output the load balancer public IP:
199198
200199
```bicep
201200
output lbPublicIp string = kubernetes.outputs.frontendIp
202201
```
203202
204-
1. Save both **main.bicep** and **azure-vote.bicep**.
203+
1. Save both `main.bicep` and `azure-vote.bicep`.
205204
206205
## Deploy the Bicep file
207206
@@ -232,7 +231,7 @@ Use the following procedure to add the application definition:
232231
233232
It takes a few minutes to create the AKS cluster. Wait for the cluster to be successfully deployed before you move on to the next step.
234233
235-
2. From the deployment output, look for the **outputs** section. For example:
234+
2. From the deployment output, look for the `outputs` section. For example:
236235
237236
```json
238237
"outputs": {
@@ -247,7 +246,7 @@ Use the following procedure to add the application definition:
247246
},
248247
```
249248
250-
Make a note of the value of lbPublicIp.
249+
3. Take note of the value of lbPublicIp.
251250
252251
## Validate the Bicep deployment
253252
@@ -259,15 +258,15 @@ To see the Azure Vote app in action, open a web browser to the external IP addre
259258
260259
### [Azure CLI](#tab/azure-cli)
261260
262-
To avoid Azure charges, if you don't plan on going through the tutorials that follow, clean up your unnecessary resources. Use the [az group delete][az-group-delete] command to remove the resource group, container service, and all related resources.
261+
To avoid Azure charges, if you don't plan on going through the tutorials that follow, clean up your unnecessary resources. Use the [`az group delete`][az-group-delete] command to remove the resource group, container service, and all related resources.
263262
264263
```azurecli-interactive
265264
az group delete --name myResourceGroup --yes --no-wait
266265
```
267266
268267
### [Azure PowerShell](#tab/azure-powershell)
269268

270-
To avoid Azure charges, if you don't plan on going through the tutorials that follow, clean up your unnecessary resources. Use the [Remove-AzResourceGroup][remove-azresourcegroup] cmdlet to remove the resource group, container service, and all related resources.
269+
To avoid Azure charges, if you don't plan on going through the tutorials that follow, clean up your unnecessary resources. Use the [`Remove-AzResourceGroup`][remove-azresourcegroup] cmdlet to remove the resource group, container service, and all related resources.
271270

272271
```azurepowershell-interactive
273272
Remove-AzResourceGroup -Name myResourceGroup
@@ -276,16 +275,16 @@ Remove-AzResourceGroup -Name myResourceGroup
276275
---
277276

278277
> [!NOTE]
279-
> In this quickstart, the AKS cluster was created with a system-assigned managed identity (the default identity option). This identity is managed by the platform and does not require removal.
278+
> In this quickstart, the AKS cluster was created with a system-assigned managed identity (the default identity option). This identity is managed by the platform and doesn't require removal.
280279
281280
## Next steps
282281

283282
In this quickstart, you deployed a Kubernetes cluster and then deployed a sample multi-container application to it.
284283

285-
To learn more about AKS, and walk through a complete code to deployment example, continue to the Kubernetes cluster tutorial.
284+
To learn more about AKS, and walk through a complete code to deployment example, continue to the Kubernetes cluster tutorial:
286285

287286
> [!div class="nextstepaction"]
288-
> [AKS tutorial][aks-tutorial]
287+
> [Kubernetes on Azure tutorial: Prepare an application][aks-tutorial]
289288
290289
<!-- LINKS - external -->
291290
[azure-vote-app]: https://github.com/Azure-Samples/azure-voting-app-redis.git

0 commit comments

Comments
 (0)