Skip to content

Commit a5affbd

Browse files
authored
Merge pull request #101806 from zr-msft/ds-troubleshoot-cli-callout
[Dev Spaces] add troubleshooting callout
2 parents 095830e + 4399de7 commit a5affbd

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

articles/dev-spaces/troubleshooting.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,4 +468,13 @@ To enable Azure Dev Spaces on an AKS cluster for which the egress traffic from c
468468
| cloudflare.docker.com | HTTPS:443 | To pull linux alpine and other Azure Dev Spaces images |
469469
| gcr.io | HTTP:443 | To pull helm/tiller images|
470470
| storage.googleapis.com | HTTP:443 | To pull helm/tiller images|
471-
| azds-<guid>.<location>.azds.io | HTTPS:443 | To communicate with Azure Dev Spaces backend services for your controller. The exact FQDN can be found in the "dataplaneFqdn" in %USERPROFILE%\.azds\settings.json|
471+
| azds-<guid>.<location>.azds.io | HTTPS:443 | To communicate with Azure Dev Spaces backend services for your controller. The exact FQDN can be found in the "dataplaneFqdn" in %USERPROFILE%\.azds\settings.json|
472+
473+
### Error "Could not find the cluster \<cluster\> in subscription \<subscriptionId\>"
474+
475+
You may see this error if your kubeconfig file is targeting a different cluster or subscription than you are trying to use with the Azure Dev Spaces client side tooling. The Azure Dev Spaces client side tooling replicates the behavior of *kubectl*, which uses [one or more kubeconfig files](https://kubernetes.io/docs/tasks/access-application-cluster/configure-access-multiple-clusters/) to select and communicate with the cluster.
476+
477+
To fix this issue:
478+
479+
* 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`.

0 commit comments

Comments
 (0)