microsoft / power-platform-terraform-quickstarts

Examples for using the Power Platform Terraform Provider
https://github.com/microsoft/terraform-provider-power-platform
MIT License
20 stars 3 forks source link

Quickstart main.tf files do not include the new 'dataverse' object #64

Closed ianjensenisme closed 4 months ago

ianjensenisme commented 4 months ago

Describe the bug

Many environment quickstarts need to be updated to include the new 'dataverse' block of properties (see the example in the registry documentation for current correct usage), and they are non-functional until this issue is resolved.

To Reproduce

Steps to reproduce the behavior:

  1. Try to run any of the quickstarts.
  2. Observe errors due to unexpected/missing properties related to the missing dataverse map in any of the main.tf files.

Sample Terraform Code

If applicable, add terraform code to help explain your problem.

Current state:

resource "powerplatform_environment" "dev" {
  location          = "unitedstates"
  language_code     = 1033
  display_name      = "terraformdev"
  currency_code     = "USD"
  environment_type  = "Sandbox"
  security_group_id = var.dev_environment_access_group_id
}

Approximate desired state:

resource "powerplatform_environment" "dev" {
  location          = "unitedstates"
  display_name      = "terraformdev"
  environment_type  = "Sandbox"
  dataverse = {
       language_code     = 1033
       currency_code     = "USD"
       domain = "mydomain"
       security_group_id = var.dev_environment_access_group_id
  }
}

Expected behavior

A clear and concise description of what you expected to happen.

System Information

Additional context

Add any other context about the problem here.

Contribution

Contribution

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