microsoft / terraform-provider-power-platform

Power Platform Terraform Provider
https://registry.terraform.io/providers/microsoft/power-platform/latest/docs
MIT License
35 stars 10 forks source link

Improve documentation of import functionality #394

Closed MarvinBangert closed 1 month ago

MarvinBangert commented 2 months ago

Description

It would be great to have an "Import" function within the resources, like it is within azurerm functions to import existing infrastructure like environments using Environment ID or DLP. Example from azurerm_application_gateway

Resource

Potential Terraform Configuration

# Sample Terraform config that describes how the new resource might look.

terraform import powerplatform_environment.example
terraform import powerplatform_data_loss_prevention_policy.example

Definition of Done

Contributions

Do you plan to raise a PR to address this issue? NO

See the contributing guide for more information about what's expected for contributions.

rpothin commented 2 months ago

Hi @MarvinBangert,

I hope you are doing well.

If I am not wrong - I will let the maintainers correct me if it is the case - you can already achieve this 😊 It is something I included in a GitHub workflow and you can see the behavior with a previous run.

Have a great weekend. Regards, Raphael

MarvinBangert commented 2 months ago

Hi @rpothin, thanks for your quick reply! I will check this out, didn't found anything in the Terraform docs, so I thought it's not implemented yet.

Have a great start into the week! BR Marvin

mattdot commented 2 months ago

Repurposing this to be a documentation task since this functionality should be already available on the resources.