Closed babuga365 closed 1 month ago
Thanks for raising this issue. Seems I can't reproduce this issue with below tf config that is similar with yours. Could you try below tf config to see if the issue still exists?
tf config:
provider "azurerm" {
features {}
}
data "azurerm_client_config" "current" {
}
resource "azurerm_resource_group" "test" {
name = "acctestRG-bot-test01"
location = "westeurope"
}
variable "developer_app_insights_api_key" {
type = string
default = null
}
resource "azurerm_bot_service_azure_bot" "test" {
name = "acctestdftest01"
resource_group_name = azurerm_resource_group.test.name
location = "global"
sku = "F0"
microsoft_app_id = data.azurerm_client_config.current.client_id
developer_app_insights_application_id = var.developer_app_insights_api_key
}
![Uploading image.png…]()
Thanks for raising this issue. Seems I can't reproduce this issue with below tf config that is similar with yours. Could you try below tf config to see if the issue still exists?
Repro steps:
tf apply
with below tf configtf plan
and no difference is foundtf config:
provider "azurerm" {
features {}
}
data "azurerm_client_config" "current" {
}
resource "azurerm_resource_group" "test" {
name = "acctestRG-bot-test01"
location = "westeurope"
}
variable "developer_app_insights_api_key" {
type = string
default = null
}
resource "azurerm_bot_service_azure_bot" "test" {
name = "acctestdftest01"
resource_group_name = azurerm_resource_group.test.name
location = "global"
sku = "F0"
microsoft_app_id = data.azurerm_client_config.current.client_id
developer_app_insights_application_id = var.developer_app_insights_api_key
}
Thanks for your reply and I have found the issue in my configuration. Its working as expected. Hence closing this bug
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Is there an existing issue for this?
Community Note
Terraform Version
1.9
AzureRM Provider Version
4.2.0
Affected Resource(s)/Data Source(s)
azurerm_4.2.0
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
It should show any addition if the parameter value is null as its optional parameter in terraform provider https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/bot_service_azure_bot#developer_app_insights_api_key
Actual Behaviour
Trying to add some sensitive value
Steps to Reproduce
No response
Important Factoids
No response
References
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/bot_service_azure_bot#developer_app_insights_api_key