Skip to content

Commit a860b8d

Browse files
authored
Merge pull request #105673 from zr-msft/ds-refresh-credentials
[Dev Spaces] added refresh-credentials troubleshooting
2 parents 739545e + c698b47 commit a860b8d

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

articles/dev-spaces/troubleshooting.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,4 +477,15 @@ You may see this error if your kubeconfig file is targeting a different cluster
477477
To fix this issue:
478478

479479
* Use `az aks use-dev-spaces -g <resource group name> -n <cluster name>` to update the current context. This command also enables Azure Dev Spaces on your AKS cluster if is not already enabled. Alternatively, you can use `kubectl config use-context <cluster name>` to update the current context.
480-
* Use `az account show` to show the current Azure subscription you are targeting and verify this is correct. You can change the subscription you are targeting using `az account set`.
480+
* Use `az account show` to show the current Azure subscription you are targeting and verify this is correct. You can change the subscription you are targeting using `az account set`.
481+
482+
### Error using Dev Spaces after rotating AKS certificates
483+
484+
After [rotating the certificates in your AKS cluster](../aks/certificate-rotation.md), certain operations, such as `azds space list` and `azds up` will fail. You also need to refresh the certificates on your Azure Dev Spaces controller after rotating the certificates on your cluster.
485+
486+
To fix this issue, ensure your *kubeconfig* has the updated certificates using `az aks get-credentials` then run the `azds controller refresh-credentials` command. For example:
487+
488+
```azurecli
489+
az aks get-credentials -g <resource group name> -n <cluster name>
490+
azds controller refresh-credentials -g <resource group name> -n <cluster name>
491+
```

0 commit comments

Comments
 (0)