Skip to content

Commit

Permalink
Fix AKSCONFIG variable check
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Shen <[email protected]>
  • Loading branch information
mjlshen committed May 8, 2024
1 parent 2e01baa commit f80174c
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions dev-infrastructure/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,11 @@ lint:
az bicep lint --file $$file; \
done

show:
@echo "Resource group : $(RESOURCEGROUP)"
@echo "VPN resource group : $(VPNRESOURCEGROUP)"
@echo "AddressSpace prefix : $(PREFIX)"
@echo "AKS version : $(AKSVERSION)"
@echo "Location : $(LOCATION)"
@echo "AKS VNet Name : $(AKSVNETNAME)"
@echo "DNSZone/deployment : $(DEPLOYMENTNAME)"

setsubscription:
ifndef AKSCONFIG
$(error "Must set AKSCONFIG")
endif
if [[ -z $$AKSCONFIG ]]; then \
echo "Must set AKSCONFIG"; \
exit 1; \
fi
az account set --subscription $(HCPDEVSUBSCRIPTION)
az account show

Expand Down

0 comments on commit f80174c

Please sign in to comment.