Fix clean validation workflow failing due to az CLI azure-firewall extension change#4972
Fix clean validation workflow failing due to az CLI azure-firewall extension change#4972rudolphjacksonm with Copilot wants to merge 7 commits into
Conversation
…tension change Pre-install the azure-firewall extension explicitly and enable preview extension dynamic install to fix checksum mismatch errors. Closes #4971
|
@copilot I've run the workflow against this branch and it progressed and then hit another azure cli issue: |
…ds with az rest The azure-firewall CLI extension has a persistent checksum mismatch that prevents installation via both dynamic install and explicit az extension add. Eliminate the extension dependency entirely by replacing all az network firewall commands with direct ARM REST API calls using az rest. Closes #4971
The |
Don't use direct API calls. The firewall extension works. The next error refers to az config being an experimental command group and the checksum of this not matching from what I can tell. |
…ION_USE_DYNAMIC_INSTALL env var Revert az rest approach and restore az network firewall commands. Replace az config set (experimental, causing checksum errors) with AZURE_EXTENSION_USE_DYNAMIC_INSTALL environment variable instead. Closes #4971
… revert from az rest
Reverted to |
|
@copilot determined this was a transient issue due to the way this workflow is configured to pull the latest Azure CLI package at runtime on the host. We should pin this workflow like we do the others, something like this after the - name: Install specific Azure CLI version
run: |
AZ_DIST=$(lsb_release -cs)
AZ_VER=2.81.0
apt-cache policy azure-cli
sudo apt-get install azure-cli="${AZ_VER}-1~${AZ_DIST}" --allow-downgrades
az versionRevert all the other changes around sub groups/extensions/etc. |
…_tre.sh changes The workflow was failing due to transient checksum errors from the unpinned Azure CLI package being updated at runtime. Fix by pinning Azure CLI to 2.81.0 (matching the version used in other workflows like lets_encrypt.yml). Revert all changes to control_tre.sh as they are no longer needed. Closes #4971
Done. Added the Azure CLI version pinning step (2.81.0) to |
What is being addressed
The Clean Validation Environments workflow was consistently failing due to a checksum verification error triggered by the experimental
az configcommand group. Theaz config setcalls used to configure dynamic extension installation were themselves failing with a checksum mismatch before theazure-firewallextension could be installed.How is this addressed
az config set extension.use_dynamic_install=yes_without_promptandaz config set extension.dynamic_install_allow_preview=truewith theAZURE_EXTENSION_USE_DYNAMIC_INSTALL=yes_without_promptenvironment variable, avoiding the experimentalaz configcommand entirelyazure-firewallextension viaaz extension add --name azure-firewall --allow-preview true --upgradeaz network firewallCLI commands for firewall management