diff --git a/updatecli/updatecli.d/az-ubuntu-22-04-amd64-images.yml b/updatecli/updatecli.d/az-ubuntu-22-04-amd64-images.yml index a0e74eac6..a01c4f900 100644 --- a/updatecli/updatecli.d/az-ubuntu-22-04-amd64-images.yml +++ b/updatecli/updatecli.d/az-ubuntu-22-04-amd64-images.yml @@ -18,7 +18,7 @@ sources: kind: shell name: Get the latest `ubuntu 22.04` amd64 image version from Azure spec: - command: az login --service-principal -u $AZURE_CLIENT_ID -p $AZURE_CLIENT_SECRET --tenant $AZURE_TENANT_ID > /dev/null && az vm image list --location eastus --publisher Canonical --offer 0001-com-ubuntu-server-jammy --sku 22.04-AMD64 --all --query "[?sku=='22.04-AMD64'].version" -o tsv | sort -u | tail -n 1 + command: az login --service-principal -u $AZURE_CLIENT_ID -p $AZURE_CLIENT_SECRET --tenant $AZURE_TENANT_ID > /dev/null && az vm image list --location eastus --publisher Canonical --offer 0001-com-ubuntu-server-jammy --sku 22_04-AMD64-lts-gen2 --all --query "[?offer=='0001-com-ubuntu-server-jammy'].version" -o tsv | sort -u | tail -n 1 environments: - name: PATH - name: AZURE_CLIENT_ID