title: Terraform - provision static ip addresses on Azure
body: <p>I've been using Terraform for some time and am comfortable with its use with VMware and Azure providers.</p>
  
  <p>Currently I have a requirement to provision VMs in Azure with static IP addresses.  Tried to talk them out of static, but a Security hammer was used on me that I cannot deflect.</p>
  
  <p>While I can allocate some in a subnet and provide them to Terraform (i use ansible to drive Terraform), i wondered if anyone else had tackled this problem in Azure and might have good ideas.</p>
  
  <p>As i see it, the main problem is concurrency.  I need a way to atomically "allocate" an IP in a subnet and be sure that even if it takes a while for a VM to be built and start using that address, no other provisioning request running concurrently will get the same one.</p>
  
  <p>In a private datacenter I would use an IPAM solution.  In Azure I do not have one available.  Looking for ideas at implementing strictly with Azure+Terraform+Ansible</p>