Closed FrenchBen closed 6 years ago
To add some priority to this, to use Azure CNI requires setting secondary IPs on NICs. If I wanted a pool of 100 IPs, currently you would have to add 100 ip_configuration
blocks. Having a count/looping function would be a big help here.
@seanknox that is precisely the issue I'm trying to fix :P We created a tool that can do this by making a few API calls: src: https://github.com/ddebroy/azip docker image: https://hub.docker.com/r/docker4x/az-nic-ips/
To cross-reference, I also opened an issue on terraform core: https://github.com/hashicorp/terraform/issues/17635#issuecomment-379344568
It will be great to also have similar functionality for ip_configuration
under azurerm_virtual_machine_scale_set
-> network_profile
.
For the Azure IPAM scenario referenced above by @seanknox, in a Azure VM Scale Set environment, one needs to specify numerous ip_configuration
blocks (similar to regular Azure VMs). What makes things worse in a VM Scale Set environment is that the API based mechanism does not appear to work against the network configuration of VM Scale Sets.
We need support from HCL level: https://github.com/hashicorp/terraform/issues/7034
hi @FrenchBen @seanknox @ddebroy
Thanks for opening this issue :)
Given this behaviour would be an enhancement to Terraform Core (since it's a metaparameter, it'll automatically apply to any provider) - I'm going to close this issue in favour of hashicorp/terraform#7034.
Thanks!
Hi there,
given that https://github.com/hashicorp/terraform/issues/7034 is now closed and part of terraform 0.12 ... would you guys be able to implement this?
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!
It's sometimes desirable to assign a few different IPs to a VNIC. On the SDK side, this is done by passing an array; on the terraform side, you need to specify each ip_config entry, which is a bit annoying.
Terraform Version
Affected Resource(s)
Terraform Configuration Files
Full script from: https://docs.microsoft.com/en-us/azure/virtual-machines/linux/terraform-create-complete-vm#complete-terraform-script
Debug Output
Expected Behavior
I expected terraform to support the
count
attribute with theip_configuration
attributeActual Behavior
It doesn't look like it does.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply