Quick Start
Deploy
Section titled “Deploy”# 1. Clone the repositorygit clone https://github.com/danielscholl-osdu/osdu-spi-infra.gitcd osdu-spi-infra
# 2. Authenticateaz loginazd auth login
# 3. Deploy (prompts for environment name, subscription, and location)azd upWhat happens during azd up
Section titled “What happens during azd up”The deployment runs through four phases, orchestrated by Azure Developer CLI lifecycle hooks:
| Phase | Hook | Script | What it does |
|---|---|---|---|
| Pre-provision | preprovision | pre-provision.ps1 | Validates tools, auto-detects settings, generates credentials |
| Provision | — | infra/ | Creates AKS cluster + Azure PaaS resources (~15 min) |
| Post-provision | postprovision | post-provision.ps1 | Bootstraps RBAC, waits for safeguards, deploys foundation operators |
| Pre-deploy | predeploy | pre-deploy.ps1 | Deploys stack: middleware + OSDU services (~5 min) |
Verify
Section titled “Verify”After deployment completes:
# Check cluster accesskubectl get nodes
# Check OSDU services are runningkubectl get pods -n osdu
# Check middlewarekubectl get pods -n platformTeardown
Section titled “Teardown”azd down --force --purgeThis runs teardown hooks in reverse order: stack, foundation, then infrastructure.