Focused Python automation for creating a VMware AVI Load Balancer tenant through the AVI Controller API.
Provision a tenant using environment-driven configuration without committing controller URLs, usernames, passwords, or session tokens.
python -m venv .venv
.venv\\Scripts\\activate
pip install -r requirements.txt
copy .env.example .envUpdate .env with your AVI controller values:
AVI_CONTROLLER_URL=https://avi-controller.example.com
AVI_USERNAME=replace-with-controller-user
AVI_PASSWORD=replace-with-controller-password
AVI_TENANT_NAME=Hariharan Demo Tenant
AVI_VERIFY_TLS=true
python tenant_provisioning.py