Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removed the nettest vm #3

Merged
merged 1 commit into from
Jun 9, 2024
Merged

removed the nettest vm #3

merged 1 commit into from
Jun 9, 2024

Conversation

adityajoshi12
Copy link
Owner

No description provided.

Copy link

github-actions bot commented Jun 9, 2024

Terraform Format and Style 🖌success

Terraform Initialization ⚙️success

Terraform Validation 🤖success

Terraform Plan 📖success

Show Plan

terraform
module.vm.azurerm_resource_group.rg: Refreshing state... [id=/subscriptions/1efe6241-24d7-46cf-9b87-734264a63554/resourceGroups/rg-test]
module.vm2.azurerm_resource_group.rg: Refreshing state... [id=/subscriptions/1efe6241-24d7-46cf-9b87-734264a63554/resourceGroups/rg-newtest]
module.vm2.azurerm_subnet.subnet: Refreshing state... [id=/subscriptions/1efe6241-24d7-46cf-9b87-734264a63554/resourceGroups/rg-newtest/providers/Microsoft.Network/virtualNetworks/newtest-virtual-network/subnets/newtest-subnet]
module.vm2.azurerm_network_security_group.ssh_rule: Refreshing state... [id=/subscriptions/1efe6241-24d7-46cf-9b87-734264a63554/resourceGroups/rg-newtest/providers/Microsoft.Network/networkSecurityGroups/newtest-nsg]
module.vm2.azurerm_public_ip.pip[0]: Refreshing state... [id=/subscriptions/1efe6241-24d7-46cf-9b87-734264a63554/resourceGroups/rg-newtest/providers/Microsoft.Network/publicIPAddresses/newtest-public-ip-1]
module.vm2.azurerm_virtual_network.vnet: Refreshing state... [id=/subscriptions/1efe6241-24d7-46cf-9b87-734264a63554/resourceGroups/rg-newtest/providers/Microsoft.Network/virtualNetworks/newtest-virtual-network]
module.vm2.azurerm_linux_virtual_machine.vm[0]: Refreshing state... [id=/subscriptions/1efe6241-24d7-46cf-9b87-734264a63554/resourceGroups/rg-newtest/providers/Microsoft.Compute/virtualMachines/newtest-linux-vm-1]
module.vm2.azurerm_network_interface.nic[0]: Refreshing state... [id=/subscriptions/1efe6241-24d7-46cf-9b87-734264a63554/resourceGroups/rg-newtest/providers/Microsoft.Network/networkInterfaces/newtest-nic-1]
module.vm.azurerm_virtual_network.vnet: Refreshing state... [id=/subscriptions/1efe6241-24d7-46cf-9b87-734264a63554/resourceGroups/rg-test/providers/Microsoft.Network/virtualNetworks/test-virtual-network]
module.vm.azurerm_public_ip.pip[0]: Refreshing state... [id=/subscriptions/1efe6241-24d7-46cf-9b87-734264a63554/resourceGroups/rg-test/providers/Microsoft.Network/publicIPAddresses/test-public-ip-1]
module.vm.azurerm_network_security_group.ssh_rule: Refreshing state... [id=/subscriptions/1efe6241-24d7-46cf-9b87-734264a63554/resourceGroups/rg-test/providers/Microsoft.Network/networkSecurityGroups/test-nsg]
module.vm.azurerm_subnet.subnet: Refreshing state... [id=/subscriptions/1efe6241-24d7-46cf-9b87-734264a63554/resourceGroups/rg-test/providers/Microsoft.Network/virtualNetworks/test-virtual-network/subnets/test-subnet]
module.vm.azurerm_network_interface.nic[0]: Refreshing state... [id=/subscriptions/1efe6241-24d7-46cf-9b87-734264a63554/resourceGroups/rg-test/providers/Microsoft.Network/networkInterfaces/test-nic-1]
module.vm.azurerm_linux_virtual_machine.vm[0]: Refreshing state... [id=/subscriptions/1efe6241-24d7-46cf-9b87-734264a63554/resourceGroups/rg-test/providers/Microsoft.Compute/virtualMachines/test-linux-vm-1]

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  - destroy

Terraform will perform the following actions:

  # module.vm2.azurerm_linux_virtual_machine.vm[0] will be destroyed
  # (because azurerm_linux_virtual_machine.vm is not in configuration)
  - resource "azurerm_linux_virtual_machine" "vm" {
      - admin_password                  = (sensitive value) -> null
      - admin_username                  = "azureadmin" -> null
      - allow_extension_operations      = true -> null
      - computer_name                   = "newtest-linux-vm" -> null
      - disable_password_authentication = false -> null
      - encryption_at_host_enabled      = false -> null
      - extensions_time_budget          = "PT1H30M" -> null
      - id                              = "/subscriptions/1efe6241-24d7-46cf-9b87-734264a63554/resourceGroups/rg-newtest/providers/Microsoft.Compute/virtualMachines/newtest-linux-vm-1" -> null
      - location                        = "eastus" -> null
      - max_bid_price                   = -1 -> null
      - name                            = "newtest-linux-vm-1" -> null
      - network_interface_ids           = [
          - "/subscriptions/1efe6241-24d7-46cf-9b87-734264a63554/resourceGroups/rg-newtest/providers/Microsoft.Network/networkInterfaces/newtest-nic-1",
        ] -> null
      - patch_mode                      = "ImageDefault" -> null
      - platform_fault_domain           = -1 -> null
      - priority                        = "Regular" -> null
      - private_ip_address              = "10.0.1.4" -> null
      - private_ip_addresses            = [
          - "10.0.1.4",
        ] -> null
      - provision_vm_agent              = true -> null
      - public_ip_address               = "52.234.220.60" -> null
      - public_ip_addresses             = [
          - "52.234.220.60",
        ] -> null
      - resource_group_name             = "rg-newtest" -> null
      - secure_boot_enabled             = false -> null
      - size                            = "Standard_DS1_v2" -> null
      - tags                            = {} -> null
      - virtual_machine_id              = "d1611000-2285-45f2-9b4c-8c423ca729ad" -> null
      - vtpm_enabled                    = false -> null

      - os_disk {
          - caching                   = "ReadWrite" -> null
          - disk_size_gb              = 100 -> null
          - name                      = "newtest-linux-vm-1_OsDisk_1_8c194f714f6145a8bd7f96b052b5419e" -> null
          - storage_account_type      = "Standard_LRS" -> null
          - write_accelerator_enabled = false -> null
        }

      - source_image_reference {
          - offer     = "UbuntuServer" -> null
          - publisher = "Canonical" -> null
          - sku       = "18.04-LTS" -> null
          - version   = "Latest" -> null
        }
    }

  # module.vm2.azurerm_network_interface.nic[0] will be destroyed
  # (because azurerm_network_interface.nic is not in configuration)
  - resource "azurerm_network_interface" "nic" {
      - applied_dns_servers           = [] -> null
      - dns_servers                   = [] -> null
      - enable_accelerated_networking = false -> null
      - enable_ip_forwarding          = false -> null
      - id                            = "/subscriptions/1efe6241-24d7-46cf-9b87-734264a63554/resourceGroups/rg-newtest/providers/Microsoft.Network/networkInterfaces/newtest-nic-1" -> null
      - internal_domain_name_suffix   = "o0vvyiuv0wwubpgxjjwn1tukdc.bx.internal.cloudapp.net" -> null
      - location                      = "eastus" -> null
      - mac_address                   = "60-45-BD-DC-37-49" -> null
      - name                          = "newtest-nic-1" -> null
      - private_ip_address            = "10.0.1.4" -> null
      - private_ip_addresses          = [
          - "10.0.1.4",
        ] -> null
      - resource_group_name           = "rg-newtest" -> null
      - tags                          = {} -> null
      - virtual_machine_id            = "/subscriptions/1efe6241-24d7-46cf-9b87-734264a63554/resourceGroups/rg-newtest/providers/Microsoft.Compute/virtualMachines/newtest-linux-vm-1" -> null

      - ip_configuration {
          - name                          = "ipconfig-1" -> null
          - primary                       = true -> null
          - private_ip_address            = "10.0.1.4" -> null
          - private_ip_address_allocation = "Dynamic" -> null
          - private_ip_address_version    = "IPv4" -> null
          - public_ip_address_id          = "/subscriptions/1efe6241-24d7-46cf-9b87-734264a63554/resourceGroups/rg-newtest/providers/Microsoft.Network/publicIPAddresses/newtest-public-ip-1" -> null
          - subnet_id                     = "/subscriptions/1efe6241-24d7-46cf-9b87-734264a63554/resourceGroups/rg-newtest/providers/Microsoft.Network/virtualNetworks/newtest-virtual-network/subnets/newtest-subnet" -> null
        }
    }

  # module.vm2.azurerm_network_security_group.ssh_rule will be destroyed
  # (because azurerm_network_security_group.ssh_rule is not in configuration)
  - resource "azurerm_network_security_group" "ssh_rule" {
      - id                  = "/subscriptions/1efe6241-24d7-46cf-9b87-734264a63554/resourceGroups/rg-newtest/providers/Microsoft.Network/networkSecurityGroups/newtest-nsg" -> null
      - location            = "eastus" -> null
      - name                = "newtest-nsg" -> null
      - resource_group_name = "rg-newtest" -> null
      - security_rule       = [
          - {
              - access                                     = "Allow"
              - description                                = ""
              - destination_address_prefix                 = "*"
              - destination_address_prefixes               = []
              - destination_application_security_group_ids = []
              - destination_port_range                     = "22"
              - destination_port_ranges                    = []
              - direction                                  = "Inbound"
              - name                                       = "SSH"
              - priority                                   = 1001
              - protocol                                   = "Tcp"
              - source_address_prefix                      = "*"
              - source_address_prefixes                    = []
              - source_application_security_group_ids      = []
              - source_port_range                          = "*"
              - source_port_ranges                         = []
            },
          - {
              - access                                     = "Allow"
              - description                                = ""
              - destination_address_prefix                 = "*"
              - destination_address_prefixes               = []
              - destination_application_security_group_ids = []
              - destination_port_range                     = "80"
              - destination_port_ranges                    = []
              - direction                                  = "Inbound"
              - name                                       = "HTTP"
              - priority                                   = 1002
              - protocol                                   = "Tcp"
              - source_address_prefix                      = "*"
              - source_address_prefixes                    = []
              - source_application_security_group_ids      = []
              - source_port_range                          = "*"
              - source_port_ranges                         = []
            },
        ] -> null
      - tags                = {} -> null
    }

  # module.vm2.azurerm_public_ip.pip[0] will be destroyed
  # (because azurerm_public_ip.pip is not in configuration)
  - resource "azurerm_public_ip" "pip" {
      - allocation_method       = "Dynamic" -> null
      - id                      = "/subscriptions/1efe6241-24d7-46cf-9b87-734264a63554/resourceGroups/rg-newtest/providers/Microsoft.Network/publicIPAddresses/newtest-public-ip-1" -> null
      - idle_timeout_in_minutes = 4 -> null
      - ip_address              = "52.234.220.60" -> null
      - ip_tags                 = {} -> null
      - ip_version              = "IPv4" -> null
      - location                = "eastus" -> null
      - name                    = "newtest-public-ip-1" -> null
      - resource_group_name     = "rg-newtest" -> null
      - sku                     = "Basic" -> null
      - sku_tier                = "Regional" -> null
      - tags                    = {} -> null
      - zones                   = [] -> null
    }

  # module.vm2.azurerm_resource_group.rg will be destroyed
  # (because azurerm_resource_group.rg is not in configuration)
  - resource "azurerm_resource_group" "rg" {
      - id       = "/subscriptions/1efe6241-24d7-46cf-9b87-734264a63554/resourceGroups/rg-newtest" -> null
      - location = "eastus" -> null
      - name     = "rg-newtest" -> null
      - tags     = {} -> null
    }

  # module.vm2.azurerm_subnet.subnet will be destroyed
  # (because azurerm_subnet.subnet is not in configuration)
  - resource "azurerm_subnet" "subnet" {
      - address_prefixes                               = [
          - "10.0.1.0/24",
        ] -> null
      - enforce_private_link_endpoint_network_policies = false -> null
      - enforce_private_link_service_network_policies  = false -> null
      - id                                             = "/subscriptions/1efe6241-24d7-46cf-9b87-734264a63554/resourceGroups/rg-newtest/providers/Microsoft.Network/virtualNetworks/newtest-virtual-network/subnets/newtest-subnet" -> null
      - name                                           = "newtest-subnet" -> null
      - resource_group_name                            = "rg-newtest" -> null
      - service_endpoint_policy_ids                    = [] -> null
      - service_endpoints                              = [] -> null
      - virtual_network_name                           = "newtest-virtual-network" -> null
    }

  # module.vm2.azurerm_virtual_network.vnet will be destroyed
  # (because azurerm_virtual_network.vnet is not in configuration)
  - resource "azurerm_virtual_network" "vnet" {
      - address_space           = [
          - "10.0.0.0/16",
        ] -> null
      - dns_servers             = [] -> null
      - flow_timeout_in_minutes = 0 -> null
      - guid                    = "225cab76-d595-40ad-bcd7-4a6cddce8a1a" -> null
      - id                      = "/subscriptions/1efe6241-24d7-46cf-9b87-734264a63554/resourceGroups/rg-newtest/providers/Microsoft.Network/virtualNetworks/newtest-virtual-network" -> null
      - location                = "eastus" -> null
      - name                    = "newtest-virtual-network" -> null
      - resource_group_name     = "rg-newtest" -> null
      - subnet                  = [
          - {
              - address_prefix = "10.0.1.0/24"
              - id             = "/subscriptions/1efe6241-24d7-46cf-9b87-734264a63554/resourceGroups/rg-newtest/providers/Microsoft.Network/virtualNetworks/newtest-virtual-network/subnets/newtest-subnet"
              - name           = "newtest-subnet"
              - security_group = ""
            },
        ] -> null
      - tags                    = {} -> null
    }

Plan: 0 to add, 0 to change, 7 to destroy.

─────────────────────────────────────────────────────────────────────────────

Note: You didn't use the -out option to save this plan, so Terraform can't
guarantee to take exactly these actions if you run "terraform apply" now.

*Pushed by: @adityajoshi12, Action: `pull_request`*

@adityajoshi12 adityajoshi12 merged commit 25570ca into main Jun 9, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant