microsoft / terraform-provider-fabric

Terraform Provider for Microsoft Fabric
https://registry.terraform.io/providers/microsoft/fabric
Mozilla Public License 2.0
26 stars 5 forks source link

[bug] Couldn't create identity with Fabric workspace #93

Open jakeWatsonOakland opened 2 days ago

jakeWatsonOakland commented 2 days ago

🐛 What happened?

When applying the following code:

resource "fabric_workspace" "core_bronze" {
  display_name = "ws-core-bronze-${local.name_suffix}"
  description  = "Core bronze workspace for storing and processing raw data"
  capacity_id  = data.fabric_capacity.this.id
  identity     = {
    type = "SystemAssigned"
  }
}

I got this error: `

Error: Provider produced inconsistent result after apply
│
│ When applying changes to fabric_workspace.core_bronze, provider "provider[\"registry.terraform.io/microsoft/fabric\"]" produced an unexpected new value: .identity: was
│ cty.ObjectVal(map[string]cty.Value{"application_id":cty.UnknownVal(cty.String), "service_principal_id":cty.UnknownVal(cty.String), "type":cty.StringVal("SystemAssigned")}), but now null.

`

This error goes away if you deploy without the identity block in the workspace resource.

🔬 How to reproduce?

No response

🏗️ Code Sample / Log

No response

📷 Screenshots

No response

📈 Expected behavior

On terraform apply, the code should deploy without issue.

🌌 Environment (Provider Version)

0.1.0-beta.5

🌌 Environment (Terraform Version)

1.9.8

🌌 Environment (OS)

Windows

📎 Additional context

Providers used:

+ provider registry.terraform.io/azure/azapi v2.0.1
+ provider registry.terraform.io/hashicorp/azuread v3.0.2
+ provider registry.terraform.io/hashicorp/azurerm v4.10.0
+ provider registry.terraform.io/microsoft/fabric v0.1.0-beta.5

🔰 Code of Conduct

DariuszPorowski commented 2 days ago

Hi @jakeWatsonOakland

Thank you for the bug report. I can confirm that, and we will on that bug.