Giter Site home page Giter Site logo

circleci-public / azure-cli-orb Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 13.0 55 KB

CircleCI orb to install and configure the Azure CLI

Home Page: https://circleci.com/orbs/registry/orb/circleci/azure-cli

License: MIT License

azure azure-cli circleci circleci-orbs

azure-cli-orb's People

Contributors

ericribeiro avatar ganezasan avatar iynere avatar jaryt avatar lokst avatar mislavcimpersak avatar ronnytite avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

azure-cli-orb's Issues

Failure while install - Repository 'http://security.debian.org' changed its 'Suite' value from 'stable' to 'oldstable'

Orb version

What happened

Orb version : [email protected]

While using install, i encountered this issue

#!/bin/bash -eo pipefail
# Verify the CLI isn't already installed
# Use which instead of command -v for wider coverage of envs

if which az > /dev/null; then
  echo "Azure CLI installed already."
  exit 0
fi

# Set sudo to work whether logged in as root user or non-root user

if [[ $EUID == 0 ]]; then export SUDO=""; else export SUDO="sudo"; fi

$SUDO apt-get update && $SUDO apt-get -qqy install apt-transport-https

if [[ $(command -v lsb_release) == "" ]]; then
  echo "Installing lsb_release"
  $SUDO apt-get -qqy install lsb-release
fi

# Create an environment variable for the correct distribution
export AZ_REPO=$(lsb_release -cs)

# Modify your sources list

echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $AZ_REPO main" | \
  $SUDO tee /etc/apt/sources.list.d/azure-cli.list

if [[ $(command -v curl) == "" ]]; then
  echo "Installing curl"
  $SUDO apt-get -qqy install curl
fi

# Get the Microsoft signing key

curl -L https://packages.microsoft.com/keys/microsoft.asc | $SUDO apt-key add -

# Update and install the Azure CLI

$SUDO apt-get update
$SUDO apt-get -qqy install \
  ca-certificates \
  azure-cli
echo "Azure CLI is now installed."

Get:1 http://deb.debian.org/debian buster InRelease [122 kB]
Get:2 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB]
Get:3 http://deb.debian.org/debian buster-updates InRelease [51.9 kB]
Reading package lists... Done      
E: Repository 'http://security.debian.org/debian-security buster/updates InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
N: Repository 'http://deb.debian.org/debian buster InRelease' changed its 'Version' value from '10.6' to '10.10'
E: Repository 'http://deb.debian.org/debian buster InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
E: Repository 'http://deb.debian.org/debian buster-updates InRelease' changed its 'Suite' value from 'stable-updates' to 'oldstable-updates'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
Installing lsb_release
E: Failed to fetch http://deb.debian.org/debian/pool/main/p/python3.7/libpython3.7-minimal_3.7.3-2+deb10u2_amd64.deb  404  Not Found [IP: 151.101.250.132 80]
E: Failed to fetch http://deb.debian.org/debian/pool/main/p/python3.7/python3.7-minimal_3.7.3-2+deb10u2_amd64.deb  404  Not Found [IP: 151.101.250.132 80]
E: Failed to fetch http://deb.debian.org/debian/pool/main/p/python3.7/libpython3.7-stdlib_3.7.3-2+deb10u2_amd64.deb  404  Not Found [IP: 151.101.250.132 80]
E: Failed to fetch http://deb.debian.org/debian/pool/main/p/python3.7/python3.7_3.7.3-2+deb10u2_amd64.deb  404  Not Found [IP: 151.101.250.132 80]
E: Failed to fetch http://deb.debian.org/debian/pool/main/d/distro-info-data/distro-info-data_0.41+deb10u2_all.deb  404  Not Found [IP: 151.101.250.132 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Exited with code exit status 100
CircleCI received exit code 100

Expected behavior

Installation success !

Provide way to specify version for azure-docker executor

My team just ran into an issue where the latest version of the azure-cli image changed from being ubuntu-based to alpine-linux based, breaking our CI which relied on having curl and other utilities installed. We replaced our usage of azure-cli/azure-docker as the executor with manually specifying the previous version of a docker image.

It would be nice if there was a parameter that could be used to specify the version when using azure-docker, or a way to specify the arch of the image.

The azure executor should use a fixed tag instead of latest

Orb version

1.1.0

What happened

This morning we have CircleCI failing because it cannot download the latest tag of the executor on some private jobs of us

圖片

For now we repaced your executor by the specific tag for the latest version of the image and it works

圖片

Expected behavior

I'm not really sure if this issue is a bug or an enhancement, first of all it shouldn't fail on CircleCI, but then, the orb may stop working (like it did for us) when the reference image changes, since it's a moving target.

Can't install azure-cli: GPG Error

Orb version

0.2.0

What happened

While using build-and-push-image from circle-ci/azure-acr Orbs (version 0.2.0). I faced this issue

# Verify the CLI isn't already installed
# Use which instead of command -v for wider coverage of envs

if which az > /dev/null; then
  echo "Azure CLI installed already."
  exit 0
fi

# Set sudo to work whether logged in as root user or non-root user

if [[ $EUID == 0 ]]; then export SUDO=""; else export SUDO="sudo"; fi

$SUDO apt-get update && $SUDO apt-get -qqy install apt-transport-https

if [[ $(command -v lsb_release) == "" ]]; then
  echo "Installing lsb_release"
  $SUDO apt-get -qqy install lsb-release
fi

# Create an environment variable for the correct distribution
export AZ_REPO=$(lsb_release -cs)

# Modify your sources list

echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $AZ_REPO main" | \
  $SUDO tee /etc/apt/sources.list.d/azure-cli.list

if [[ $(command -v curl) == "" ]]; then
  echo "Installing curl"
  $SUDO apt-get -qqy install curl
fi

# Get the Microsoft signing key

curl -L https://packages.microsoft.com/keys/microsoft.asc | $SUDO apt-key add -

# Update and install the Azure CLI

$SUDO apt-get update
$SUDO apt-get -qqy install \
  ca-certificates \
  azure-cli
echo "Azure CLI is now installed."

Get:1 http://dl.google.com/linux/chrome/deb stable InRelease [1,811 B]
Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]     
Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease                   
Get:3 http://dl.google.com/linux/chrome/deb stable/main amd64 Packages [1,096 B]
Get:4 http://ppa.launchpad.net/git-core/ppa/ubuntu xenial InRelease [23.8 kB]  
Get:5 http://archive.canonical.com/ubuntu xenial InRelease [11.5 kB]           
Get:6 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB]               
Get:7 http://security.ubuntu.com/ubuntu xenial-security/main Sources [252 kB]  
Get:8 http://security.ubuntu.com/ubuntu xenial-security/restricted Sources [2,976 B]
Get:9 http://security.ubuntu.com/ubuntu xenial-security/universe Sources [211 kB]
Get:10 http://security.ubuntu.com/ubuntu xenial-security/multiverse Sources [4,636 B]
Get:11 https://cli-assets.heroku.com/apt ./ InRelease [2,879 B]                
Get:12 https://download.docker.com/linux/ubuntu xenial InRelease [66.2 kB]     
Get:13 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [1,648 kB]
Get:14 http://ppa.launchpad.net/openjdk-r/ppa/ubuntu xenial InRelease [23.8 kB]
Get:15 http://archive.canonical.com/ubuntu xenial/partner amd64 Packages [2,696 B]
Get:16 http://security.ubuntu.com/ubuntu xenial-security/main Translation-en [380 kB]
Get:17 http://security.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages [9,824 B]
Get:18 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [785 kB]
Get:19 http://archive.canonical.com/ubuntu xenial/partner Translation-en [1,556 B]
Get:20 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]      
Get:21 http://security.ubuntu.com/ubuntu xenial-security/universe Translation-en [225 kB]
Get:22 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [7,864 B]
Get:23 http://security.ubuntu.com/ubuntu xenial-security/multiverse Translation-en [2,672 B]
Err:11 https://cli-assets.heroku.com/apt ./ InRelease                          
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6DB5542C356545CF
Get:24 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]    
Get:25 http://ppa.launchpad.net/git-core/ppa/ubuntu xenial/main amd64 Packages [3,336 B]
Get:26 https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages [21.0 kB]
Get:27 http://archive.ubuntu.com/ubuntu xenial/main Sources [868 kB]           
Get:28 http://ppa.launchpad.net/openjdk-r/ppa/ubuntu xenial/main amd64 Packages [16.4 kB]
Get:29 http://archive.ubuntu.com/ubuntu xenial/restricted Sources [4,808 B]    
Get:30 http://archive.ubuntu.com/ubuntu xenial/universe Sources [7,728 kB]     
Get:31 http://ppa.launchpad.net/openjdk-r/ppa/ubuntu xenial/main Translation-en [2,700 B]
Get:32 http://archive.ubuntu.com/ubuntu xenial/multiverse Sources [179 kB]     
Get:33 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages [1,201 kB]
Get:34 http://archive.ubuntu.com/ubuntu xenial/main Translation-en [568 kB]
Get:35 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages [8,344 B]
Get:36 http://archive.ubuntu.com/ubuntu xenial/restricted Translation-en [2,908 B]
Get:37 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [7,532 kB]
Get:38 http://archive.ubuntu.com/ubuntu xenial/universe Translation-en [4,354 kB]
Get:39 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages [144 kB]
Get:40 http://archive.ubuntu.com/ubuntu xenial/multiverse Translation-en [106 kB]
Get:41 http://archive.ubuntu.com/ubuntu xenial-updates/main Sources [537 kB]
Get:42 http://archive.ubuntu.com/ubuntu xenial-updates/restricted Sources [3,608 B]
Get:43 http://archive.ubuntu.com/ubuntu xenial-updates/universe Sources [444 kB]
Get:44 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse Sources [12.3 kB]
Get:45 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [2,049 kB]
Get:46 http://archive.ubuntu.com/ubuntu xenial-updates/main Translation-en [482 kB]
Get:47 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages [10.2 kB]
Get:48 http://archive.ubuntu.com/ubuntu xenial-updates/restricted Translation-en [2,272 B]
Get:49 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [1,219 kB]
Get:50 http://archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [358 kB]
Get:51 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [22.6 kB]
Get:52 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse Translation-en [8,476 B]
Get:53 http://archive.ubuntu.com/ubuntu xenial-backports/main Sources [6,720 B]
Get:54 http://archive.ubuntu.com/ubuntu xenial-backports/universe Sources [11.0 kB]
Get:55 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [9,812 B]
Get:56 http://archive.ubuntu.com/ubuntu xenial-backports/main Translation-en [4,456 B]
Get:57 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [11.3 kB]
Get:58 http://archive.ubuntu.com/ubuntu xenial-backports/universe Translation-en [4,476 B]
Fetched 32.2 MB in 6s (4,655 kB/s)                                             
Reading package lists... Done
W: GPG error: http://dl.google.com/linux/chrome/deb stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 78BD65473CB3BD13
W: The repository 'http://dl.google.com/linux/chrome/deb stable InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://cli-assets.heroku.com/apt ./ InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6DB5542C356545CF
W: Failed to fetch https://cli-assets.heroku.com/apt/./InRelease  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6DB5542C356545CF
W: Some index files failed to download. They have been ignored, or old ones used instead.
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
(Reading database ... 136910 files and directories currently installed.)
Preparing to unpack .../apt-transport-https_1.2.35_amd64.deb ...
Unpacking apt-transport-https (1.2.35) over (1.2.31) ...
Setting up apt-transport-https (1.2.35) ...
W: --force-yes is deprecated, use one of the options starting with --allow instead.
deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ xenial main
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   983  100   983    0     0    186      0  0:00:05  0:00:05 --:--:--   206
OK
Get:1 http://dl.google.com/linux/chrome/deb stable InRelease [1,811 B]
Hit:2 http://security.ubuntu.com/ubuntu xenial-security InRelease              
Hit:3 http://archive.canonical.com/ubuntu xenial InRelease                     
Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease                   
Hit:4 http://archive.ubuntu.com/ubuntu xenial InRelease                        
Hit:5 http://ppa.launchpad.net/git-core/ppa/ubuntu xenial InRelease     
Hit:6 https://download.docker.com/linux/ubuntu xenial InRelease                
Get:7 https://cli-assets.heroku.com/apt ./ InRelease [2,879 B]                 
Hit:8 http://archive.ubuntu.com/ubuntu xenial-updates InRelease                
Hit:9 http://archive.ubuntu.com/ubuntu xenial-backports InRelease              
Hit:10 http://ppa.launchpad.net/openjdk-r/ppa/ubuntu xenial InRelease   
Err:7 https://cli-assets.heroku.com/apt ./ InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6DB5542C356545CF
Get:11 https://packages.microsoft.com/repos/azure-cli xenial InRelease [3,965 B]
Get:12 https://packages.microsoft.com/repos/azure-cli xenial/main amd64 Packages [15.5 kB]
Fetched 24.1 kB in 31s (758 B/s)      
Reading package lists... Done
W: GPG error: http://dl.google.com/linux/chrome/deb stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 78BD65473CB3BD13
W: The repository 'http://dl.google.com/linux/chrome/deb stable InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://cli-assets.heroku.com/apt ./ InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6DB5542C356545CF
W: Failed to fetch https://cli-assets.heroku.com/apt/./InRelease  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6DB5542C356545CF
W: Some index files failed to download. They have been ignored, or old ones used instead.

That seems relevant to post here as it happens while trying to install azure-cli

Expected behavior

It should install azure-cli

Can't install azure-cli

Orb version

1.2.2

What happened

Update and install the Azure CLI failed.

View the CircleCI config below from the Usage Examples:

version: '2.1'
orbs:
  azure-cli: circleci/[email protected]
jobs:
  verify-install:
    executor: azure-cli/default
    steps:
      - azure-cli/install
      - run:
          command: az -v
          name: Verify Azure CLI is installed
workflows:
  example-workflow:
    jobs:
      - verify-install

See logs below:

#!/bin/bash -eo pipefail
# Verify the CLI isn't already installed
# Use which instead of command -v for wider coverage of envs

if which az > /dev/null; then
  echo "Azure CLI installed already."
  exit 0
fi

# Set sudo to work whether logged in as root user or non-root user

if [[ $EUID == 0 ]]; then export SUDO=""; else export SUDO="sudo"; fi

# https://github.com/CircleCI-Public/azure-cli-orb/issues/15
# https://manpages.debian.org/unstable/apt/apt-get.8.en.html
$SUDO apt-get --allow-releaseinfo-change-suite update && $SUDO apt-get -qqy install apt-transport-https

if [[ $(command -v lsb_release) == "" ]]; then
  echo "Installing lsb_release"
  $SUDO apt-get -qqy install lsb-release
fi

# Create an environment variable for the correct distribution
export AZ_REPO=$(lsb_release -cs)

# Modify your sources list

echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $AZ_REPO main" | \
  $SUDO tee /etc/apt/sources.list.d/azure-cli.list

if [[ $(command -v curl) == "" ]]; then
  echo "Installing curl"
  $SUDO apt-get -qqy install curl
fi

# Get the Microsoft signing key

curl -L https://packages.microsoft.com/keys/microsoft.asc | $SUDO apt-key add -

# Update and install the Azure CLI

# https://github.com/CircleCI-Public/azure-cli-orb/issues/15
# https://manpages.debian.org/unstable/apt/apt-get.8.en.html
$SUDO apt-get --allow-releaseinfo-change-suite update
$SUDO apt-get -qqy install \
  ca-certificates \
  azure-cli
echo "Azure CLI is now installed."

E: Command line option --allow-releaseinfo-change-suite is not understood in combination with the other options
Installing lsb_release
E: Failed to fetch http://deb.debian.org/debian/pool/main/d/distro-info-data/distro-info-data_0.36_all.deb  404  Not Found
E: Failed to fetch http://deb.debian.org/debian/pool/main/l/lsb/lsb-release_9.20161125_all.deb  404  Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Exited with code exit status 100

CircleCI received exit code 100

Expected behavior

It should install azure-cli

Azure CLI install takes longer due to package verification issues, and breaks pipeline with no STDOUT after 10 minutes of inactivity.

Orb version

1.2.0 - 1.22

What happened

Hit:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates InRelease   
Hit:3 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-backports InRelease 
Hit:4 https://dl.google.com/linux/chrome/deb stable InRelease                  
Get:5 https://cli-assets.heroku.com/apt ./ InRelease [2,550 B]                 
Hit:6 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:7 http://ppa.launchpad.net/git-core/ppa/ubuntu focal InRelease
Err:5 https://cli-assets.heroku.com/apt ./ InRelease 
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 536F8F1DE80F6A35
Hit:8 http://ppa.launchpad.net/openjdk-r/ppa/ubuntu focal InRelease
Fetched 2,550 B in 0s (5,380 B/s)
Reading package lists... Done
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://cli-assets.heroku.com/apt ./ InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 536F8F1DE80F6A35
W: Failed to fetch https://cli-assets.heroku.com/apt/./InRelease  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 536F8F1DE80F6A35
W: Some index files failed to download. They have been ignored, or old ones used instead.
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
(Reading database ... 142622 files and directories currently installed.)
Preparing to unpack .../apt-transport-https_2.0.9_all.deb ...
Unpacking apt-transport-https (2.0.9) over (2.0.6) ...
Setting up apt-transport-https (2.0.9) ...
deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ focal main
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   983  100   983    0     0   2960      0 --:--:-- --:--:-- --:--:--  2960
OK
Hit:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates InRelease   
Hit:3 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-backports InRelease 
Hit:4 https://dl.google.com/linux/chrome/deb stable InRelease                  
Get:5 https://cli-assets.heroku.com/apt ./ InRelease [2,550 B]                 
Hit:6 http://security.ubuntu.com/ubuntu focal-security InRelease               
Hit:7 http://ppa.launchpad.net/git-core/ppa/ubuntu focal InRelease             
Hit:8 http://ppa.launchpad.net/openjdk-r/ppa/ubuntu focal InRelease            
Err:5 https://cli-assets.heroku.com/apt ./ InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 536F8F1DE80F6A35
Get:9 https://packages.microsoft.com/repos/azure-cli focal InRelease [10.4 kB]
Get:10 https://packages.microsoft.com/repos/azure-cli focal/main amd64 Packages [9,141 B]
Fetched 22.1 kB in 1s (34.1 kB/s)    
Reading package lists... Done
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://cli-assets.heroku.com/apt ./ InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 536F8F1DE80F6A35
W: Failed to fetch https://cli-assets.heroku.com/apt/./InRelease  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 536F8F1DE80F6A35
W: Some index files failed to download. They have been ignored, or old ones used instead.
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1

Too long with no output (exceeded 10m0s): context deadline exceeded

image

Expected behavior

Installation ideally took < 40 seconds, but now it takes an average of about 4 minutes per job.

If possible, the install process should be optimized to only perform apt update once, as opposed to twice during the install process, if the verification will always have issues due to package verification failures.
If installation at this pace becomes a norm, then frequent output to STDOUT should be made to keep the pipeline active pending the installation process.

Should provide a parameter to specify subscription id

Orb version

1.1.0

What happened

After login, wrong subscription is used.

Expected behavior

After login, azure-cli-orb should use az account set -s <SUBSCRIPTION-ID> to switch to the correct subscription. Because a service principal may be bound to multiple subscriptions, but users only want to create resources on one of the subscriptions. So the orb should provide a parameter to specify subscription id.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.