You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module"azurerm_network_interface" {
source="./modules/azurerm/r/azurerm_network_interface"# dns_servers - (optional) is a type of list of stringdns_servers=[]
# enable_accelerated_networking - (optional) is a type of boolenable_accelerated_networking=null# enable_ip_forwarding - (optional) is a type of boolenable_ip_forwarding=null# internal_dns_name_label - (optional) is a type of stringinternal_dns_name_label=null# location - (required) is a type of stringlocation=null# name - (required) is a type of stringname=null# resource_group_name - (required) is a type of stringresource_group_name=null# tags - (optional) is a type of map of stringtags={}
ip_configuration=[{
name =null
primary =null
private_ip_address =null
private_ip_address_allocation =null
private_ip_address_version =null
public_ip_address_id =null
subnet_id =null
}]
timeouts=[{
create =null
delete =null
read =null
update =null
}]
}
resource"azurerm_network_interface""this" {
# dns_servers - (optional) is a type of list of stringdns_servers=var.dns_servers# enable_accelerated_networking - (optional) is a type of boolenable_accelerated_networking=var.enable_accelerated_networking# enable_ip_forwarding - (optional) is a type of boolenable_ip_forwarding=var.enable_ip_forwarding# internal_dns_name_label - (optional) is a type of stringinternal_dns_name_label=var.internal_dns_name_label# location - (required) is a type of stringlocation=var.location# name - (required) is a type of stringname=var.name# resource_group_name - (required) is a type of stringresource_group_name=var.resource_group_name# tags - (optional) is a type of map of stringtags=var.tagsdynamic"ip_configuration" {
for_each=var.ip_configurationcontent {
# name - (required) is a type of stringname=ip_configuration.value["name"]
# primary - (optional) is a type of boolprimary=ip_configuration.value["primary"]
# private_ip_address - (optional) is a type of stringprivate_ip_address=ip_configuration.value["private_ip_address"]
# private_ip_address_allocation - (required) is a type of stringprivate_ip_address_allocation=ip_configuration.value["private_ip_address_allocation"]
# private_ip_address_version - (optional) is a type of stringprivate_ip_address_version=ip_configuration.value["private_ip_address_version"]
# public_ip_address_id - (optional) is a type of stringpublic_ip_address_id=ip_configuration.value["public_ip_address_id"]
# subnet_id - (optional) is a type of stringsubnet_id=ip_configuration.value["subnet_id"]
}
}
dynamic"timeouts" {
for_each=var.timeoutscontent {
# create - (optional) is a type of stringcreate=timeouts.value["create"]
# delete - (optional) is a type of stringdelete=timeouts.value["delete"]
# read - (optional) is a type of stringread=timeouts.value["read"]
# update - (optional) is a type of stringupdate=timeouts.value["update"]
}
}
}
output"applied_dns_servers" {
description="returns a list of string"value=azurerm_network_interface.this.applied_dns_servers
}
output"dns_servers" {
description="returns a list of string"value=azurerm_network_interface.this.dns_servers
}
output"id" {
description="returns a string"value=azurerm_network_interface.this.id
}
output"internal_dns_name_label" {
description="returns a string"value=azurerm_network_interface.this.internal_dns_name_label
}
output"internal_domain_name_suffix" {
description="returns a string"value=azurerm_network_interface.this.internal_domain_name_suffix
}
output"mac_address" {
description="returns a string"value=azurerm_network_interface.this.mac_address
}
output"private_ip_address" {
description="returns a string"value=azurerm_network_interface.this.private_ip_address
}
output"private_ip_addresses" {
description="returns a list of string"value=azurerm_network_interface.this.private_ip_addresses
}
output"virtual_machine_id" {
description="returns a string"value=azurerm_network_interface.this.virtual_machine_id
}
output"this" {
value=azurerm_network_interface.this
}