An Azure platform for running a service on AKS with Terraform, Argo CD, CI, observability and incident handling.
View the Project on GitHub Franklindot04/production-platform-Azure
./infrastructure/session.sh check exits 1 at the end of a session, or before the start of one.
The session layer bills until it is destroyed (ADR 0009). A cluster that remains also keeps vCPU quota in use, and the regional quota is 4. The next cluster cannot be created while it remains (docs/architecture.md, risk table).
./infrastructure/session.sh check. It lists every resource group with its resource counts, then prints one line per category, none or REMAINS. Exit 1 means something remains. Exit 0 means nothing remains. Exit 2 means an error or wrong use, for example the Azure CLI is not signed in. The output is masked and shows names and counts, not IDs.== result lines. check reports:
pp-dev-session-rg or the node resource group pp-dev-aks-nodes-rg,pp-shared-state-rg, pp-dev-persistent-rg, NetworkWatcherRG or MA_pp-dev-amw_swedencentral_managed (made by Azure for the Monitor workspace)../infrastructure/session.sh down. It shows the destroy plan and destroys nothing. It shows what Terraform would still remove.down --yes was not run, or it stopped with an error before it finished.PublicIPAddressCannotBeDeleted). Azure refuses to delete the IP while the cluster is being deleted. down --yes now repeats once after a wait. If both attempts fail, run it again.infrastructure/README.md).Other causes are not known from the repository.
./infrastructure/session.sh down. Read the plan. It shows what will be destroyed../infrastructure/session.sh down --yes. It destroys the session root. down needs no authorized range and no admin group value.PublicIPAddressCannotBeDeleted), run it again. A second run cleared this error in Session 1../infrastructure/session.sh check. Repeat until it exits 0.check output, decide by hand, and run check again. Do not remove pp-shared-state-rg, pp-dev-persistent-rg, NetworkWatcherRG or MA_pp-dev-amw_swedencentral_managed: check does not count them, and the first two hold state and persistent resources../infrastructure/session.sh check. It exits 0, and the result lines show none. The note about pp-dev-persistent-rg is expected.A destroy cannot be undone. The session layer is created again with ./infrastructure/session.sh up and up --apply (ADR 0009).
infrastructure/README.md (what check lists), infrastructure/session.sh, ADR 0009, Session 1 and Session 2 teardown steps.
not exercised