@@ -121,17 +121,17 @@ if [ -n "${AZURE_CONFIG_DIR:-}" ]; then
121121 mkdir -p " $AZURE_CONFIG_DIR "
122122fi
123123
124- if command -v az > /dev/null 2>&1 ; then
125- echo " [DEBUG] az command found, attempting login..."
126- az login || true
127- echo " [DEBUG] Starting az interception..."
128- az start-interception
124+ if command -v azlocal > /dev/null 2>&1 ; then
125+ echo " [DEBUG] azlocal command found, attempting login..."
126+ azlocal login || true
127+ echo " [DEBUG] Starting azlocal interception..."
128+ azlocal start-interception
129129 echo " [DEBUG] Setting default subscription..."
130- az account set --subscription " 00000000-0000-0000-0000-000000000000" || true
131- echo " [DEBUG] Checking az account status..."
132- az account show --query " {Environment:environmentName, Subscription:id}" --output json 2>&1 || echo " [DEBUG] az account show failed"
130+ azlocal account set --subscription " 00000000-0000-0000-0000-000000000000" || true
131+ echo " [DEBUG] Checking azlocal account status..."
132+ azlocal account show --query " {Environment:environmentName, Subscription:id}" --output json 2>&1 || echo " [DEBUG] azlocal account show failed"
133133else
134- echo " [DEBUG] az not found, using standard az login with service principal..."
134+ echo " [DEBUG] azlocal not found, using standard az login with service principal..."
135135 az login --service-principal -u any-app -p any-pass --tenant any-tenant || true
136136 echo " [DEBUG] Checking az account status..."
137137 az account show --query " {Environment:environmentName, Subscription:id}" --output json 2>&1 || echo " [DEBUG] az account show failed"
@@ -188,13 +188,13 @@ for (( i=START; i<START+COUNT; i++ )); do
188188
189189 # Clean up Azure resources to prevent state pollution between tests
190190 echo " Cleaning up Azure resources in LocalStack..."
191- if command -v az > /dev/null 2>&1 ; then
192- RG_LIST=$( az group list --query " [].name" -o tsv 2> /dev/null || echo " " )
191+ if command -v azlocal > /dev/null 2>&1 ; then
192+ RG_LIST=$( azlocal group list --query " [].name" -o tsv 2> /dev/null || echo " " )
193193 if [[ -n " $RG_LIST " ]]; then
194194 echo " $RG_LIST " | while read -r rg; do
195195 if [[ -n " $rg " ]]; then
196196 echo " - Deleting resource group: $rg "
197- az group delete --name " $rg " --yes --no-wait 2> /dev/null || true
197+ azlocal group delete --name " $rg " --yes --no-wait 2> /dev/null || true
198198 fi
199199 done
200200 sleep 2
0 commit comments