Skip to content

Commit 9747391

Browse files
authored
add azd (#341)
1 parent 82045cf commit 9747391

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

linux/powershell/PSCloudShellUtility/PSCloudShellUtility.psm1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1817,7 +1817,8 @@ function Get-PackageVersion() {
18171817
@{displayname = "Azure CLI"; command = "az"; args = "version "; match = "`"azure-cli`": `"(.+)`""},
18181818
@{displayname = "Kubectl"; command = "kubectl"; args = "version --client=true --short=true"; match = "Client Version: v(.+)"}
18191819
@{displayname = "Terraform"; command = "terraform"; args = "version"; match = "Terraform v(.+)"},
1820-
@{displayname = "GitHub CLI"; command = "gh"; args = "--version"; match = "gh version (.+) \(.*"}
1820+
@{displayname = "GitHub CLI"; command = "gh"; args = "--version"; match = "gh version (.+) \(.*"},
1821+
@{displayname = "Azure Developer CLI"; command = "azd"; args = "version"; match = "azd version (\d+\.\d+\.\d+(-[\w\d\.]*)?).*"}
18211822
)
18221823

18231824
foreach ($package in $packageVersionDetections) {

linux/tools.Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ RUN az aks install-cli \
2929
&& chmod +x /usr/local/bin/kubectl \
3030
&& chmod +x /usr/local/bin/kubelogin
3131

32+
# Install azure-developer-cli (azd)
33+
ENV AZD_IN_CLOUDSHELL 1
34+
ENV AZD_SKIP_UPDATE_CHECK 1
35+
RUN curl -fsSL https://aka.ms/install-azd.sh | bash
36+
3237
RUN mkdir -p /usr/cloudshell
3338
WORKDIR /usr/cloudshell
3439

tests/command_list

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ avcstat
9191
awk
9292
az
9393
azcopy
94+
azd
9495
b2sum
9596
badblocks
9697
base32

0 commit comments

Comments
 (0)