Skip to content

Commit

Permalink
fmt run
Browse files Browse the repository at this point in the history
  • Loading branch information
d4kverma committed Feb 6, 2024
1 parent e3d5793 commit 7a58282
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 31 deletions.
40 changes: 20 additions & 20 deletions _example/linux-vm/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -128,40 +128,40 @@ module "log-analytics" {
## linux virtual-machine module call.
##-----------------------------------------------------------------------------
module "virtual-machine" {
source = "../../"
depends_on = [module.key_vault]
name = "app"
environment = "test"
resource_group_name = module.resource_group.resource_group_name
location = module.resource_group.resource_group_location
is_vm_linux = true
source = "../../"
depends_on = [module.key_vault]
name = "app"
environment = "test"
resource_group_name = module.resource_group.resource_group_name
location = module.resource_group.resource_group_location
is_vm_linux = true
user_object_id = {
"user1" = {
role_definition_name = "Virtual Machine Administrator Login"
principal_id = data.azurerm_client_config.current_client_config.object_id
},
}
## Network Interface
subnet_id = module.subnet.default_subnet_id
private_ip_addresses = ["10.0.1.4"]
subnet_id = module.subnet.default_subnet_id
private_ip_addresses = ["10.0.1.4"]
#nsg
network_interface_sg_enabled = true
network_security_group_id = module.security_group.id
## Public IP
public_ip_enabled = false
## Virtual Machine
vm_size = "Standard_B1s"
public_key = "ssh-rsa AAAA"
admin_username = "ubuntu"
caching = "ReadWrite"
disk_size_gb = 30
image_publisher = "Canonical"
image_offer = "0001-com-ubuntu-server-jammy"
image_sku = "22_04-lts-gen2"
image_version = "latest"
vm_size = "Standard_B1s"
public_key = "ssh-rsa AAAA"
admin_username = "ubuntu"
caching = "ReadWrite"
disk_size_gb = 30
image_publisher = "Canonical"
image_offer = "0001-com-ubuntu-server-jammy"
image_sku = "22_04-lts-gen2"
image_version = "latest"

enable_disk_encryption_set = true
key_vault_id = module.key_vault.id
enable_disk_encryption_set = true
key_vault_id = module.key_vault.id
data_disks = [
{
name = "disk1"
Expand Down
20 changes: 10 additions & 10 deletions _example/windows-vm/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -119,22 +119,22 @@ module "virtual-machine" {
},
}
## Network Interface
subnet_id = module.subnet.default_subnet_id
private_ip_addresses = ["10.0.1.4"]
subnet_id = module.subnet.default_subnet_id
private_ip_addresses = ["10.0.1.4"]
#nsg
network_interface_sg_enabled = true
network_security_group_id = module.security_group.id
## Public IP
public_ip_enabled = true
## Virtual Machine
computer_name = "app-win-comp"
vm_size = "Standard_B1s"
admin_username = "azureadmin"
admin_password = "Password@123"
image_publisher = "MicrosoftWindowsServer"
image_offer = "WindowsServer"
image_sku = "2019-datacenter"
image_version = "latest"
computer_name = "app-win-comp"
vm_size = "Standard_B1s"
admin_username = "azureadmin"
admin_password = "Password@123"
image_publisher = "MicrosoftWindowsServer"
image_offer = "WindowsServer"
image_sku = "2019-datacenter"
image_version = "latest"
data_disks = [
{
name = "disk1"
Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ resource "azurerm_linux_virtual_machine" "default" {
disable_password_authentication = var.disable_password_authentication
network_interface_ids = [element(azurerm_network_interface.default[*].id, count.index)]
source_image_id = var.source_image_id != null ? var.source_image_id : null
availability_set_id = var.availability_set_enabled ? azurerm_availability_set.default[0].id : null
availability_set_id = var.availability_set_enabled ? azurerm_availability_set.default[0].id : null
proximity_placement_group_id = var.proximity_placement_group_id
encryption_at_host_enabled = var.enable_encryption_at_host
patch_assessment_mode = var.patch_assessment_mode
Expand Down

0 comments on commit 7a58282

Please sign in to comment.