Skip to content

Commit

Permalink
fix:change in count condition (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rupalgw committed Feb 22, 2024
1 parent 12b83e5 commit 379ea57
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions outputs.tf
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
output "network_interface_id" {
value = azurerm_network_interface.default[*].id
value = try(azurerm_network_interface.default[*].id, null)
description = "The ID of the Network Interface."
}

output "network_interface_private_ip_addresses" {
value = azurerm_network_interface.default[*].private_ip_addresses
value = try(azurerm_network_interface.default[*].private_ip_addresses, null)
description = "The private IP addresses of the network interface."
}

output "availability_set_id" {
value = azurerm_availability_set.default[*].id
value = try(azurerm_availability_set.default[*].id, null)
description = "The ID of the Availability Set."
}

output "public_ip_id" {
value = azurerm_public_ip.default[*].id
value = try(azurerm_public_ip.default[*].id, null)
description = "The Public IP ID."
}

output "public_ip_address" {
value = azurerm_public_ip.default[*].ip_address
value = try(azurerm_public_ip.default[*].ip_address, null)
description = "The IP address value that was allocated."
}

output "linux_virtual_machine_id" {
value = azurerm_linux_virtual_machine.default[*].id
value = try(azurerm_linux_virtual_machine.default[*].id, null)
description = "The ID of the Linux Virtual Machine."
}

output "windows_virtual_machine_id" {
value = azurerm_windows_virtual_machine.win_vm[*].id
value = try(azurerm_windows_virtual_machine.win_vm[*].id, null)
description = "The ID of the Windows Virtual Machine."
}

output "network_interface_sg_association_id" {
value = azurerm_network_interface_security_group_association.default[*].id
value = try(azurerm_network_interface_security_group_association.default[*].id, null)
description = "The (Terraform specific) ID of the Association between the Network Interface and the Network Interface."
}

Expand All @@ -44,11 +44,11 @@ output "tags" {
}

output "disk_encryption_set-id" {
value = azurerm_disk_encryption_set.example[*].id
value = try(azurerm_disk_encryption_set.example[*].id, null)
}

output "key_id" {
value = azurerm_key_vault_key.example[*].id
value = try(azurerm_key_vault_key.example[*].id, null)
description = "Id of key that is to be used for encrypting "
}

Expand Down

0 comments on commit 379ea57

Please sign in to comment.