Closed ikru closed 3 years ago
Closing since this is now available within the site
block: https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/bot_channel_directline#key
Hi @tombuildsstuff,
There are two set of keys in direct line channel:
Thanks
Please reopen?
Hey @tombuildsstuff, @mybayern1974,
Please reopen: There are two set of keys in direct line channel:
Under site key1, key2 - these were always available Under settings extensionKey1, extensionKey2 - these are still missing!!! Please look at the picture and json in the description. Thanks
Thanks @ikru for raising this issue. Seems it's by design. TF would ignore the default site. I assume you have to create bot directline channel with custom site name. Below is a sample.
resource "azurerm_bot_channel_directline" "test" {
bot_name = azurerm_bot_channels_registration.test.name
location = azurerm_bot_channels_registration.test.location
resource_group_name = azurerm_resource_group.test.name
site {
name = "UserCustomTestSite"
enabled = true
}
}
Hi @neil-yechenwei,
Not really it's a separate set if keys for completely different purpose. These keys are there to configure bot for direct line extension. They just need to be added as properties for directline channel.
Please Look at json in my original message: extensionKey1 extensionKey2
They aren't under sites and they have nothing to do with sites.
@ikru , thanks for your clarification. After investigated, I found seems extensionKey1 and extensionKey2 aren't in the properties section of API response. So GO sdk client doesn't handle them. Hence I assume it's Service API problem not TF problem. I raised an issue on azure-rest-api-spec for tracking this question.
Ok, thank you! Can you reopen this one as well to address these keys after api is updated?
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.
Community Note
Description
Hi,
I am using azurerm_bot_channel_directline on ASE and there are two relatively new keys, that are not exposed in the azurerm_bot_channel_directline: extensionKey1, extensionKey2. It would be nice if they were implemented as output, so we could use them as azurerm_bot_channel_directline.mydl.extensionKey1 / azurerm_bot_channel_directline.mydl.extensionKey2 in other resources.
In Azure they are available in direct line settings:
Also it can be retrieved with az cli:
az bot directline show --resource-group MY_RESOURCE_GROUP --name MY-BOT-WEB-APP --with-secrets
Wanted to note, that these are different keys from those available under direct line sites as key1, key2.
Community Note
Description
New or Affected Resource(s)
Potential Terraform Configuration
References
0000