Skip to content

Commit 7acdbac

Browse files
committed
📖 update Azure quick start for CAPZ v1.16
1 parent 075517f commit 7acdbac

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

docs/book/src/user/quick-start.md

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -470,15 +470,9 @@ export AZURE_SUBSCRIPTION_ID="<SubscriptionId>"
470470
471471
# Create an Azure Service Principal and paste the output here
472472
export AZURE_TENANT_ID="<Tenant>"
473-
export AZURE_CLIENT_ID="<AppId>"
473+
export AZURE_CLIENT_ID_USER_ASSIGNED_IDENTITY="<AppId>"
474474
export AZURE_CLIENT_SECRET="<Password>"
475475
476-
# Base64 encode the variables
477-
export AZURE_SUBSCRIPTION_ID_B64="$(echo -n "$AZURE_SUBSCRIPTION_ID" | base64 | tr -d '\n')"
478-
export AZURE_TENANT_ID_B64="$(echo -n "$AZURE_TENANT_ID" | base64 | tr -d '\n')"
479-
export AZURE_CLIENT_ID_B64="$(echo -n "$AZURE_CLIENT_ID" | base64 | tr -d '\n')"
480-
export AZURE_CLIENT_SECRET_B64="$(echo -n "$AZURE_CLIENT_SECRET" | base64 | tr -d '\n')"
481-
482476
# Settings needed for AzureClusterIdentity used by the AzureCluster
483477
export AZURE_CLUSTER_IDENTITY_SECRET_NAME="cluster-identity-secret"
484478
export CLUSTER_IDENTITY_NAME="cluster-identity"
@@ -1351,7 +1345,7 @@ For more information about prerequisites, credentials management, or permissions
13511345
13521346
For the purpose of this tutorial, we'll name our cluster capi-quickstart.
13531347
1354-
{{#tabs name:"tab-clusterctl-config-cluster" tabs:"Docker, vcluster, KubeVirt, Other providers..."}}
1348+
{{#tabs name:"tab-clusterctl-config-cluster" tabs:"Docker, vcluster, KubeVirt, Azure, Other providers..."}}
13551349
{{#tab Docker}}
13561350
13571351
<aside class="note warning">
@@ -1402,6 +1396,22 @@ clusterctl generate cluster capi-quickstart \
14021396
> capi-quickstart.yaml
14031397
```
14041398
1399+
{{#/tab }}
1400+
{{#tab Azure}}
1401+
1402+
```bash
1403+
clusterctl generate cluster capi-quickstart \
1404+
--infrastructure azure \
1405+
--kubernetes-version v1.30.0 \
1406+
--control-plane-machine-count=3 \
1407+
--worker-machine-count=3 \
1408+
> capi-quickstart.yaml
1409+
1410+
# Cluster templates authenticate with Workload Identity by default. Modify the AzureClusterIdentity for ServicePrincipal authentication.
1411+
# See https://capz.sigs.k8s.io/topics/identities for more details.
1412+
yq -i "with(. | select(.kind == \"AzureClusterIdentity\"); .spec.type |= \"ServicePrincipal\" | .spec.clientSecret.name |= \"${AZURE_CLUSTER_IDENTITY_SECRET_NAME}\" | .spec.clientSecret.namespace |= \"${AZURE_CLUSTER_IDENTITY_SECRET_NAMESPACE}\")" capi-quickstart.yaml
1413+
```
1414+
14051415
{{#/tab }}
14061416
{{#tab Other providers...}}
14071417

0 commit comments

Comments
 (0)