티스토리 뷰
<참조>
https://docs.microsoft.com/ko-kr/azure/terraform/terraform-create-vm-cluster-with-infrastructure
https://docs.microsoft.com/en-us/azure/terraform/terraform-create-vm-cluster-with-infrastructure
이 자습서에서는 HCL을 사용하여 작은 컴퓨팅 클러스터를 만드는 방법을 보여 준다.
다음 작업을 수행하는 방법을 알아본다.
- Azure 인증을 설정한다.
- Terraform 구성 파일을 만든다.
- Terraform 구성 파일을 사용하여 부하 분산 장치를 만든다.
- Terraform 구성 파일을 사용하여 가용성 세트에 두 개의 Linux VM을 배포한다.
- Terraform을 초기화한다.
- Terraform 실행 계획을 만든다.
- Terraform 실행 계획을 적용하여 Azure 리소스를 만든다.
Azure로 인증 설정
먼저 실습을 위한 디렉토리를 생성하고 VS Code로 연다.
도움말 실습환경 구성에 대한 정보를 보려면 01 Azure 실습을 위한 Visual Studio Code 환경 구성을 참조한다. |
이 섹션에서는 Azure 서비스 보안 주체와, 보안 주체의 자격 증명을 포함하는 Terraform 구성 파일을 두 개를 생성한다.
1. Terraform에서 Azure로 리소스를 프로비전하도록 Azure AD 서비스 사용자를 설정한다. 보안 주체를 만드는 동안 구독 ID, 테넌트, 앱 ID, 암호의 값을 기록해 둔다.
# 구독 정보 확인 az account show
# 서비스 주체 생성 - Azure 구독에 대한 Terraform 액세스 구성 az ad sp create-for-rbac --role="Contributor" --scopes="/subscriptions/${SUBSCRIPTION_ID}" |
zerobig@ZEROBIG-NT800:/mnt/d/Azure_DevOps_Study/20200209 - terraform-demo$ az account show
{
"environmentName": "AzureCloud",
"id": "f8764f39-xxxx-xxxx-xxxx-77b286ed971b",
"isDefault": true,
"name": "Visual Studio Enterprise 201907",
"state": "Enabled",
"tenantId": "917bfe84-0ca6-488d-ad3a-236e41ceafe9",
"user": {
"name": "zerobig.kim@gmail.com",
"type": "user"
}
}
zerobig@ZEROBIG-NT800:/mnt/d/Azure_DevOps_Study/20200209 - terraform-demo$ az ad sp create-for-rbac --role="Contributor" --scopes="/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b"
Retrying service principal creation: 1/36
Creating a role assignment under the scope of "/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b"
Retrying role assignment creation: 1/36
Retrying role assignment creation: 2/36
{
"appId": "ca06b934-949e-49fc-ac0f-909968d6137b",
"displayName": "azure-cli-2020-02-09-02-24-25",
"name": "http://azure-cli-2020-02-09-02-24-25",
"password": "3e2d28e7-xxxx-xxxx-xxxx-eecc83e9808d",
"tenant": "917bfe84-0ca6-488d-ad3a-236e41ceafe9"
}
2. 변수 선언이 담긴 variables.tf 파일을 생성하고 다음 코드를 붙여넣는다.
variable subscription_id {}
variable tenant_id {}
variable client_id {}
variable client_secret {}
provider "azurerm" {
subscription_id = var.subscription_id
tenant_id = var.tenant_id
client_id = var.client_id
client_secret = var.client_secret
}
3. Terraform 변수에 대한 값이 담긴 terraform.tfvars라는 새 파일을 만든다.
subscription_id = "<azure-subscription-id>" tenant_id = "<tenant-returned-from-creating-a-service-principal>" client_id = "<appId-returned-from-creating-a-service-principal>" client_secret = "<password-returned-from-creating-a-service-principal>" |
다음의 값을 사용한다.
- subscription_id : Azure 구독 ID
- tenant_id : az ad sp create-for-rbac에서 반환된 tenant 값
- client_id : az ad sp create-for-rbac에서 반환된 appId 값
- client_secret에는 az ad sp create-for-rbac에서 반환된 password 값
Terraform 구성 파일 만들기
새로 main.tf 파일을 생성하여 다음 코드를 붙여 넣는다.
resource "azurerm_resource_group" "test" {
name = "acctestrg"
location = "Korea Central"
}
resource "azurerm_virtual_network" "test" {
name = "acctvn"
address_space = ["10.0.0.0/16"]
location = azurerm_resource_group.test.location
resource_group_name = azurerm_resource_group.test.name
}
resource "azurerm_subnet" "test" {
name = "acctsub"
resource_group_name = azurerm_resource_group.test.name
virtual_network_name = azurerm_virtual_network.test.name
address_prefix = "10.0.2.0/24"
}
resource "azurerm_public_ip" "test" {
name = "publicIPForLB"
location = azurerm_resource_group.test.location
resource_group_name = azurerm_resource_group.test.name
allocation_method = "Static"
}
resource "azurerm_lb" "test" {
name = "loadBalancer"
location = azurerm_resource_group.test.location
resource_group_name = azurerm_resource_group.test.name
frontend_ip_configuration {
name = "publicIPAddress"
public_ip_address_id = azurerm_public_ip.test.id
}
}
resource "azurerm_lb_backend_address_pool" "test" {
resource_group_name = azurerm_resource_group.test.name
loadbalancer_id = azurerm_lb.test.id
name = "BackEndAddressPool"
}
resource "azurerm_network_interface" "test" {
count = 2
name = "acctni${count.index}"
location = azurerm_resource_group.test.location
resource_group_name = azurerm_resource_group.test.name
ip_configuration {
name = "testConfiguration"
subnet_id = azurerm_subnet.test.id
private_ip_address_allocation = "dynamic"
load_balancer_backend_address_pools_ids = [azurerm_lb_backend_address_pool.test.id]
}
}
resource "azurerm_managed_disk" "test" {
count = 2
name = "datadisk_existing_${count.index}"
location = azurerm_resource_group.test.location
resource_group_name = azurerm_resource_group.test.name
storage_account_type = "Standard_LRS"
create_option = "Empty"
disk_size_gb = "1023"
}
resource "azurerm_availability_set" "avset" {
name = "avset"
location = azurerm_resource_group.test.location
resource_group_name = azurerm_resource_group.test.name
platform_fault_domain_count = 2
platform_update_domain_count = 2
managed = true
}
resource "azurerm_virtual_machine" "test" {
count = 2
name = "acctvm${count.index}"
location = azurerm_resource_group.test.location
availability_set_id = azurerm_availability_set.avset.id
resource_group_name = azurerm_resource_group.test.name
network_interface_ids = [element(azurerm_network_interface.test.*.id, count.index)]
vm_size = "Standard_DS1_v2"
# Uncomment this line to delete the OS disk automatically when deleting the VM
# delete_os_disk_on_termination = true
# Uncomment this line to delete the data disks automatically when deleting the VM
# delete_data_disks_on_termination = true
storage_image_reference {
publisher = "Canonical"
offer = "UbuntuServer"
sku = "16.04-LTS"
version = "latest"
}
storage_os_disk {
name = "myosdisk${count.index}"
caching = "ReadWrite"
create_option = "FromImage"
managed_disk_type = "Standard_LRS"
}
# Optional data disks
storage_data_disk {
name = "datadisk_new_${count.index}"
managed_disk_type = "Standard_LRS"
create_option = "Empty"
lun = 0
disk_size_gb = "1023"
}
storage_data_disk {
name = element(azurerm_managed_disk.test.*.name, count.index)
managed_disk_id = element(azurerm_managed_disk.test.*.id, count.index)
create_option = "Attach"
lun = 1
disk_size_gb = element(azurerm_managed_disk.test.*.disk_size_gb, count.index)
}
os_profile {
computer_name = "hostname"
admin_username = "testadmin"
admin_password = "Password1234!"
}
os_profile_linux_config {
disable_password_authentication = false
}
tags = {
environment = "staging"
}
}
Terraform 초기화
terraform init 명령은 이전 섹션에서 만든 Terraform 구성 파일이 담긴 디렉터리를 초기화하는 데 사용된다. 새 Terraform 구성 파일을 작성한 후에는 항상 terraform init 명령을 실행하는 것이 좋다.
팁 terraform init 명령은 멱등으로, 동일한 결과 생성하는 동안 반복적으로 호출될 수 있다. 따라서 공동 작업 환경에 있으며 구성 파일의 변경 가능성이 있는 경우 계획을 실행하거나 적용하기 전에 항상 terraform init 명령을 호출하는 것이 좋다.
|
zerobig@ZEROBIG-NT800:/mnt/d/Azure_DevOps_Study/20200209 - terraform-demo$ terraform init
Initializing the backend...
Initializing provider plugins...
- Checking for available provider plugins...
- Downloading plugin for provider "azurerm" (hashicorp/azurerm) 1.43.0...
The following providers do not have any version constraints in configuration,
so the latest version was installed.
To prevent automatic upgrades to new major versions that may contain breaking
changes, it is recommended to add version = "..." constraints to the
corresponding provider blocks in configuration, with the constraint strings
suggested below.
* provider.azurerm: version = "~> 1.43"
Terraform has been successfully initialized!
You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.
If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.
Terraform 실행 계획 만들기
Terraform Plan 명령은 실행 계획을 만드는 데 사용된다. 실행 계획을 만들기 위해 Terraform이 현재 디렉터리에 있는 모든 .tf 파일을 집계한다.
out 매개 변수는 실행 계획을 출력 파일에 저장한다. 이 기능은 다중 개발 환경에서 일반적인 동시성 문제를 해결한다. 출력 파일에서 해결하는 이러한 문제 중 하나는 다음과 같다.
- Dev 1은 구성 파일을 만든다.
- Dev 2는 구성 파일을 수정한다.
- Dev 1은 구성 파일을 적용(실행)한다.
- Dev 1은 Dev 2가 구성을 수정했다는 것을 알지 못하는 예기치 않은 결과를 가져온다.
출력 파일을 지정하는 Dev 1은 Dev 2가 Dev 1에 영향을 주지 않는다.
실행 계획을 저장할 필요가 없으면 다음 명령을 실행한다.
zerobig@ZEROBIG-NT800:/mnt/d/Azure_DevOps_Study/20200209 - terraform-demo$ terraform plan
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.
------------------------------------------------------------------------
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# azurerm_availability_set.avset will be created
+ resource "azurerm_availability_set" "avset" {
+ id = (known after apply)
+ location = "koreacentral"
+ managed = true
+ name = "avset"
+ platform_fault_domain_count = 2
+ platform_update_domain_count = 2
+ resource_group_name = "acctestrg"
+ tags = (known after apply)
}
# azurerm_lb.test will be created
+ resource "azurerm_lb" "test" {
+ id = (known after apply)
+ location = "koreacentral"
+ name = "loadBalancer"
+ private_ip_address = (known after apply)
+ private_ip_addresses = (known after apply)
+ resource_group_name = "acctestrg"
+ sku = "Basic"
+ tags = (known after apply)
+ frontend_ip_configuration {
+ id = (known after apply)
+ inbound_nat_rules = (known after apply)
+ load_balancer_rules = (known after apply)
+ name = "publicIPAddress"
+ outbound_rules = (known after apply)
+ private_ip_address = (known after apply)
+ private_ip_address_allocation = (known after apply)
+ public_ip_address_id = (known after apply)
+ public_ip_prefix_id = (known after apply)
+ subnet_id = (known after apply)
}
}
# azurerm_lb_backend_address_pool.test will be created
+ resource "azurerm_lb_backend_address_pool" "test" {
+ backend_ip_configurations = (known after apply)
+ id = (known after apply)
+ load_balancing_rules = (known after apply)
+ loadbalancer_id = (known after apply)
+ name = "BackEndAddressPool"
+ resource_group_name = "acctestrg"
}
# azurerm_managed_disk.test[0] will be created
+ resource "azurerm_managed_disk" "test" {
+ create_option = "Empty"
+ disk_iops_read_write = (known after apply)
+ disk_mbps_read_write = (known after apply)
+ disk_size_gb = 1023
+ id = (known after apply)
+ location = "koreacentral"
+ name = "datadisk_existing_0"
+ resource_group_name = "acctestrg"
+ source_uri = (known after apply)
+ storage_account_type = "Standard_LRS"
+ tags = (known after apply)
}
# azurerm_managed_disk.test[1] will be created
+ resource "azurerm_managed_disk" "test" {
+ create_option = "Empty"
+ disk_iops_read_write = (known after apply)
+ disk_mbps_read_write = (known after apply)
+ disk_size_gb = 1023
+ id = (known after apply)
+ location = "koreacentral"
+ name = "datadisk_existing_1"
+ resource_group_name = "acctestrg"
+ source_uri = (known after apply)
+ storage_account_type = "Standard_LRS"
+ tags = (known after apply)
}
# azurerm_network_interface.test[0] will be created
+ resource "azurerm_network_interface" "test" {
+ applied_dns_servers = (known after apply)
+ dns_servers = (known after apply)
+ enable_accelerated_networking = false
+ enable_ip_forwarding = false
+ id = (known after apply)
+ internal_dns_name_label = (known after apply)
+ internal_fqdn = (known after apply)
+ location = "koreacentral"
+ mac_address = (known after apply)
+ name = "acctni0"
+ private_ip_address = (known after apply)
+ private_ip_addresses = (known after apply)
+ resource_group_name = "acctestrg"
+ tags = (known after apply)
+ virtual_machine_id = (known after apply)
+ ip_configuration {
+ application_gateway_backend_address_pools_ids = (known after apply)
+ application_security_group_ids = (known after apply)
+ load_balancer_backend_address_pools_ids = (known after apply)
+ load_balancer_inbound_nat_rules_ids = (known after apply)
+ name = "testConfiguration"
+ primary = (known after apply)
+ private_ip_address = (known after apply)
+ private_ip_address_allocation = "dynamic"
+ private_ip_address_version = "IPv4"
+ subnet_id = (known after apply)
}
}
# azurerm_network_interface.test[1] will be created
+ resource "azurerm_network_interface" "test" {
+ applied_dns_servers = (known after apply)
+ dns_servers = (known after apply)
+ enable_accelerated_networking = false
+ enable_ip_forwarding = false
+ id = (known after apply)
+ internal_dns_name_label = (known after apply)
+ internal_fqdn = (known after apply)
+ location = "koreacentral"
+ mac_address = (known after apply)
+ name = "acctni1"
+ private_ip_address = (known after apply)
+ private_ip_addresses = (known after apply)
+ resource_group_name = "acctestrg"
+ tags = (known after apply)
+ virtual_machine_id = (known after apply)
+ ip_configuration {
+ application_gateway_backend_address_pools_ids = (known after apply)
+ application_security_group_ids = (known after apply)
+ load_balancer_backend_address_pools_ids = (known after apply)
+ load_balancer_inbound_nat_rules_ids = (known after apply)
+ name = "testConfiguration"
+ primary = (known after apply)
+ private_ip_address = (known after apply)
+ private_ip_address_allocation = "dynamic"
+ private_ip_address_version = "IPv4"
+ subnet_id = (known after apply)
}
}
# azurerm_public_ip.test will be created
+ resource "azurerm_public_ip" "test" {
+ allocation_method = "Static"
+ fqdn = (known after apply)
+ id = (known after apply)
+ idle_timeout_in_minutes = 4
+ ip_address = (known after apply)
+ ip_version = "IPv4"
+ location = "koreacentral"
+ name = "publicIPForLB"
+ public_ip_address_allocation = (known after apply)
+ resource_group_name = "acctestrg"
+ sku = "Basic"
+ tags = (known after apply)
}
# azurerm_resource_group.test will be created
+ resource "azurerm_resource_group" "test" {
+ id = (known after apply)
+ location = "koreacentral"
+ name = "acctestrg"
+ tags = (known after apply)
}
# azurerm_subnet.test will be created
+ resource "azurerm_subnet" "test" {
+ address_prefix = "10.0.2.0/24"
+ enforce_private_link_endpoint_network_policies = false
+ enforce_private_link_service_network_policies = false
+ id = (known after apply)
+ ip_configurations = (known after apply)
+ name = "acctsub"
+ resource_group_name = "acctestrg"
+ virtual_network_name = "acctvn"
}
# azurerm_virtual_machine.test[0] will be created
+ resource "azurerm_virtual_machine" "test" {
+ availability_set_id = (known after apply)
+ delete_data_disks_on_termination = false
+ delete_os_disk_on_termination = false
+ id = (known after apply)
+ license_type = (known after apply)
+ location = "koreacentral"
+ name = "acctvm0"
+ network_interface_ids = (known after apply)
+ resource_group_name = "acctestrg"
+ tags = {
+ "environment" = "staging"
}
+ vm_size = "Standard_DS1_v2"
+ identity {
+ identity_ids = (known after apply)
+ principal_id = (known after apply)
+ type = (known after apply)
}
+ os_profile {
+ admin_password = (sensitive value)
+ admin_username = "testadmin"
+ computer_name = "hostname"
+ custom_data = (known after apply)
}
+ os_profile_linux_config {
+ disable_password_authentication = false
}
+ storage_data_disk {
+ caching = (known after apply)
+ create_option = "Empty"
+ disk_size_gb = 1023
+ lun = 0
+ managed_disk_id = (known after apply)
+ managed_disk_type = "Standard_LRS"
+ name = "datadisk_new_0"
+ write_accelerator_enabled = false
}
+ storage_data_disk {
+ caching = (known after apply)
+ create_option = "Attach"
+ disk_size_gb = 1023
+ lun = 1
+ managed_disk_id = (known after apply)
+ managed_disk_type = (known after apply)
+ name = "datadisk_existing_0"
+ write_accelerator_enabled = false
}
+ storage_image_reference {
+ offer = "UbuntuServer"
+ publisher = "Canonical"
+ sku = "16.04-LTS"
+ version = "latest"
}
+ storage_os_disk {
+ caching = "ReadWrite"
+ create_option = "FromImage"
+ disk_size_gb = (known after apply)
+ managed_disk_id = (known after apply)
+ managed_disk_type = "Standard_LRS"
+ name = "myosdisk0"
+ os_type = (known after apply)
+ write_accelerator_enabled = false
}
}
# azurerm_virtual_machine.test[1] will be created
+ resource "azurerm_virtual_machine" "test" {
+ availability_set_id = (known after apply)
+ delete_data_disks_on_termination = false
+ delete_os_disk_on_termination = false
+ id = (known after apply)
+ license_type = (known after apply)
+ location = "koreacentral"
+ name = "acctvm1"
+ network_interface_ids = (known after apply)
+ resource_group_name = "acctestrg"
+ tags = {
+ "environment" = "staging"
}
+ vm_size = "Standard_DS1_v2"
+ identity {
+ identity_ids = (known after apply)
+ principal_id = (known after apply)
+ type = (known after apply)
}
+ os_profile {
+ admin_password = (sensitive value)
+ admin_username = "testadmin"
+ computer_name = "hostname"
+ custom_data = (known after apply)
}
+ os_profile_linux_config {
+ disable_password_authentication = false
}
+ storage_data_disk {
+ caching = (known after apply)
+ create_option = "Empty"
+ disk_size_gb = 1023
+ lun = 0
+ managed_disk_id = (known after apply)
+ managed_disk_type = "Standard_LRS"
+ name = "datadisk_new_1"
+ write_accelerator_enabled = false
}
+ storage_data_disk {
+ caching = (known after apply)
+ create_option = "Attach"
+ disk_size_gb = 1023
+ lun = 1
+ managed_disk_id = (known after apply)
+ managed_disk_type = (known after apply)
+ name = "datadisk_existing_1"
+ write_accelerator_enabled = false
}
+ storage_image_reference {
+ offer = "UbuntuServer"
+ publisher = "Canonical"
+ sku = "16.04-LTS"
+ version = "latest"
}
+ storage_os_disk {
+ caching = "ReadWrite"
+ create_option = "FromImage"
+ disk_size_gb = (known after apply)
+ managed_disk_id = (known after apply)
+ managed_disk_type = "Standard_LRS"
+ name = "myosdisk1"
+ os_type = (known after apply)
+ write_accelerator_enabled = false
}
}
# azurerm_virtual_network.test will be created
+ resource "azurerm_virtual_network" "test" {
+ address_space = [
+ "10.0.0.0/16",
]
+ id = (known after apply)
+ location = "koreacentral"
+ name = "acctvn"
+ resource_group_name = "acctestrg"
+ tags = (known after apply)
+ subnet {
+ address_prefix = (known after apply)
+ id = (known after apply)
+ name = (known after apply)
+ security_group = (known after apply)
}
}
Plan: 13 to add, 0 to change, 0 to destroy.
------------------------------------------------------------------------
Note: You didn't specify an "-out" parameter to save this plan, so Terraform
can't guarantee that exactly these actions will be performed if
"terraform apply" is subsequently run.
실행 계획을 저장해야 하는 경우 다음 명령을 실행한다. 자리 표시자를 사용자 환경에 적합한 값으로 바꾼다.
terraform plan -out=<path> |
또 다른 유용한 매개 변수는 -var 파일이다.
기본적으로 Terraform은 다음과 같이 변수 파일을 찾으려고 시도한다.
- 파일 이름 terraform.tfvars
- 다음 패턴을 사용하여 이름이 지정된 파일이다. *.auto.tfvars
그러나 변수 파일은 위의 두 가지 규칙 중 하나를 따를 필요가 없다. 이 경우 변수 파일 이름에 확장명이 포함되지 않는 -var-file 매개 변수를 사용하여 변수 파일 이름을 지정한다. 다음 예제에서는 이 점에 대해 설명한다.
terraform plan -var-file <my-variables-file> |
Terraform은 구성 파일에 지정된 상태를 구현하는 데 필요한 작업을 결정한다.
Terraform 실행 계획 적용
terraform apply 명령을 사용하여 terraform plan 명령에서 생성한 동작 집합을 적용한다.
최신 실행 계획만 적용하려면 다음 명령을 실행한다.
terraform apply |
이전에 저장한 실행 계획만 적용하려면 다음 명령을 실행합니다. 자리 표시자를 사용자 환경에 적합한 값으로 바꾼다.
terraform apply <path> |
zerobig@ZEROBIG-NT800:/mnt/d/Azure_DevOps_Study/20200209 - terraform-demo$ terraform apply
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# azurerm_availability_set.avset will be created
+ resource "azurerm_availability_set" "avset" {
+ id = (known after apply)
+ location = "koreacentral"
+ managed = true
+ name = "avset"
+ platform_fault_domain_count = 2
+ platform_update_domain_count = 2
+ resource_group_name = "acctestrg"
+ tags = (known after apply)
}
# azurerm_lb.test will be created
+ resource "azurerm_lb" "test" {
+ id = (known after apply)
+ location = "koreacentral"
+ name = "loadBalancer"
+ private_ip_address = (known after apply)
+ private_ip_addresses = (known after apply)
+ resource_group_name = "acctestrg"
+ sku = "Basic"
+ tags = (known after apply)
+ frontend_ip_configuration {
+ id = (known after apply)
+ inbound_nat_rules = (known after apply)
+ load_balancer_rules = (known after apply)
+ name = "publicIPAddress"
+ outbound_rules = (known after apply)
+ private_ip_address = (known after apply)
+ private_ip_address_allocation = (known after apply)
+ public_ip_address_id = (known after apply)
+ public_ip_prefix_id = (known after apply)
+ subnet_id = (known after apply)
}
}
# azurerm_lb_backend_address_pool.test will be created
+ resource "azurerm_lb_backend_address_pool" "test" {
+ backend_ip_configurations = (known after apply)
+ id = (known after apply)
+ load_balancing_rules = (known after apply)
+ loadbalancer_id = (known after apply)
+ name = "BackEndAddressPool"
+ resource_group_name = "acctestrg"
}
# azurerm_managed_disk.test[0] will be created
+ resource "azurerm_managed_disk" "test" {
+ create_option = "Empty"
+ disk_iops_read_write = (known after apply)
+ disk_mbps_read_write = (known after apply)
+ disk_size_gb = 1023
+ id = (known after apply)
+ location = "koreacentral"
+ name = "datadisk_existing_0"
+ resource_group_name = "acctestrg"
+ source_uri = (known after apply)
+ storage_account_type = "Standard_LRS"
+ tags = (known after apply)
}
# azurerm_managed_disk.test[1] will be created
+ resource "azurerm_managed_disk" "test" {
+ create_option = "Empty"
+ disk_iops_read_write = (known after apply)
+ disk_mbps_read_write = (known after apply)
+ disk_size_gb = 1023
+ id = (known after apply)
+ location = "koreacentral"
+ name = "datadisk_existing_1"
+ resource_group_name = "acctestrg"
+ source_uri = (known after apply)
+ storage_account_type = "Standard_LRS"
+ tags = (known after apply)
}
# azurerm_network_interface.test[0] will be created
+ resource "azurerm_network_interface" "test" {
+ applied_dns_servers = (known after apply)
+ dns_servers = (known after apply)
+ enable_accelerated_networking = false
+ enable_ip_forwarding = false
+ id = (known after apply)
+ internal_dns_name_label = (known after apply)
+ internal_fqdn = (known after apply)
+ location = "koreacentral"
+ mac_address = (known after apply)
+ name = "acctni0"
+ private_ip_address = (known after apply)
+ private_ip_addresses = (known after apply)
+ resource_group_name = "acctestrg"
+ tags = (known after apply)
+ virtual_machine_id = (known after apply)
+ ip_configuration {
+ application_gateway_backend_address_pools_ids = (known after apply)
+ application_security_group_ids = (known after apply)
+ load_balancer_backend_address_pools_ids = (known after apply)
+ load_balancer_inbound_nat_rules_ids = (known after apply)
+ name = "testConfiguration"
+ primary = (known after apply)
+ private_ip_address = (known after apply)
+ private_ip_address_allocation = "dynamic"
+ private_ip_address_version = "IPv4"
+ subnet_id = (known after apply)
}
}
# azurerm_network_interface.test[1] will be created
+ resource "azurerm_network_interface" "test" {
+ applied_dns_servers = (known after apply)
+ dns_servers = (known after apply)
+ enable_accelerated_networking = false
+ enable_ip_forwarding = false
+ id = (known after apply)
+ internal_dns_name_label = (known after apply)
+ internal_fqdn = (known after apply)
+ location = "koreacentral"
+ mac_address = (known after apply)
+ name = "acctni1"
+ private_ip_address = (known after apply)
+ private_ip_addresses = (known after apply)
+ resource_group_name = "acctestrg"
+ tags = (known after apply)
+ virtual_machine_id = (known after apply)
+ ip_configuration {
+ application_gateway_backend_address_pools_ids = (known after apply)
+ application_security_group_ids = (known after apply)
+ load_balancer_backend_address_pools_ids = (known after apply)
+ load_balancer_inbound_nat_rules_ids = (known after apply)
+ name = "testConfiguration"
+ primary = (known after apply)
+ private_ip_address = (known after apply)
+ private_ip_address_allocation = "dynamic"
+ private_ip_address_version = "IPv4"
+ subnet_id = (known after apply)
}
}
# azurerm_public_ip.test will be created
+ resource "azurerm_public_ip" "test" {
+ allocation_method = "Static"
+ fqdn = (known after apply)
+ id = (known after apply)
+ idle_timeout_in_minutes = 4
+ ip_address = (known after apply)
+ ip_version = "IPv4"
+ location = "koreacentral"
+ name = "publicIPForLB"
+ public_ip_address_allocation = (known after apply)
+ resource_group_name = "acctestrg"
+ sku = "Basic"
+ tags = (known after apply)
}
# azurerm_resource_group.test will be created
+ resource "azurerm_resource_group" "test" {
+ id = (known after apply)
+ location = "koreacentral"
+ name = "acctestrg"
+ tags = (known after apply)
}
# azurerm_subnet.test will be created
+ resource "azurerm_subnet" "test" {
+ address_prefix = "10.0.2.0/24"
+ enforce_private_link_endpoint_network_policies = false
+ enforce_private_link_service_network_policies = false
+ id = (known after apply)
+ ip_configurations = (known after apply)
+ name = "acctsub"
+ resource_group_name = "acctestrg"
+ virtual_network_name = "acctvn"
}
# azurerm_virtual_machine.test[0] will be created
+ resource "azurerm_virtual_machine" "test" {
+ availability_set_id = (known after apply)
+ delete_data_disks_on_termination = false
+ delete_os_disk_on_termination = false
+ id = (known after apply)
+ license_type = (known after apply)
+ location = "koreacentral"
+ name = "acctvm0"
+ network_interface_ids = (known after apply)
+ resource_group_name = "acctestrg"
+ tags = {
+ "environment" = "staging"
}
+ vm_size = "Standard_DS1_v2"
+ identity {
+ identity_ids = (known after apply)
+ principal_id = (known after apply)
+ type = (known after apply)
}
+ os_profile {
+ admin_password = (sensitive value)
+ admin_username = "testadmin"
+ computer_name = "hostname"
+ custom_data = (known after apply)
}
+ os_profile_linux_config {
+ disable_password_authentication = false
}
+ storage_data_disk {
+ caching = (known after apply)
+ create_option = "Empty"
+ disk_size_gb = 1023
+ lun = 0
+ managed_disk_id = (known after apply)
+ managed_disk_type = "Standard_LRS"
+ name = "datadisk_new_0"
+ write_accelerator_enabled = false
}
+ storage_data_disk {
+ caching = (known after apply)
+ create_option = "Attach"
+ disk_size_gb = 1023
+ lun = 1
+ managed_disk_id = (known after apply)
+ managed_disk_type = (known after apply)
+ name = "datadisk_existing_0"
+ write_accelerator_enabled = false
}
+ storage_image_reference {
+ offer = "UbuntuServer"
+ publisher = "Canonical"
+ sku = "16.04-LTS"
+ version = "latest"
}
+ storage_os_disk {
+ caching = "ReadWrite"
+ create_option = "FromImage"
+ disk_size_gb = (known after apply)
+ managed_disk_id = (known after apply)
+ managed_disk_type = "Standard_LRS"
+ name = "myosdisk0"
+ os_type = (known after apply)
+ write_accelerator_enabled = false
}
}
# azurerm_virtual_machine.test[1] will be created
+ resource "azurerm_virtual_machine" "test" {
+ availability_set_id = (known after apply)
+ delete_data_disks_on_termination = false
+ delete_os_disk_on_termination = false
+ id = (known after apply)
+ license_type = (known after apply)
+ location = "koreacentral"
+ name = "acctvm1"
+ network_interface_ids = (known after apply)
+ resource_group_name = "acctestrg"
+ tags = {
+ "environment" = "staging"
}
+ vm_size = "Standard_DS1_v2"
+ identity {
+ identity_ids = (known after apply)
+ principal_id = (known after apply)
+ type = (known after apply)
}
+ os_profile {
+ admin_password = (sensitive value)
+ admin_username = "testadmin"
+ computer_name = "hostname"
+ custom_data = (known after apply)
}
+ os_profile_linux_config {
+ disable_password_authentication = false
}
+ storage_data_disk {
+ caching = (known after apply)
+ create_option = "Empty"
+ disk_size_gb = 1023
+ lun = 0
+ managed_disk_id = (known after apply)
+ managed_disk_type = "Standard_LRS"
+ name = "datadisk_new_1"
+ write_accelerator_enabled = false
}
+ storage_data_disk {
+ caching = (known after apply)
+ create_option = "Attach"
+ disk_size_gb = 1023
+ lun = 1
+ managed_disk_id = (known after apply)
+ managed_disk_type = (known after apply)
+ name = "datadisk_existing_1"
+ write_accelerator_enabled = false
}
+ storage_image_reference {
+ offer = "UbuntuServer"
+ publisher = "Canonical"
+ sku = "16.04-LTS"
+ version = "latest"
}
+ storage_os_disk {
+ caching = "ReadWrite"
+ create_option = "FromImage"
+ disk_size_gb = (known after apply)
+ managed_disk_id = (known after apply)
+ managed_disk_type = "Standard_LRS"
+ name = "myosdisk1"
+ os_type = (known after apply)
+ write_accelerator_enabled = false
}
}
# azurerm_virtual_network.test will be created
+ resource "azurerm_virtual_network" "test" {
+ address_space = [
+ "10.0.0.0/16",
]
+ id = (known after apply)
+ location = "koreacentral"
+ name = "acctvn"
+ resource_group_name = "acctestrg"
+ tags = (known after apply)
+ subnet {
+ address_prefix = (known after apply)
+ id = (known after apply)
+ name = (known after apply)
+ security_group = (known after apply)
}
}
Plan: 13 to add, 0 to change, 0 to destroy.
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
azurerm_resource_group.test: Creating...
azurerm_resource_group.test: Creation complete after 1s [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg]
azurerm_availability_set.avset: Creating...
azurerm_public_ip.test: Creating...
azurerm_managed_disk.test[0]: Creating...
azurerm_virtual_network.test: Creating...
azurerm_managed_disk.test[1]: Creating...
azurerm_availability_set.avset: Creation complete after 0s [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Compute/availabilitySets/avset]
azurerm_public_ip.test: Creation complete after 3s [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Network/publicIPAddresses/publicIPForLB]
azurerm_lb.test: Creating...
azurerm_lb.test: Creation complete after 0s [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Network/loadBalancers/loadBalancer]
azurerm_lb_backend_address_pool.test: Creating...
azurerm_lb_backend_address_pool.test: Creation complete after 1s [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Network/loadBalancers/loadBalancer/backendAddressPools/BackEndAddressPool]
azurerm_managed_disk.test[0]: Still creating... [10s elapsed]
azurerm_virtual_network.test: Still creating... [10s elapsed]
azurerm_managed_disk.test[1]: Still creating... [10s elapsed]
azurerm_managed_disk.test[0]: Creation complete after 10s [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Compute/disks/datadisk_existing_0]
azurerm_virtual_network.test: Creation complete after 11s [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Network/virtualNetworks/acctvn]
azurerm_managed_disk.test[1]: Creation complete after 11s [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Compute/disks/datadisk_existing_1]
azurerm_subnet.test: Creating...
azurerm_subnet.test: Still creating... [10s elapsed]
azurerm_subnet.test: Creation complete after 10s [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Network/virtualNetworks/acctvn/subnets/acctsub]
azurerm_network_interface.test[0]: Creating...
azurerm_network_interface.test[1]: Creating...
azurerm_network_interface.test[0]: Creation complete after 0s [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Network/networkInterfaces/acctni0]
azurerm_network_interface.test[1]: Creation complete after 1s [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Network/networkInterfaces/acctni1]
azurerm_virtual_machine.test[0]: Creating...
azurerm_virtual_machine.test[0]: Still creating... [10s elapsed]
azurerm_virtual_machine.test[1]: Still creating... [10s elapsed]
azurerm_virtual_machine.test[0]: Still creating... [20s elapsed]
azurerm_virtual_machine.test[1]: Still creating... [20s elapsed]
azurerm_virtual_machine.test[0]: Still creating... [30s elapsed]
azurerm_virtual_machine.test[1]: Still creating... [30s elapsed]
azurerm_virtual_machine.test[1]: Still creating... [40s elapsed]
azurerm_virtual_machine.test[0]: Still creating... [40s elapsed]
azurerm_virtual_machine.test[1]: Still creating... [50s elapsed]
azurerm_virtual_machine.test[0]: Still creating... [50s elapsed]
azurerm_virtual_machine.test[0]: Still creating... [1m0s elapsed]
azurerm_virtual_machine.test[1]: Still creating... [1m0s elapsed]
azurerm_virtual_machine.test[1]: Still creating... [1m10s elapsed]
azurerm_virtual_machine.test[0]: Still creating... [1m10s elapsed]
azurerm_virtual_machine.test[1]: Still creating... [1m20s elapsed]
azurerm_virtual_machine.test[0]: Still creating... [1m20s elapsed]
azurerm_virtual_machine.test[1]: Still creating... [1m30s elapsed]
azurerm_virtual_machine.test[0]: Still creating... [1m30s elapsed]
azurerm_virtual_machine.test[1]: Creation complete after 1m31s [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Comp764f39-01ee-4631-9941-77b286ed9ute/virtualMachines/acctvm1]
azurerm_virtual_machine.test[0]: Still creating... [1m40s elapsed]
azurerm_virtual_machine.test[0]: Still creating... [1m50s elapsed]
azurerm_virtual_machine.test[0]: Still creating... [2m0s elapsed]
azurerm_virtual_machine.test[0]: Still creating... [2m10s elapsed]
azurerm_virtual_machine.test[0]: Still creating... [2m20s elapsed]
azurerm_virtual_machine.test[0]: Still creating... [2m30s elapsed]
azurerm_virtual_machine.test[0]: Creation complete after 2m31s [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Compute/virtualMachines/acctvm0]
Apply complete! Resources: 13 added, 0 changed, 0 destroyed.
Azure Portal에서 적용 결과를 확인한다.
결과가 확인되면 terraform destroy를 통해 배포한 리소스를 제거한다.
zerobig@ZEROBIG-NT800:/mnt/d/Azure_DevOps_Study/20200209 - terraform-demo$ terraform destroy
azurerm_resource_group.test: Refreshing state... [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg]
azurerm_virtual_network.test: Refreshing state... [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Network/virtualNetworks/acctvn]
azurerm_availability_set.avset: Refreshing state... [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Compute/availabilitySets/avset]
azurerm_public_ip.test: Refreshing state... [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Network/publicIPAddresses/publicIPForLB]
azurerm_managed_disk.test[0]: Refreshing state... [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Compute/disks/datadisk_existing_0]
azurerm_managed_disk.test[1]: Refreshing state... [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Compute/disks/datadisk_existing_1]
azurerm_subnet.test: Refreshing state... [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Network/virtualNetworks/acctvn/subnets/acctsub]
azurerm_lb.test: Refreshing state... [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Network/loadBalancers/loadBalancer]
azurerm_lb_backend_address_pool.test: Refreshing state... [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Network/loadBalancers/loadBalancer/backendAddressPools/BackEndAddressPool]
azurerm_network_interface.test[0]: Refreshing state... [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Network/networkInterfaces/acctni0]
azurerm_network_interface.test[1]: Refreshing state... [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Network/networkInterfaces/acctni1]
azurerm_virtual_machine.test[1]: Refreshing state... [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Compute/virtualMachines/acctvm1]
azurerm_virtual_machine.test[0]: Refreshing state... [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Compute/virtualMachines/acctvm0]
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
- destroy
Terraform will perform the following actions:
# azurerm_availability_set.avset will be destroyed
- resource "azurerm_availability_set" "avset" {
- id = "/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Compute/availabilitySets/avset" -> null
- location = "koreacentral" -> null
- managed = true -> null
- name = "avset" -> null
- platform_fault_domain_count = 2 -> null
- platform_update_domain_count = 2 -> null
- resource_group_name = "acctestrg" -> null
- tags = {} -> null
}
# azurerm_lb.test will be destroyed
- resource "azurerm_lb" "test" {
- id = "/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Network/loadBalancers/loadBalancer" ->
null
- location = "koreacentral" -> null
- name = "loadBalancer" -> null
- private_ip_addresses = [] -> null
- resource_group_name = "acctestrg" -> null
- sku = "Basic" -> null
- tags = {} -> null
- frontend_ip_configuration {
- id = "/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Network/loadBalancers/loadBalancer/frontendIPConfigurations/publicIPAddress" -> null
- inbound_nat_rules = [] -> null
- load_balancer_rules = [] -> null
- name = "publicIPAddress" -> null
- outbound_rules = [] -> null
- private_ip_address_allocation = "Dynamic" -> null
- public_ip_address_id = "/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Network/publicIPAddresses/publicIPForLB" -> null
- zones = [] -> null
}
}
# azurerm_lb_backend_address_pool.test will be destroyed
- resource "azurerm_lb_backend_address_pool" "test" {
- backend_ip_configurations = [
- "/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Network/networkInterfaces/acctni0/ipConfigurations/testConfiguration",
- "/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Network/networkInterfaces/acctni1/ipConfigurations/testConfiguration",
] -> null
- id = "/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Network/loadBalancers/loadBalancer/backendAddressPools/BackEndAddressPool" -> null
- load_balancing_rules = [] -> null
- loadbalancer_id = "/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Network/loadBalancers/loadBalancer" -> null
- name = "BackEndAddressPool" -> null
- resource_group_name = "acctestrg" -> null
}
# azurerm_managed_disk.test[0] will be destroyed
- resource "azurerm_managed_disk" "test" {
- create_option = "Empty" -> null
- disk_iops_read_write = 500 -> null
- disk_mbps_read_write = 60 -> null
- disk_size_gb = 1023 -> null
- id = "/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Compute/disks/datadisk_existing_0" -> null
- location = "koreacentral" -> null
- name = "datadisk_existing_0" -> null
- resource_group_name = "acctestrg" -> null
- storage_account_type = "Standard_LRS" -> null
- tags = {} -> null
- zones = [] -> null
}
# azurerm_managed_disk.test[1] will be destroyed
- resource "azurerm_managed_disk" "test" {
- create_option = "Empty" -> null
- disk_iops_read_write = 500 -> null
- disk_mbps_read_write = 60 -> null
- disk_size_gb = 1023 -> null
- id = "/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Compute/disks/datadisk_existing_1" -> null
- location = "koreacentral" -> null
- name = "datadisk_existing_1" -> null
- resource_group_name = "acctestrg" -> null
- storage_account_type = "Standard_LRS" -> null
- tags = {} -> null
- zones = [] -> null
}
# azurerm_network_interface.test[0] will be destroyed
- resource "azurerm_network_interface" "test" {
- applied_dns_servers = [] -> null
- dns_servers = [] -> null
- enable_accelerated_networking = false -> null
- enable_ip_forwarding = false -> null
- id = "/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Network/networkInterfaces/acctni0" -> null
- location = "koreacentral" -> null
- mac_address = "00-0D-3A-D7-18-34" -> null
- name = "acctni0" -> null
- private_ip_address = "10.0.2.4" -> null
- private_ip_addresses = [
- "10.0.2.4",
] -> null
- resource_group_name = "acctestrg" -> null
- tags = {} -> null
- virtual_machine_id = "/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Compute/virtualMachines/acctvm0" -> null
- ip_configuration {
- application_gateway_backend_address_pools_ids = [] -> null
- application_security_group_ids = [] -> null
- load_balancer_backend_address_pools_ids = [
- "/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Network/loadBalancers/loadBalancer/backendAddressPools/BackEndAddressPool",
] -> null
- load_balancer_inbound_nat_rules_ids = [] -> null
- name = "testConfiguration" -> null
- primary = true -> null
- private_ip_address = "10.0.2.4" -> null
- private_ip_address_allocation = "dynamic" -> null
- private_ip_address_version = "IPv4" -> null
- subnet_id = "/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Network/virtualNetworks/acctvn/subnets/acctsub" -> null
}
}
# azurerm_network_interface.test[1] will be destroyed
- resource "azurerm_network_interface" "test" {
- applied_dns_servers = [] -> null
- dns_servers = [] -> null
- enable_accelerated_networking = false -> null
- enable_ip_forwarding = false -> null
- id = "/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Network/networkInterfaces/acctni1" -> null
- location = "koreacentral" -> null
- mac_address = "00-0D-3A-D7-18-58" -> null
- name = "acctni1" -> null
- private_ip_address = "10.0.2.5" -> null
- private_ip_addresses = [
- "10.0.2.5",
] -> null
- resource_group_name = "acctestrg" -> null
- tags = {} -> null
- virtual_machine_id = "/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Compute/virtualMachines/acctvm1" -> null
- ip_configuration {
- application_gateway_backend_address_pools_ids = [] -> null
- application_security_group_ids = [] -> null
- load_balancer_backend_address_pools_ids = [
- "/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Network/loadBalancers/loadBalancer/backendAddressPools/BackEndAddressPool",
] -> null
- load_balancer_inbound_nat_rules_ids = [] -> null
- name = "testConfiguration" -> null
- primary = true -> null
- private_ip_address = "10.0.2.5" -> null
- private_ip_address_allocation = "dynamic" -> null
- private_ip_address_version = "IPv4" -> null
- subnet_id = "/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Network/virtualNetworks/acctvn/subnets/acctsub" -> null
}
}
# azurerm_public_ip.test will be destroyed
- resource "azurerm_public_ip" "test" {
- allocation_method = "Static" -> null
- id = "/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Network/publicIPAddresses/publicIPForLB" -> null
- idle_timeout_in_minutes = 4 -> null
- ip_address = "52.231.75.227" -> null
- ip_version = "IPv4" -> null
- location = "koreacentral" -> null
- name = "publicIPForLB" -> null
- public_ip_address_allocation = "Static" -> null
- resource_group_name = "acctestrg" -> null
- sku = "Basic" -> null
- tags = {} -> null
- zones = [] -> null
}
# azurerm_resource_group.test will be destroyed
- resource "azurerm_resource_group" "test" {
- id = "/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg" -> null
- location = "koreacentral" -> null
- name = "acctestrg" -> null
- tags = {} -> null
}
# azurerm_subnet.test will be destroyed
- resource "azurerm_subnet" "test" {
- address_prefix = "10.0.2.0/24" -> null
- enforce_private_link_endpoint_network_policies = false -> null
- enforce_private_link_service_network_policies = false -> null
- id = "/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Network/virtualNetworks/acctvn/subnets/acctsub" -> null
- ip_configurations = [
- "/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Network/networkInterfaces/acctni0/ipConfigurations/testConfiguration",
- "/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Network/networkInterfaces/acctni1/ipConfigurations/testConfiguration",
] -> null
- name = "acctsub" -> null
- resource_group_name = "acctestrg" -> null
- service_endpoints = [] -> null
- virtual_network_name = "acctvn" -> null
}
# azurerm_virtual_machine.test[0] will be destroyed
- resource "azurerm_virtual_machine" "test" {
- availability_set_id = "/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourcegroups/acctestrg/providers/microsoft.compute/availabilitysets/avset" -> null
- delete_data_disks_on_termination = false -> null
- delete_os_disk_on_termination = false -> null
- id = "/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Compute/virtualMachines/acctvm0" -> null
- location = "koreacentral" -> null
- name = "acctvm0" -> null
- network_interface_ids = [
- "/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Network/networkInterfaces/acctni0",
] -> null
- resource_group_name = "acctestrg" -> null
- tags = {
- "environment" = "staging"
} -> null
- vm_size = "Standard_DS1_v2" -> null
- zones = [] -> null
- os_profile {
- admin_username = "testadmin" -> null
- computer_name = "hostname" -> null
}
- os_profile_linux_config {
- disable_password_authentication = false -> null
}
- storage_data_disk {
- caching = "None" -> null
- create_option = "Empty" -> null
- disk_size_gb = 1023 -> null
- lun = 0 -> null
- managed_disk_id = "/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/ACCTESTRG/providers/Microsoft.Compute/disks/datadisk_new_0"
-> null
- managed_disk_type = "Standard_LRS" -> null
- name = "datadisk_new_0" -> null
- write_accelerator_enabled = false -> null
}
- storage_data_disk {
- caching = "None" -> null
- create_option = "Attach" -> null
- disk_size_gb = 1023 -> null
- lun = 1 -> null
- managed_disk_id = "/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Compute/disks/datadisk_existing_0" -> null
- managed_disk_type = "Standard_LRS" -> null
- name = "datadisk_existing_0" -> null
- write_accelerator_enabled = false -> null
}
- storage_image_reference {
- offer = "UbuntuServer" -> null
- publisher = "Canonical" -> null
- sku = "16.04-LTS" -> null
- version = "latest" -> null
}
- storage_os_disk {
- caching = "ReadWrite" -> null
- create_option = "FromImage" -> null
- disk_size_gb = 30 -> null
- managed_disk_id = "/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/ACCTESTRG/providers/Microsoft.Compute/disks/myosdisk0" -> null
- managed_disk_type = "Standard_LRS" -> null
- name = "myosdisk0" -> null
- os_type = "Linux" -> null
- write_accelerator_enabled = false -> null
}
}
# azurerm_virtual_machine.test[1] will be destroyed
- resource "azurerm_virtual_machine" "test" {
- availability_set_id = "/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourcegroups/acctestrg/providers/microsoft.compute/availabilitysets/avset" -> null
- delete_data_disks_on_termination = false -> null
- delete_os_disk_on_termination = false -> null
- id = "/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Compute/virtualMachines/acctvm1" -> null
- location = "koreacentral" -> null
- name = "acctvm1" -> null
- network_interface_ids = [
- "/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Network/networkInterfaces/acctni1",
] -> null
- resource_group_name = "acctestrg" -> null
- tags = {
- "environment" = "staging"
} -> null
- vm_size = "Standard_DS1_v2" -> null
- zones = [] -> null
- os_profile {
- admin_username = "testadmin" -> null
- computer_name = "hostname" -> null
}
- os_profile_linux_config {
- disable_password_authentication = false -> null
}
- storage_data_disk {
- caching = "None" -> null
- create_option = "Empty" -> null
- disk_size_gb = 1023 -> null
- lun = 0 -> null
- managed_disk_id = "/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/ACCTESTRG/providers/Microsoft.Compute/disks/datadisk_new_1"
-> null
- managed_disk_type = "Standard_LRS" -> null
- name = "datadisk_new_1" -> null
- write_accelerator_enabled = false -> null
}
- storage_data_disk {
- caching = "None" -> null
- create_option = "Attach" -> null
- disk_size_gb = 1023 -> null
- lun = 1 -> null
- managed_disk_id = "/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Compute/disks/datadisk_existing_1" -> null
- managed_disk_type = "Standard_LRS" -> null
- name = "datadisk_existing_1" -> null
- write_accelerator_enabled = false -> null
}
- storage_image_reference {
- offer = "UbuntuServer" -> null
- publisher = "Canonical" -> null
- sku = "16.04-LTS" -> null
- version = "latest" -> null
}
- storage_os_disk {
- caching = "ReadWrite" -> null
- create_option = "FromImage" -> null
- disk_size_gb = 30 -> null
- managed_disk_id = "/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/ACCTESTRG/providers/Microsoft.Compute/disks/myosdisk1" -> null
- managed_disk_type = "Standard_LRS" -> null
- name = "myosdisk1" -> null
- os_type = "Linux" -> null
- write_accelerator_enabled = false -> null
}
}
# azurerm_virtual_network.test will be destroyed
- resource "azurerm_virtual_network" "test" {
- address_space = [
- "10.0.0.0/16",
] -> null
- dns_servers = [] -> null
- id = "/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Network/virtualNetworks/acctvn" -> null
- location = "koreacentral" -> null
- name = "acctvn" -> null
- resource_group_name = "acctestrg" -> null
- tags = {} -> null
- subnet {
- address_prefix = "10.0.2.0/24" -> null
- id = "/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Network/virtualNetworks/acctvn/subnets/acctsub" -> null
- name = "acctsub" -> null
}
}
Plan: 0 to add, 0 to change, 13 to destroy.
Do you really want to destroy all resources?
Terraform will destroy all your managed infrastructure, as shown above.
There is no undo. Only 'yes' will be accepted to confirm.
Enter a value: yes
azurerm_virtual_machine.test[1]: Destroying... [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Compute/virtualMachines/acctvm1]
azurerm_virtual_machine.test[0]: Destroying... [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Compute/virtualMachines/acctvm0]
azurerm_virtual_machine.test[1]: Still destroying... [id=/subscriptions/f8764f39-01ee-4631-9941-...rosoft.Compute/virtualMachines/acctvm1, 10s elapsed]
azurerm_virtual_machine.test[0]: Still destroying... [id=/subscriptions/f8764f39-01ee-4631-9941-...rosoft.Compute/virtualMachines/acctvm0, 10s elapsed]
azurerm_virtual_machine.test[0]: Still destroying... [id=/subscriptions/f8764f39-01ee-4631-9941-...rosoft.Compute/virtualMachines/acctvm0, 20s elapsed]
azurerm_virtual_machine.test[1]: Still destroying... [id=/subscriptions/f8764f39-01ee-4631-9941-...rosoft.Compute/virtualMachines/acctvm1, 20s elapsed]
azurerm_virtual_machine.test[1]: Still destroying... [id=/subscriptions/f8764f39-01ee-4631-9941-...rosoft.Compute/virtualMachines/acctvm1, 30s elapsed]
azurerm_virtual_machine.test[0]: Still destroying... [id=/subscriptions/f8764f39-01ee-4631-9941-...rosoft.Compute/virtualMachines/acctvm0, 30s elapsed]
azurerm_virtual_machine.test[1]: Still destroying... [id=/subscriptions/f8764f39-01ee-4631-9941-...rosoft.Compute/virtualMachines/acctvm1, 40s elapsed]
azurerm_virtual_machine.test[0]: Still destroying... [id=/subscriptions/f8764f39-01ee-4631-9941-...rosoft.Compute/virtualMachines/acctvm0, 40s elapsed]
azurerm_virtual_machine.test[1]: Still destroying... [id=/subscriptions/f8764f39-01ee-4631-9941-...rosoft.Compute/virtualMachines/acctvm1, 50s elapsed]
azurerm_virtual_machine.test[0]: Still destroying... [id=/subscriptions/f8764f39-01ee-4631-9941-...rosoft.Compute/virtualMachines/acctvm0, 50s elapsed]
azurerm_virtual_machine.test[0]: Still destroying... [id=/subscriptions/f8764f39-01ee-4631-9941-...rosoft.Compute/virtualMachines/acctvm0, 1m0s elapsed]
azurerm_virtual_machine.test[1]: Still destroying... [id=/subscriptions/f8764f39-01ee-4631-9941-...rosoft.Compute/virtualMachines/acctvm1, 1m0s elapsed]
azurerm_virtual_machine.test[1]: Still destroying... [id=/subscriptions/f8764f39-01ee-4631-9941-...rosoft.Compute/virtualMachines/acctvm1, 1m10s elapsed]
azurerm_virtual_machine.test[0]: Still destroying... [id=/subscriptions/f8764f39-01ee-4631-9941-...rosoft.Compute/virtualMachines/acctvm0, 1m10s elapsed]
azurerm_virtual_machine.test[0]: Still destroying... [id=/subscriptions/f8764f39-01ee-4631-9941-...rosoft.Compute/virtualMachines/acctvm0, 1m20s elapsed]
azurerm_virtual_machine.test[1]: Still destroying... [id=/subscriptions/f8764f39-01ee-4631-9941-...rosoft.Compute/virtualMachines/acctvm1, 1m20s elapsed]
azurerm_virtual_machine.test[0]: Still destroying... [id=/subscriptions/f8764f39-01ee-4631-9941-...rosoft.Compute/virtualMachines/acctvm0, 1m30s elapsed]
azurerm_virtual_machine.test[1]: Still destroying... [id=/subscriptions/f8764f39-01ee-4631-9941-...rosoft.Compute/virtualMachines/acctvm1, 1m30s elapsed]
azurerm_virtual_machine.test[1]: Destruction complete after 1m31s
azurerm_virtual_machine.test[0]: Still destroying... [id=/subscriptions/f8764f39-01ee-4631-9941-...rosoft.Compute/virtualMachines/acctvm0, 1m40s elapsed]
azurerm_virtual_machine.test[0]: Still destroying... [id=/subscriptions/f8764f39-01ee-4631-9941-...rosoft.Compute/virtualMachines/acctvm0, 1m50s elapsed]
azurerm_virtual_machine.test[0]: Still destroying... [id=/subscriptions/f8764f39-01ee-4631-9941-...rosoft.Compute/virtualMachines/acctvm0, 2m0s elapsed]
azurerm_virtual_machine.test[0]: Still destroying... [id=/subscriptions/f8764f39-01ee-4631-9941-...rosoft.Compute/virtualMachines/acctvm0, 2m10s elapsed]
azurerm_virtual_machine.test[0]: Still destroying... [id=/subscriptions/f8764f39-01ee-4631-9941-...rosoft.Compute/virtualMachines/acctvm0, 2m20s elapsed]
azurerm_virtual_machine.test[0]: Still destroying... [id=/subscriptions/f8764f39-01ee-4631-9941-...rosoft.Compute/virtualMachines/acctvm0, 2m30s elapsed]
azurerm_virtual_machine.test[0]: Destruction complete after 2m31s
azurerm_availability_set.avset: Destroying... [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Compute/availabilitySets/avset]
azurerm_managed_disk.test[0]: Destroying... [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Compute/disks/datadisk_existing_0]
azurerm_network_interface.test[1]: Destroying... [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Network/networkInterfaces/acctni1]
azurerm_network_interface.test[0]: Destroying... [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Network/networkInterfaces/acctni0]
azurerm_managed_disk.test[1]: Destroying... [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Compute/disks/datadisk_existing_1]
azurerm_availability_set.avset: Destruction complete after 1s
azurerm_network_interface.test[1]: Still destroying... [id=/subscriptions/f8764f39-01ee-4631-9941-...soft.Network/networkInterfaces/acctni1, 10s elapsed]
azurerm_managed_disk.test[0]: Still destroying... [id=/subscriptions/f8764f39-01ee-4631-9941-...soft.Compute/disks/datadisk_existing_0, 10s elapsed]
azurerm_managed_disk.test[1]: Still destroying... [id=/subscriptions/f8764f39-01ee-4631-9941-...soft.Compute/disks/datadisk_existing_1, 10s elapsed]
azurerm_network_interface.test[0]: Still destroying... [id=/subscriptions/f8764f39-01ee-4631-9941-...soft.Network/networkInterfaces/acctni0, 10s elapsed]
azurerm_network_interface.test[1]: Destruction complete after 10s
azurerm_managed_disk.test[0]: Still destroying... [id=/subscriptions/f8764f39-01ee-4631-9941-...soft.Compute/disks/datadisk_existing_0, 20s elapsed]
azurerm_managed_disk.test[1]: Still destroying... [id=/subscriptions/f8764f39-01ee-4631-9941-...soft.Compute/disks/datadisk_existing_1, 20s elapsed]
azurerm_network_interface.test[0]: Still destroying... [id=/subscriptions/f8764f39-01ee-4631-9941-...soft.Network/networkInterfaces/acctni0, 20s elapsed]
azurerm_network_interface.test[0]: Destruction complete after 21s
azurerm_lb_backend_address_pool.test: Destroying... [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Network/loadBalancers/loadBalancer/backendAddressPools/BackEndAddressPool]
azurerm_subnet.test: Destroying... [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Network/virtualNetworks/acctvn/subnets/acctsub]
azurerm_lb_backend_address_pool.test: Destruction complete after 0s
azurerm_lb.test: Destroying... [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Network/loadBalancers/loadBalancer]
azurerm_lb.test: Destruction complete after 0s
azurerm_public_ip.test: Destroying... [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Network/publicIPAddresses/publicIPForLB]
azurerm_managed_disk.test[0]: Still destroying... [id=/subscriptions/f8764f39-01ee-4631-9941-...soft.Compute/disks/datadisk_existing_0, 30s elapsed]
azurerm_managed_disk.test[1]: Still destroying... [id=/subscriptions/f8764f39-01ee-4631-9941-...soft.Compute/disks/datadisk_existing_1, 30s elapsed]
azurerm_subnet.test: Still destroying... [id=/subscriptions/f8764f39-01ee-4631-9941-...virtualNetworks/acctvn/subnets/acctsub, 10s elapsed]
azurerm_subnet.test: Destruction complete after 10s
azurerm_virtual_network.test: Destroying... [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg/providers/Microsoft.Network/virtualNetworks/acctvn]
azurerm_public_ip.test: Still destroying... [id=/subscriptions/f8764f39-01ee-4631-9941-...etwork/publicIPAddresses/publicIPForLB, 10s elapsed]
azurerm_managed_disk.test[0]: Still destroying... [id=/subscriptions/f8764f39-01ee-4631-9941-...soft.Compute/disks/datadisk_existing_0, 40s elapsed]
azurerm_managed_disk.test[1]: Still destroying... [id=/subscriptions/f8764f39-01ee-4631-9941-...soft.Compute/disks/datadisk_existing_1, 40s elapsed]
azurerm_virtual_network.test: Still destroying... [id=/subscriptions/f8764f39-01ee-4631-9941-...crosoft.Network/virtualNetworks/acctvn, 10s elapsed]
azurerm_virtual_network.test: Destruction complete after 10s
azurerm_public_ip.test: Still destroying... [id=/subscriptions/f8764f39-01ee-4631-9941-...etwork/publicIPAddresses/publicIPForLB, 20s elapsed]
azurerm_managed_disk.test[1]: Still destroying... [id=/subscriptions/f8764f39-01ee-4631-9941-...soft.Compute/disks/datadisk_existing_1, 50s elapsed]
azurerm_managed_disk.test[0]: Still destroying... [id=/subscriptions/f8764f39-01ee-4631-9941-...soft.Compute/disks/datadisk_existing_0, 50s elapsed]
azurerm_public_ip.test: Still destroying... [id=/subscriptions/f8764f39-01ee-4631-9941-...etwork/publicIPAddresses/publicIPForLB, 30s elapsed]
azurerm_managed_disk.test[0]: Still destroying... [id=/subscriptions/f8764f39-01ee-4631-9941-...soft.Compute/disks/datadisk_existing_0, 1m0s elapsed]
azurerm_managed_disk.test[1]: Still destroying... [id=/subscriptions/f8764f39-01ee-4631-9941-...soft.Compute/disks/datadisk_existing_1, 1m0s elapsed]
azurerm_managed_disk.test[0]: Destruction complete after 1m0s
azurerm_managed_disk.test[1]: Destruction complete after 1m1s
azurerm_public_ip.test: Still destroying... [id=/subscriptions/f8764f39-01ee-4631-9941-...etwork/publicIPAddresses/publicIPForLB, 40s elapsed]
azurerm_public_ip.test: Still destroying... [id=/subscriptions/f8764f39-01ee-4631-9941-...etwork/publicIPAddresses/publicIPForLB, 50s elapsed]
azurerm_public_ip.test: Still destroying... [id=/subscriptions/f8764f39-01ee-4631-9941-...etwork/publicIPAddresses/publicIPForLB, 1m0s elapsed]
azurerm_public_ip.test: Still destroying... [id=/subscriptions/f8764f39-01ee-4631-9941-...etwork/publicIPAddresses/publicIPForLB, 1m10s elapsed]
azurerm_public_ip.test: Still destroying... [id=/subscriptions/f8764f39-01ee-4631-9941-...etwork/publicIPAddresses/publicIPForLB, 1m20s elapsed]
azurerm_public_ip.test: Still destroying... [id=/subscriptions/f8764f39-01ee-4631-9941-...etwork/publicIPAddresses/publicIPForLB, 1m30s elapsed]
azurerm_public_ip.test: Still destroying... [id=/subscriptions/f8764f39-01ee-4631-9941-...etwork/publicIPAddresses/publicIPForLB, 1m40s elapsed]
azurerm_public_ip.test: Destruction complete after 1m40s
azurerm_resource_group.test: Destroying... [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg]
azurerm_resource_group.test: Still destroying... [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg, 10s elapsed]
azurerm_resource_group.test: Still destroying... [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg, 20s elapsed]
azurerm_resource_group.test: Still destroying... [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg, 30s elapsed]
azurerm_resource_group.test: Still destroying... [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg, 40s elapsed]
azurerm_resource_group.test: Still destroying... [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg, 50s elapsed]
azurerm_resource_group.test: Still destroying... [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg, 1m0s elapsed]
azurerm_resource_group.test: Still destroying... [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg, 1m10s elapsed]
azurerm_resource_group.test: Still destroying... [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg, 1m20s elapsed]
azurerm_resource_group.test: Still destroying... [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg, 1m30s elapsed]
azurerm_resource_group.test: Still destroying... [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg, 1m40s elapsed]
azurerm_resource_group.test: Still destroying... [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg, 1m50s elapsed]
azurerm_resource_group.test: Still destroying... [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg, 2m0s elapsed]
azurerm_resource_group.test: Still destroying... [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg, 2m10s elapsed]
azurerm_resource_group.test: Still destroying... [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg, 2m20s elapsed]
azurerm_resource_group.test: Still destroying... [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg, 2m30s elapsed]
azurerm_resource_group.test: Still destroying... [id=/subscriptions/f8764f39-xxxx-xxxx-xxxx-77b286ed971b/resourceGroups/acctestrg, 2m40s elapsed]
azurerm_resource_group.test: Destruction complete after 2m46s
Destroy complete! Resources: 13 destroyed.
'Azure와 함께 하는 DevOps' 카테고리의 다른 글
20 Terraform을 사용하여 Packer 사용자 지정 이미지에서 Azure 가상 머신 확장 집합 만들기 (0) | 2020.02.24 |
---|---|
19 Terraform을 사용하여 Azure 가상 머신 확장 집합 만들기 (0) | 2020.02.17 |
17 모듈 레지스트리를 사용하여 Terraform으로 Azure VM 클러스터 만들기 (0) | 2020.02.03 |
16 Terraform을 사용하여 Azure Kubernetes Service에 Application Gateway Ingress Controller 만들기 (0) | 2020.01.28 |
15 Terraform을 사용하여 Azure Kubernetes Service로 Kubernetes 클러스터 만들기 (0) | 2020.01.20 |