Azure / azure-dev

A developer CLI that reduces the time it takes for you to get started on Azure. The Azure Developer CLI (azd) provides a set of developer-friendly commands that map to key stages in your workflow - code, build, deploy, monitor, repeat.
https://aka.ms/azd
MIT License
402 stars 195 forks source link

`azd` devcontainer feature should support all release versions #3368

Open wbreza opened 7 months ago

wbreza commented 7 months ago

When using the azd devcontainer feature we support latest but it doesn't appear that old versions are available.

devcontainer.json

{
    "name": "Azure Developer CLI",
    "image": "mcr.microsoft.com/devcontainers/javascript-node:18-bullseye",
    "features": {
        "ghcr.io/devcontainers/features/docker-in-docker:2": {
        },
        "ghcr.io/devcontainers/features/kubectl-helm-minikube:1": {
            "version": "latest",
            "helm": "latest",
            "minikube": "none"
        },
        "ghcr.io/azure/azure-dev/azd:latest": {}
    },
    "customizations": {
        "vscode": {
            "extensions": [
                "dbaeumer.vscode-eslint",
                "esbenp.prettier-vscode",
                "GitHub.vscode-github-actions",
                "ms-azuretools.azure-dev",
                "ms-azuretools.vscode-azurefunctions",
                "ms-azuretools.vscode-bicep",
                "ms-azuretools.vscode-docker",
                "ms-kubernetes-tools.vscode-aks-tools",
                "ms-kubernetes-tools.vscode-kubernetes-tools",
                "ms-vscode.js-debug",
                "ms-vscode.vscode-node-azure-pack"
            ]
        }
    },
    "forwardPorts": [3000, 3100],
    "postCreateCommand": "",
    "remoteUser": "node",
    "hostRequirements": {
        "memory": "8gb"
    }
}

Attempt replace azd:latest with azd:1.5.1.

According to all release tags we only suport latest and a couple really old pre-release versions

https://github.com/azure/azure-dev/pkgs/container/azure-dev%2Fazd/versions?filters%5Bversion_type%5D=tagged

rajeshkamal5050 commented 5 months ago

@hemarina Moving this to On-Deck