---
title: "Azure (AKS) - Updating a cluster"
description: "Change SKUs, node count, Kubernetes version, and the PodVM image on a running Verifiable Confidential Containers deployment on AKS."
source: "Verifiable Compute"
---
Once a cluster is provisioned with the [Azure (AKS)](/verifiable-confidential-containers/deployment/cloud/azure/) walkthrough, it can be changed by re-opening the same deploy link and selecting the update mode. The deployment process picks up the existing cluster and only modifies changed values.

## Open the template in update mode

1. Visit https://azure-vcoco.prod.eqtylab.io.
2. Select the same `subscription`, `resource group`, and `region` used to deploy.
3. Set `Deployment mode` to `Update an existing verifiable compute cluster` then click `Next`
4. Pick the previously deployed cluster from the dropdown then click `Next`.
5. All the deployment fields are prefilled with the existing values. Update fields that need to be changed, then click `Next` and deploy.

## Confirm the update

Pull fresh credentials and check the runtime class is still installed:

```bash
az aks get-credentials -g <rg> -n <cluster>
kubectl get runtimeclass
```

Then verify modified fields.

**Node count and node size.**

```bash
kubectl get nodes -o wide
kubectl get nodes -o jsonpath='{range .items[*]}{.metadata.name}{"\t"}{.metadata.labels.node\.kubernetes\.io/instance-type}{"\n"}{end}'
```

**Kubernetes version.** Check the `VERSION` column from `kubectl get nodes`. For the control plane:

```bash
kubectl version
```

**Confidential node size, pod disk size, scratch disk, and PodVM image.** Get the values in the `peer-pods-cm` ConfigMap which is read by the Cloud API Adaptor.
```bash
kubectl get cm peer-pods-cm -n confidential-containers-system -o yaml
```

Look for `AZURE_INSTANCE_SIZE` (confidential pod SKU), the root volume and scratch disk entries, and the Azure image ID. After a change, the adaptor should be restarted automatically. Confirm the new values were picked up:

```bash
kubectl rollout status ds/cloud-api-adaptor-daemonset -n confidential-containers-system
kubectl logs -n confidential-containers-system -l app=cloud-api-adaptor | grep -E "Size:|ImageId:"
```

To test that new pods use the new configuration, schedule a pod with the `kata-remote` runtime class and inspect the confidential VM it creates in the Azure Portal or with `az vm list -g <peer-pod-rg>`.

## Notes

- An update can take up to 30 minutes, the same as the initial deploy, depending on which fields changed.
- Existing peer pods keep the SKU, disk size, scratch setting, and PodVM image they were created with. New values only apply to peer pods scheduled after the update finishes. Redeploy workloads to pick up the new configuration.
- `Region`, `resource group`, and `cluster name` require a fresh deploy to change.
- Leaving the `PodVM download link` blank keeps the currently installed PodVM image. Provide a new URL only when updating the PodVM image.
- AKS allows moving a control plane forward one minor version at a time and does not support Kubernetes downgrades.