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

unable to create azurerm_bot_channel_directline #20892

Closed
1 task done
guptaaayush8 opened this issue Mar 10, 2023 · 3 comments · Fixed by #20890
Closed
1 task done

unable to create azurerm_bot_channel_directline #20892

guptaaayush8 opened this issue Mar 10, 2023 · 3 comments · Fixed by #20890

Comments

@guptaaayush8
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

1.3.1

AzureRM Provider Version

3.47.0

Affected Resource(s)/Data Source(s)

azurerm_bot_channel_directline

Terraform Configuration Files

provider "azurerm" {
  features {}
}

resource "azurerm_resource_group" "test" {
  name     = "acctestRG-bot-test07"
  location = "eastus2"
}

resource "azurerm_user_assigned_identity" "example" {
  location            = azurerm_resource_group.test.location
  name                = "example"
  resource_group_name = azurerm_resource_group.test.name
}

resource "azurerm_bot_channels_registration" "test" {
  name                = "acctestdftest07"
  location            = "global"
  resource_group_name = azurerm_resource_group.test.name
  sku                 = "F0"
  microsoft_app_id    = resource.azurerm_user_assigned_identity.example.client_id
}

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    = "SomeSite"
    enabled = true
  }
}

Debug Output/Panic Output

│ Error: creating Directline Channel for Bot "acctestdftest07" (Resource Group "acctestRG-bot-test07"): botservice.ChannelsClient#Create: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="Site Name  Duplicate" Message="DirectLine Channel site name duplicate"

Expected Behaviour

DirectLine channel site should get created.

Actual Behaviour

No response

Steps to Reproduce

  1. terraform init
  2. terraform apply

Important Factoids

No response

References

No response

@github-actions github-actions bot removed the bug label Mar 10, 2023
@neil-yechenwei
Copy link
Contributor

Thanks for raising this issue. This PR (#20890) is fixing this issue.

@github-actions
Copy link

This functionality has been released in v3.48.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
4 participants