Help assigning multiple IP addresses to an Azure NIC with for_each


I am trying to create a NIC in Azure with multiple assigned IP addresse using the for_each to iterate the ip_configuration. However, the resulting configuration in Azure is only the primary IP address and the second IP address in the for_each loop. Could someone help me understand why this is happening and what is the proper way to do this?