Open sundium opened 2 months ago
When removing a copilot studio bot resource, it's not getting deleted from the target Power Platform environment, even the tfstate says so.
Steps to reproduce the behavior:
resource "powerplatform_data_record" "sample_bot" { environment_id = powerplatform_environment.dev.id table_logical_name = "bot" columns = { name = var.copilot_name // e.g. test01 schemaname = var.copilot_schemaname // e.g. new_test01 template = var.copilot_template_version // default-2.1.0 } }
If applicable, add terraform code to help explain your problem.
A clear and concise description of what you expected to happen.
When creating a Copilot Studio bot, it creates several records across multiple tables
bot
botcomponent
I speculate it the botcomponent records would prevent the deletion of the bot records due to referential integrity.
Do you plan to raise a PR to address this issue? YES
Thunder client HTTP action call for validation in environment.
thunder-collection_Create Bot (template).json
Describe the bug
When removing a copilot studio bot resource, it's not getting deleted from the target Power Platform environment, even the tfstate says so.
To Reproduce
Steps to reproduce the behavior:
Sample Terraform Code
resource "powerplatform_data_record" "sample_bot" { environment_id = powerplatform_environment.dev.id table_logical_name = "bot" columns = { name = var.copilot_name // e.g. test01 schemaname = var.copilot_schemaname // e.g. new_test01 template = var.copilot_template_version // default-2.1.0 } }
If applicable, add terraform code to help explain your problem.
Expected behaviour
A clear and concise description of what you expected to happen.
System Information
Additional context
When creating a Copilot Studio bot, it creates several records across multiple tables
bot
for the Copilot recordbotcomponent
for topics, global variables etc.I speculate it the botcomponent records would prevent the deletion of the bot records due to referential integrity.
Contribution
Do you plan to raise a PR to address this issue? YES