Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changes/unreleased/new-items-20260331-075150.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: new-items
body: Add export and import commands support for DigitalTwinBuilder item type
time: 2026-03-31T07:51:50.000000000Z
custom:
Author: ayeshurun
AuthorLink: https://github.com/ayeshurun
4 changes: 2 additions & 2 deletions docs/examples/item_examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ fab set ws1.Workspace/rep1.Report -q definition.parts[0].payload.datasetReferenc
- `.KQLDatabase`, `.KQLDashboard`, `.KQLQueryset`
- `.Eventhouse`, `.Eventstream`
- `.MirroredDatabase`, `.Reflex`
- `.Map`, `.MountedDataFactory`, `.CopyJob`, `.VariableLibrary`
- `.DigitalTwinBuilder`, `.Map`, `.MountedDataFactory`, `.CopyJob`, `.VariableLibrary`


#### Copy Item to Workspace
Expand Down Expand Up @@ -324,7 +324,7 @@ fab export ws1.Workspace/nb1.Notebook -o /tmp
- `.Report`, `.SemanticModel`
- `.KQLDatabase`, `.KQLDashboard`, `.KQLQueryset`
- `.Eventhouse`, `.Eventstream`, `.MirroredDatabase`
- `.Reflex`, `.Map`, `.MountedDataFactory`, `.CopyJob`, `.VariableLibrary`
- `.Reflex`, `.DigitalTwinBuilder`, `.Map`, `.MountedDataFactory`, `.CopyJob`, `.VariableLibrary`


#### Export to Lakehouse
Expand Down
4 changes: 4 additions & 0 deletions src/fabric_cli/core/fab_config/command_support.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ commands:
# - kql_database
- mirrored_database
- cosmos_db_database
# - digital_twin_builder
Comment thread
ayeshurun marked this conversation as resolved.
- reflex
# - eventstream
- mounted_data_factory
Expand Down Expand Up @@ -190,6 +191,7 @@ commands:
# - kql_database
- mirrored_database
- cosmos_db_database
# - digital_twin_builder
Comment thread
ayeshurun marked this conversation as resolved.
- reflex
# - eventstream
- mounted_data_factory
Expand Down Expand Up @@ -253,6 +255,7 @@ commands:
- dataflow
- sql_database
- cosmos_db_database
- digital_twin_builder
Comment thread
ayeshurun marked this conversation as resolved.
- user_data_function
- graph_query_set
- map
Expand All @@ -279,6 +282,7 @@ commands:
- dataflow
- sql_database
- cosmos_db_database
- digital_twin_builder
Comment thread
ayeshurun marked this conversation as resolved.
- user_data_function
- map
- lakehouse
Expand Down
1 change: 1 addition & 0 deletions src/fabric_cli/core/fab_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,7 @@ class MirroredDatabaseFolders(Enum):
"TMSL": "TMSL",
},
ItemType.COSMOS_DB_DATABASE: {"default": ""},
ItemType.DIGITAL_TWIN_BUILDER: {"default": ""},
ItemType.USER_DATA_FUNCTION: {"default": ""},
ItemType.GRAPH_QUERY_SET: {"default": ""},
ItemType.VARIABLE_LIBRARY: {"default": ""},
Expand Down
6 changes: 5 additions & 1 deletion tests/test_commands/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
ItemType.DATA_PIPELINE, ItemType.ENVIRONMENT, ItemType.EVENTSTREAM,
ItemType.KQL_DASHBOARD, ItemType.KQL_QUERYSET, ItemType.ML_EXPERIMENT,
ItemType.NOTEBOOK, ItemType.REFLEX, ItemType.SPARK_JOB_DEFINITION,
ItemType.USER_DATA_FUNCTION, ItemType.DIGITAL_TWIN_BUILDER, ItemType.MAP
ItemType.USER_DATA_FUNCTION, ItemType.MAP, ItemType.DIGITAL_TWIN_BUILDER
])

set_item_metadata_success_params = pytest.mark.parametrize(
Expand Down Expand Up @@ -244,6 +244,7 @@
(ItemType.COSMOS_DB_DATABASE, ".json"),
(ItemType.USER_DATA_FUNCTION, ".json"),
(ItemType.GRAPH_QUERY_SET, ".json"),
(ItemType.DIGITAL_TWIN_BUILDER, ".json"),
(ItemType.MAP, ".json"),
(ItemType.LAKEHOUSE, ".json")
])
Expand All @@ -259,6 +260,7 @@
ItemType.COSMOS_DB_DATABASE,
ItemType.USER_DATA_FUNCTION,
ItemType.GRAPH_QUERY_SET,
ItemType.DIGITAL_TWIN_BUILDER,
ItemType.MAP,
ItemType.LAKEHOUSE
])
Expand Down Expand Up @@ -286,6 +288,7 @@
(ItemType.COSMOS_DB_DATABASE, 2),
(ItemType.USER_DATA_FUNCTION, 2),
(ItemType.GRAPH_QUERY_SET, 2),
(ItemType.DIGITAL_TWIN_BUILDER, 2),
(ItemType.LAKEHOUSE, 4)
])

Expand All @@ -298,6 +301,7 @@
(ItemType.COSMOS_DB_DATABASE, ".txt"),
(ItemType.USER_DATA_FUNCTION, ".txt"),
(ItemType.GRAPH_QUERY_SET, ".txt"),
(ItemType.DIGITAL_TWIN_BUILDER, ".txt"),
(ItemType.LAKEHOUSE, ".txt")
])

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ interactions:
Content-Type:
- application/json
User-Agent:
- ms-fabric-cli/1.4.0 (None; Linux; x86_64; 6.6.87.2-microsoft-standard-WSL2)
- ms-fabric-cli/1.5.0 (cp; Linux; x86_64; 6.6.87.2-microsoft-standard-WSL2)
Comment thread
ayeshurun marked this conversation as resolved.
method: GET
uri: https://api.fabric.microsoft.com/v1/workspaces
response:
Expand All @@ -26,15 +26,15 @@ interactions:
Content-Encoding:
- gzip
Content-Length:
- '1559'
- '2016'
Content-Type:
- application/json; charset=utf-8
Date:
- Tue, 17 Mar 2026 09:24:27 GMT
- Tue, 31 Mar 2026 09:08:42 GMT
Pragma:
- no-cache
RequestId:
- ba83cdf6-ab16-49c0-87f0-3ea2d7f6c3e9
- 9d4adfb5-3efc-44ba-9c2d-d60c7ffcc2f7
Strict-Transport-Security:
- max-age=31536000; includeSubDomains
X-Content-Type-Options:
Expand All @@ -60,7 +60,7 @@ interactions:
Content-Type:
- application/json
User-Agent:
- ms-fabric-cli/1.4.0 (None; Linux; x86_64; 6.6.87.2-microsoft-standard-WSL2)
- ms-fabric-cli/1.5.0 (cp; Linux; x86_64; 6.6.87.2-microsoft-standard-WSL2)
method: GET
uri: https://api.fabric.microsoft.com/v1/workspaces
response:
Expand All @@ -75,15 +75,15 @@ interactions:
Content-Encoding:
- gzip
Content-Length:
- '1559'
- '2016'
Content-Type:
- application/json; charset=utf-8
Date:
- Tue, 17 Mar 2026 09:24:28 GMT
- Tue, 31 Mar 2026 09:08:42 GMT
Pragma:
- no-cache
RequestId:
- ec8b75e4-b2ef-4925-a7e6-28592c9fcbbb
- dfbdb44b-a668-4c16-acde-d51a7aecea1b
Strict-Transport-Security:
- max-age=31536000; includeSubDomains
X-Content-Type-Options:
Expand All @@ -109,7 +109,7 @@ interactions:
Content-Type:
- application/json
User-Agent:
- ms-fabric-cli/1.4.0 (None; Linux; x86_64; 6.6.87.2-microsoft-standard-WSL2)
- ms-fabric-cli/1.5.0 (cp; Linux; x86_64; 6.6.87.2-microsoft-standard-WSL2)
method: GET
uri: https://api.fabric.microsoft.com/v1/capacities
response:
Expand All @@ -125,15 +125,15 @@ interactions:
Content-Encoding:
- gzip
Content-Length:
- '427'
- '425'
Content-Type:
- application/json; charset=utf-8
Date:
- Tue, 17 Mar 2026 09:24:33 GMT
- Tue, 31 Mar 2026 09:08:48 GMT
Pragma:
- no-cache
RequestId:
- 4abbe093-02de-47e3-8abe-bd10012c84ff
- bd2de8ab-8d64-4f7a-a570-824a5883e82f
Strict-Transport-Security:
- max-age=31536000; includeSubDomains
X-Content-Type-Options:
Expand Down Expand Up @@ -162,12 +162,12 @@ interactions:
Content-Type:
- application/json
User-Agent:
- ms-fabric-cli/1.4.0 (None; Linux; x86_64; 6.6.87.2-microsoft-standard-WSL2)
- ms-fabric-cli/1.5.0 (cp; Linux; x86_64; 6.6.87.2-microsoft-standard-WSL2)
method: POST
uri: https://api.fabric.microsoft.com/v1/workspaces
response:
body:
string: '{"id": "68ee84ee-37e7-4541-a6f6-de5d5cbd1d93", "displayName": "fabriccli_WorkspacePerTestclass_000001",
string: '{"id": "161a43c3-5168-4cae-9de0-c2eaa86ff987", "displayName": "fabriccli_WorkspacePerTestclass_000001",
"description": "Created by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}'
headers:
Access-Control-Expose-Headers:
Expand All @@ -177,17 +177,17 @@ interactions:
Content-Encoding:
- gzip
Content-Length:
- '188'
- '187'
Content-Type:
- application/json; charset=utf-8
Date:
- Tue, 17 Mar 2026 09:24:41 GMT
- Tue, 31 Mar 2026 09:08:56 GMT
Location:
- https://api.fabric.microsoft.com/v1/workspaces/68ee84ee-37e7-4541-a6f6-de5d5cbd1d93
- https://api.fabric.microsoft.com/v1/workspaces/161a43c3-5168-4cae-9de0-c2eaa86ff987
Pragma:
- no-cache
RequestId:
- 465fe8b9-550b-40ba-9fe9-48a9e42e8806
- c4518d83-a58a-4550-993d-81e2f5b6ef46
Strict-Transport-Security:
- max-age=31536000; includeSubDomains
X-Content-Type-Options:
Expand All @@ -213,13 +213,13 @@ interactions:
Content-Type:
- application/json
User-Agent:
- ms-fabric-cli/1.4.0 (cd; Linux; x86_64; 6.6.87.2-microsoft-standard-WSL2)
- ms-fabric-cli/1.5.0 (cd; Linux; x86_64; 6.6.87.2-microsoft-standard-WSL2)
method: GET
uri: https://api.fabric.microsoft.com/v1/workspaces
response:
body:
string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName":
"My workspace", "description": "", "type": "Personal"}, {"id": "68ee84ee-37e7-4541-a6f6-de5d5cbd1d93",
"My workspace", "description": "", "type": "Personal"}, {"id": "161a43c3-5168-4cae-9de0-c2eaa86ff987",
"displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created
by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}'
headers:
Expand All @@ -230,15 +230,15 @@ interactions:
Content-Encoding:
- gzip
Content-Length:
- '1594'
- '2052'
Content-Type:
- application/json; charset=utf-8
Date:
- Tue, 17 Mar 2026 09:24:53 GMT
- Tue, 31 Mar 2026 09:09:30 GMT
Pragma:
- no-cache
RequestId:
- 2bab9f88-6942-480e-9b76-83bc5847863a
- 5fe9ceda-f235-4e31-9208-393fc9a2d053
Strict-Transport-Security:
- max-age=31536000; includeSubDomains
X-Content-Type-Options:
Expand All @@ -264,12 +264,15 @@ interactions:
Content-Type:
- application/json
User-Agent:
- ms-fabric-cli/1.4.0 (cd; Linux; x86_64; 6.6.87.2-microsoft-standard-WSL2)
- ms-fabric-cli/1.5.0 (cd; Linux; x86_64; 6.6.87.2-microsoft-standard-WSL2)
method: GET
uri: https://api.fabric.microsoft.com/v1/workspaces/68ee84ee-37e7-4541-a6f6-de5d5cbd1d93/items
uri: https://api.fabric.microsoft.com/v1/workspaces/161a43c3-5168-4cae-9de0-c2eaa86ff987/items
response:
body:
string: '{"value": []}'
string: '{"value": [{"id": "a26f22c1-3918-49d4-8532-460a0ea16563", "type": "SQLEndpoint",
"displayName": "fabcli000001dtdm", "description": "", "workspaceId": "161a43c3-5168-4cae-9de0-c2eaa86ff987"},
{"id": "66c5153d-c46c-433a-ab82-a7b4e67f9802", "type": "Lakehouse", "displayName":
"fabcli000001dtdm", "description": "", "workspaceId": "161a43c3-5168-4cae-9de0-c2eaa86ff987"}]}'
headers:
Access-Control-Expose-Headers:
- RequestId
Expand All @@ -278,15 +281,15 @@ interactions:
Content-Encoding:
- gzip
Content-Length:
- '32'
- '216'
Content-Type:
- application/json; charset=utf-8
Date:
- Tue, 17 Mar 2026 09:24:54 GMT
- Tue, 31 Mar 2026 09:09:31 GMT
Pragma:
- no-cache
RequestId:
- ef9b7f4a-0d14-4e76-b60f-01c9f7c29af6
- 0a828a4f-797b-4b66-9bd5-62f0b54f360d
Strict-Transport-Security:
- max-age=31536000; includeSubDomains
X-Content-Type-Options:
Expand Down Expand Up @@ -314,9 +317,9 @@ interactions:
Content-Type:
- application/json
User-Agent:
- ms-fabric-cli/1.4.0 (cd; Linux; x86_64; 6.6.87.2-microsoft-standard-WSL2)
- ms-fabric-cli/1.5.0 (cd; Linux; x86_64; 6.6.87.2-microsoft-standard-WSL2)
method: DELETE
uri: https://api.fabric.microsoft.com/v1/workspaces/68ee84ee-37e7-4541-a6f6-de5d5cbd1d93
uri: https://api.fabric.microsoft.com/v1/workspaces/161a43c3-5168-4cae-9de0-c2eaa86ff987
response:
body:
string: ''
Expand All @@ -332,11 +335,11 @@ interactions:
Content-Type:
- application/octet-stream
Date:
- Tue, 17 Mar 2026 09:24:55 GMT
- Tue, 31 Mar 2026 09:09:31 GMT
Pragma:
- no-cache
RequestId:
- fa32d047-311b-422c-ae36-59b0c3da4e62
- 80f03473-3617-4db3-8272-6ced2902b27f
Strict-Transport-Security:
- max-age=31536000; includeSubDomains
X-Content-Type-Options:
Expand Down
Loading
Loading