Azure / Azure/azure-cli-extensions

az aks use-dev-spaces is failing in Azure Shell

Open
#846 3 comments 0 reactions 0 assignees View on GitHub
extension/dev-spaces Service Attention
Dominant language
Python
Stars
454
Forks
1.7k
Avg merge
2d 19h
Merged PRs (30d)
64

Description

* Describe the bug*

When I run `az aks use-dev-spaces` in shell.azure.com, I get the following error:

```shell
tommy@Azure:~$ az aks use-dev-spaces -g sandbox-aks-19-eastus -n sandbox-aks-19-eastus
Azure Dev Spaces CLI (Preview) Setup

This script will install the following tools:

- .NET Core Runtime (if required)
- Azure Dev Spaces CLI (Preview)

Do you want to continue? (y/n) y

/usr/bin/apt-get
/tmp/tmp3hhmiuo8/azds-linux-setup.sh: line 113: sudo: command not found
[INFO] Failed to install dotnet core dependencies.
[INFO] You can manually install all required dependencies based on the following documentation:
[FATAL] https://github.com/dotnet/core/blob/master/release-notes/download-archives/2.0.7-download.md
Azure Dev Spaces CLI not installed properly. Visit 'https://aka.ms/get-azds' for Azure Dev Spaces.
```

**To Reproduce**
Run `az aks use-dev-spaces -g $RG -n $CLUSTER` in a new cluster in shell.azure.com

**Expected behavior**
I expect it to successfully install.

**Environment summary**
Azure Shell
```
tommy@Azure:~$ az --version
azure-cli (2.0.34)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.