-
Notifications
You must be signed in to change notification settings - Fork 19
Description
🐛 What happened?
I'm running pipeline using Managed Identity having Workspace Contributor rights on "Workspace-Team1-2-DEV" workspace.
I expect that data "fabric_workspace" will return information about workspace without necessity of having Fabric Capacity Admin rights (which quite often is shared).
🔬 How to reproduce?
- Grant account Contributor only for the workspace.
- Allow account in developer settings for API queries.
- Run TF code
data "fabric_workspace" "workspace_details" {
display_name = "Workspace-Team1-2-DEV"
}
-
It will end up with error:
╷
│ Error: Read operation
│
│ with data.fabric_workspace.workspace_details,
│ on main.tf line 3, in data "fabric_workspace" "workspace_details":
│ 3: data "fabric_workspace" "workspace_details" {
│
│ Unable to find Capacity with 'id': 4a4c7882-d123-4c99-b9da-11111111 -
After granting for the same user Fabric Capacity Admin role, the code executes properly and returns workspace details:
- workspace_details = {
+ capacity_assignment_progress = "Completed"
+ capacity_id = "4a4c7882-d123-4c99-b9da-11111111"
+ capacity_region = "Germany West Central"
+ description = "POC"
+ display_name = "Workspace-Team1-2-DEV"
+ id = "3213321-3232-32332-323232-3232-3232"
+ identity = null
+ onelake_endpoints = {
+ blob_endpoint = "https://germanywestcentral-onelake.blob.fabric.microsoft.com"/
+ dfs_endpoint = "https://germanywestcentral-onelake.dfs.fabric.microsoft.com"/
}
+ timeouts = null
+ type = "Workspace"
}
🏗️ Code Sample / Log
code:
data "fabric_workspace" "workspace_details" {
display_name = "Workspace-Team1-2-DEV"
}
error:
│ Error: Read operation
│
│ with data.fabric_workspace.workspace_details,
│ on main.tf line 3, in data "fabric_workspace" "workspace_details":
│ 3: data "fabric_workspace" "workspace_details" {
│
│ Unable to find Capacity with 'id': 4a4c7882-d123-4c99-b9da-11111111
📷 Screenshots
No response
📈 Expected behavior
Account having workspace level permission, should be able to read workspace details without necessity of having admin rights on the Fabric Capacity.
🌌 Environment (Provider Version)
1.6.0
🌌 Environment (Terraform Version)
1.12.2
🌌 Environment (OS)
Linux
📎 Additional context
No response
🔰 Code of Conduct
- I agree to follow this project's Code of Conduct.