# How to assign multiple "ip\_configurations" to one NIC in Azure VMSS without hard code?

**URL:** <https://discuss.hashicorp.com/t/how-to-assign-multiple-ip-configurations-to-one-nic-in-azure-vmss-without-hard-code/30067>\
**Category:** Terraform\
**Tags:** azure\
**Created:** [September 29, 2021, 2:56pm UTC](https://discuss.hashicorp.com/t/how-to-assign-multiple-ip-configurations-to-one-nic-in-azure-vmss-without-hard-code/30067 "2021-09-29T14:56:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shuanglu](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/shuanglu/32/13251_2.png) [@Shuanglu](https://discuss.hashicorp.com/u/Shuanglu)\
**Post date:** [September 29, 2021, 2:56pm UTC](https://discuss.hashicorp.com/t/how-to-assign-multiple-ip-configurations-to-one-nic-in-azure-vmss-without-hard-code/30067/1 "2021-09-29T14:56:41Z")

</div>

Hi,  
I’m trying to use Terraform to provision my vmss. I need around 40 ip configurations to be assigned to a sungle network interface of the vmss. I tried to use ‘count’ but this “ip\_configuration” is a dependent resource hence it failed. Any idea how to do it without hard code?  
[https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/linux\_virtual\_machine\_scale\_set#ip\_configuration](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/linux_virtual_machine_scale_set#ip_configuration)  
Thanks!
