Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/aks-preview/azcli_aks_live_test/scripts/setup_venv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ setupAZ(){
# install azdev, used later to install azcli and extension
pip install azdev==0.1.60

# fix setuptools to 77.0.3 as a workaround for "No module named azure.cli.__main__; 'azure.cli' is a package and cannot be directly executed"
pip install setuptools==77.0.3

# pre-install-az: check existing az
which az || az version || az extension list || true

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ removeAKSPreview

# login before the recording test to avoid the newly added test case does not include a corresponding
# recording file and fall back to live mode, otherwise it will prompt `az login`.
az login --identity -u "${IDENTITY_RESOURCE_ID}"
az login --identity --resource-id "${IDENTITY_RESOURCE_ID}"
az account set -s "${AZCLI_ALT_SUBSCRIPTION_ID}"
az account show

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ source azEnv/bin/activate

# login before the recording test to avoid the newly added test case does not include a corresponding
# recording file and fall back to live mode, otherwise it will prompt `az login`.
az login --identity -u "${IDENTITY_RESOURCE_ID}"
az login --identity --resource-id "${IDENTITY_RESOURCE_ID}"
az account set -s "${AZCLI_ALT_SUBSCRIPTION_ID}"
az account show

Expand Down
Loading