Skip to content

Commit

Permalink
skip: update CI 60
Browse files Browse the repository at this point in the history
  • Loading branch information
vit-corp committed Jul 5, 2024
1 parent cce7842 commit 96a7060
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
10 changes: 9 additions & 1 deletion auto_policy_testing/green/vm/extension.tf
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@ resource "azurerm_virtual_machine_extension" "win3" {
}

resource "azurerm_virtual_machine_extension" "win4" {
name = "dependencyextensiongreen"
virtual_machine_id = azurerm_windows_virtual_machine.this.id
publisher = "Microsoft.Azure.Monitoring.DependencyAgent"
type = "DependencyAgentWindows"
type_handler_version = "9.5"
}

resource "azurerm_virtual_machine_extension" "win5" {
#count = "windows"
name = "AzureDiskEncryption"
virtual_machine_id = azurerm_windows_virtual_machine.this.id
Expand All @@ -79,7 +87,7 @@ resource "azurerm_virtual_machine_extension" "win4" {
}
SETTINGS

depends_on = [azurerm_virtual_machine_extension.win3]
depends_on = [azurerm_virtual_machine_extension.win4]
}

resource "azurerm_virtual_machine_scale_set_extension" "vmsswin1" {
Expand Down
5 changes: 5 additions & 0 deletions auto_policy_testing/green/vm/load_balancer.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ resource "azurerm_lb" "this" {
resource "azurerm_lb_backend_address_pool" "this" {
loadbalancer_id = azurerm_lb.this.id
name = "publicWorkerPool"
depends_on = [ azurerm_lb ]
}

resource "azurerm_lb_rule" "this" {
Expand All @@ -26,11 +27,15 @@ resource "azurerm_lb_rule" "this" {
frontend_ip_configuration_name = "PublicFrontend"
backend_address_pool_ids = [azurerm_lb_backend_address_pool.this.id]
probe_id = azurerm_lb_probe.this.id

depends_on = [ azurerm_lb, azurerm_lb_backend_address_pool ]
}

resource "azurerm_lb_probe" "this" {
name = "healthProbe-vmss"
loadbalancer_id = azurerm_lb.this.id
protocol = "Tcp"
port = "80"

depends_on = [ azurerm_lb, azurerm_lb_backend_address_pool, azurerm_lb_rule ]
}
1 change: 1 addition & 0 deletions auto_policy_testing/green/vm/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
output "vm" {
value = {
ecc-azure-116-cis_vm_endpoint_protection = azurerm_windows_virtual_machine.this.id,
ecc-azure-132-vm_wo_del_lock = azurerm_linux_virtual_machine.this.id,
ecc-azure-197-asb_vm_disk_encryption_on = azurerm_windows_virtual_machine.this.id,
ecc-azure-275-asb_vm_backup = azurerm_windows_virtual_machine.this.id,
ecc-azure-337-vm_antimalware_auto_updates = azurerm_windows_virtual_machine.this.id,
Expand Down

0 comments on commit 96a7060

Please sign in to comment.