This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Problem: | |
# tags of network interface card (NIC) attached to a private endpoint (PE) cannot be updated via Terraform (TF) | |
# Root cause analysis: | |
# TF performs a PUT over the NIC, and it | |
# fails with 400 response if the NIC is attached to a PE, possibly | |
# other attachments too. When PATCH is performed via CLI, the NIC tag update works fine | |
# Steps to reproduce: | |
# 1. TF apply the resources with the NIC commented out, when PE is created, it will have a NIC that is not yet onboarded to TF |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
terraform { | |
required_providers { | |
azurerm = { | |
source = "hashicorp/azurerm" | |
version = "4.15.0" | |
} | |
} | |
} | |
provider "azurerm" { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
terraform { | |
required_providers { | |
azurerm = { | |
source = "azurerm" | |
version = "4.0.1" | |
} | |
} | |
} | |
provider "azurerm" { | |
features {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
terraform { | |
required_providers { | |
azurerm = { | |
source = "hashicorp/azurerm" | |
version = "~>4.0.1" | |
} | |
} | |
} | |
provider "azurerm" { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---------------------------------------- | |
// Module/databricks_workspace/main.tf | |
// ---------------------------------------- | |
data "azurerm_resource_group" "gtan_27099" { | |
name = "gtan-27099" | |
} | |
data "azurerm_virtual_network" "gtan_27099_vn" { | |
name = "gtan-27099-vn" | |
resource_group_name = data.azurerm_resource_group.gtan_27099.name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/projects/learning/terraform-playground/gh-26935-simple (master) » terraform apply gtan@twisties | |
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: | |
+ create | |
<= read (data resources) | |
Terraform will perform the following actions: | |
# data.databricks_node_type.smallest will be read during apply | |
# (depends on a resource or a module with changes pending) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
» terraform apply | |
azurerm_resource_group.rg: Refreshing state... [id=/subscriptions/*********************90/resourceGroups/rg_gtan_26935_2] | |
Terraform used the selected providers to generate the following execution | |
plan. Resource actions are indicated with the following symbols: | |
+ create | |
<= read (data resources) | |
Terraform will perform the following actions: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Terraform used the selected providers to generate the following execution | |
plan. Resource actions are indicated with the following symbols: | |
[32m+[0m create[0m | |
[36m<=[0m read (data resources)[0m | |
Terraform will perform the following actions: | |
[1m # data.databricks_spark_version.gpu_ml[0m will be read during apply | |
# (depends on a resource or a module with changes pending) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
terraform { | |
required_providers { | |
azurerm = { | |
source = "hashicorp/azurerm" | |
version = "~>3.0" | |
} | |
databricks = { | |
source = "databricks/databricks" | |
version = "~>1.5.0" |