Use this when provisioning must reserve IP addresses, prefixes and VLANs from an IPAM.
IPAM Automation
IPAM automation allocates and records IP addresses, prefixes, VLANs and VRFs through an IPAM system's API, such as NetBox or phpIPAM, so provisioning never picks an address that is already in use.
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Common mistakes Narrow the fault
- Allocating in a script and forgetting to record it.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
Subtopics
Go one level deeper into this subject.
IP address management (IPAM) tracks which prefixes and addresses exist, who uses them and for what, replacing spreadsheets with a database that automation and DHCP/DNS can trust.
Subtopic PrefixesPrefixes in IPAM are subnets such as 10.20.0.0/24, organized hierarchically with status, role, site and VLAN, from which automation allocates child prefixes and addresses.
Subtopic VLANsVLANs in IPAM are recorded with ID, name, site or group and linked prefixes, so automation can configure switch ports and SVIs consistently from the same data.
Subtopic VRFsVRFs in IPAM separate overlapping address spaces, so the same prefix can exist in different VRFs.
Subtopic IP AllocationIP allocation automation picks the next free address or prefix from the right pool, marks it as used atomically to avoid two jobs taking the same one, and releases it when the system is removed.
Subtopic ReservationsReservations in IPAM hold addresses or ranges for a planned use, such as gateways, DHCP pools or future servers, so automatic allocation skips them.
Subtopic API IntegrationIPAM API integration lets provisioning tools request the next free address, reserve it and record the owner through the IPAM's REST API, such as NetBox's available-ips endpoint, in the same run that builds the system.
Subtopic Source of TruthIPAM as source of truth means network addresses are planned and recorded there first, and automation configures devices, DHCP and DNS from that data rather than the other way round.
Subtopic IPAM Automation TroubleshootingTroubleshoot IPAM automation by checking API tokens and permissions, that the parent prefix and VRF are correct, duplicate or stale records, race conditions between parallel jobs, and drift between IPAM and DHCP or DNS.
- Allocate and mark used in one atomic call.
- IPAM must be the source of truth.
- Release addresses when systems are removed.
ReferenceWhy it matters1 section · depth on demand
What it is
IPAM automation allocates and records addresses, prefixes and VLANs through the IPAM API, so automation never guesses free addresses.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in IPAM Automation. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/azure/well-architected/operational-excellence/enable-automation · confidence 94%