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-20261123-132500.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: new-items
body: Add support for DeploymentPlan item type
time: 2026-11-23T13:25:00.000000000+02:00
custom:
Author: aviatco
AuthorLink: https://github.com/aviatco
1 change: 1 addition & 0 deletions docs/essentials/resource_types.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Item types are the primary content resources within Fabric workspaces. Each type
| `.Eventstream` | Real-time data streams |
| `.Dashboard` | Interactive dashboards |
| `.Datamart` | Self-service data marts |
| `.DeploymentPlan` | Ordered deployments and actions |
| `.CopyJob` | Data copy operations |
| `.Environment` | Spark environments |
| `.MLExperiment` | Machine learning experiments |
Expand Down
2 changes: 2 additions & 0 deletions docs/examples/item_examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ fab set ws1.Workspace/rep1.Report -q definition.parts[0].payload.datasetReferenc
- `.Eventhouse`, `.Eventstream`
- `.MirroredDatabase`, `.Reflex`
- `.DigitalTwinBuilder`, `.DigitalTwinBuilderFlow`, `.Map`, `.MountedDataFactory`, `.CopyJob`, `.VariableLibrary`
- `.DeploymentPlan`


#### Copy Item to Workspace
Expand Down Expand Up @@ -330,6 +331,7 @@ fab export ws1.Workspace/nb1.Notebook -o /tmp
- `.Reflex`, `.DigitalTwinBuilder`, `.DigitalTwinBuilderFlow`, `.Map`, `.MountedDataFactory`, `.CopyJob`, `.VariableLibrary`
- `.GraphModel`, `.Ontology`
- `.AnomalyDetector`, `.DataBuildToolJob`, `.EventSchemaSet`, `.OrgApp`, `.OrgAppAudience`, `.Plan`
- `.DeploymentPlan`


#### 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 @@ -150,6 +150,7 @@ commands:
- folder
- onelake
supported_items: # same as export
- deployment_plan
- report
- spark_job_definition
- semantic_model
Expand Down Expand Up @@ -190,6 +191,7 @@ commands:
- onelake
- local_path
supported_items: # same as export
- deployment_plan
- report
- spark_job_definition
- semantic_model
Expand Down Expand Up @@ -256,6 +258,7 @@ commands:
supported_elements:
- workspace
supported_items:
- deployment_plan
- report
- spark_job_definition
- semantic_model
Expand Down Expand Up @@ -292,6 +295,7 @@ commands:
- data_build_tool_job
import:
supported_items:
- deployment_plan
- report
- spark_job_definition
- semantic_model
Expand Down
7 changes: 7 additions & 0 deletions src/fabric_cli/core/fab_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ class ItemType(_BaseItemType):
DATAMART = "Datamart"
DATA_BUILD_TOOL_JOB = "DataBuildToolJob"
DATA_PIPELINE = "DataPipeline"
DEPLOYMENT_PLAN = "DeploymentPlan"
DIGITAL_TWIN_BUILDER = "DigitalTwinBuilder"
DIGITAL_TWIN_BUILDER_FLOW = "DigitalTwinBuilderFlow"
ENVIRONMENT = "Environment"
Expand Down Expand Up @@ -513,6 +514,7 @@ class MirroredDatabaseFolders(Enum):
ItemType.DATA_BUILD_TOOL_JOB: "dataBuildToolJobs",
ItemType.DATA_PIPELINE: "dataPipelines",
ItemType.DATAMART: "datamarts",
ItemType.DEPLOYMENT_PLAN: "deploymentPlans",
Comment thread
aviatco marked this conversation as resolved.
Resolved
ItemType.DIGITAL_TWIN_BUILDER: "digitalTwinBuilders",
ItemType.DIGITAL_TWIN_BUILDER_FLOW: "digitalTwinBuilderFlows",
ItemType.ENVIRONMENT: "environments",
Expand Down Expand Up @@ -571,6 +573,7 @@ class MirroredDatabaseFolders(Enum):
ItemType.DATAMART: "datamarts",
ItemType.DATA_BUILD_TOOL_JOB: "dbtitems",
ItemType.DATA_PIPELINE: "pipelines",
ItemType.DEPLOYMENT_PLAN: "deployment-plans",
ItemType.DIGITAL_TWIN_BUILDER: "digital-twin-builder",
ItemType.DIGITAL_TWIN_BUILDER_FLOW: "digital-twin-builder-flow",
ItemType.ENVIRONMENT: "sparkenvironments",
Expand Down Expand Up @@ -612,6 +615,10 @@ class MirroredDatabaseFolders(Enum):
# Item Payload definition

definition_format_mapping = {
ItemType.DEPLOYMENT_PLAN: {
"default": "",
"DeploymentPlanFormat": "DeploymentPlanFormat",
},
ItemType.SPARK_JOB_DEFINITION: {
"default": "SparkJobDefinitionV1",
"SparkJobDefinitionV1": "SparkJobDefinitionV1",
Expand Down
21 changes: 21 additions & 0 deletions tests/test_commands/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,15 @@
ItemType.ORG_APP,
# ItemType.PLAN,
ItemType.DATA_BUILD_TOOL_JOB,
ItemType.DEPLOYMENT_PLAN,
]

item_type_paramerter = pytest.mark.parametrize("item_type", ALL_ITEM_TYPES)

basic_item_parametrize = pytest.mark.parametrize(
"item_type",
[
ItemType.DEPLOYMENT_PLAN,
ItemType.DATA_PIPELINE,
ItemType.ENVIRONMENT,
ItemType.EVENTSTREAM,
Expand Down Expand Up @@ -116,6 +118,7 @@
import_update_existing_item_success_params = pytest.mark.parametrize(
"item_type",
[
ItemType.DEPLOYMENT_PLAN,
ItemType.DATA_PIPELINE,
ItemType.ENVIRONMENT,
ItemType.EVENTSTREAM,
Expand Down Expand Up @@ -168,6 +171,7 @@
ItemType.EVENT_SCHEMA_SET,
ItemType.ORG_APP,
# ItemType.PLAN,
ItemType.DEPLOYMENT_PLAN,
],
)

Expand Down Expand Up @@ -234,6 +238,7 @@
mv_item_to_item_success_params = pytest.mark.parametrize(
"item_type",
[
ItemType.DEPLOYMENT_PLAN,
ItemType.DATA_PIPELINE,
ItemType.KQL_DASHBOARD,
ItemType.KQL_QUERYSET,
Expand Down Expand Up @@ -276,6 +281,7 @@
mv_item_within_workspace_rename_success_params = pytest.mark.parametrize(
"item_type",
[
ItemType.DEPLOYMENT_PLAN,
ItemType.DATA_PIPELINE,
ItemType.KQL_DASHBOARD,
ItemType.KQL_QUERYSET,
Expand Down Expand Up @@ -360,6 +366,7 @@
set_item_metadata_for_all_types_success_item_params = pytest.mark.parametrize(
"item_type",
[
ItemType.DEPLOYMENT_PLAN,
ItemType.DATA_PIPELINE,
ItemType.ENVIRONMENT,
ItemType.EVENTSTREAM,
Expand Down Expand Up @@ -437,6 +444,7 @@
export_item_with_extension_parameters = pytest.mark.parametrize(
"item_type,expected_file_extension",
[
(ItemType.DEPLOYMENT_PLAN, ".yml"),
(ItemType.NOTEBOOK, ".ipynb"),
(ItemType.SPARK_JOB_DEFINITION, ".json"),
(ItemType.DATA_PIPELINE, ".json"),
Expand All @@ -461,6 +469,7 @@
export_item_types_parameters = pytest.mark.parametrize(
"item_type",
[
ItemType.DEPLOYMENT_PLAN,
ItemType.NOTEBOOK,
ItemType.SPARK_JOB_DEFINITION,
ItemType.DATA_PIPELINE,
Expand Down Expand Up @@ -495,12 +504,20 @@
(ItemType.SPARK_JOB_DEFINITION, "SparkJobDefinitionV2", [".json"], []),
(ItemType.SEMANTIC_MODEL, "TMDL", [".pbism"], ["definition"]),
(ItemType.SEMANTIC_MODEL, "TMSL", [".pbism", ".bim"], []),
pytest.param(
ItemType.DEPLOYMENT_PLAN,
"DeploymentPlanFormat",
[".yml"],
[],
id="DeploymentPlan-DeploymentPlanFormat",
),
],
)

export_item_default_format_parameters = pytest.mark.parametrize(
"item_type,expected_file_count",
[
(ItemType.DEPLOYMENT_PLAN, 2),
(ItemType.NOTEBOOK, 2), # Default format for notebook is ipynb
(ItemType.SPARK_JOB_DEFINITION, 2),
(ItemType.DATA_PIPELINE, 2),
Expand Down Expand Up @@ -528,6 +545,7 @@
export_item_invalid_format_parameters = pytest.mark.parametrize(
"item_type,invalid_format",
[
(ItemType.DEPLOYMENT_PLAN, ".txt"),
(ItemType.NOTEBOOK, ".txt"),
(ItemType.SPARK_JOB_DEFINITION, ".txt"),
(ItemType.SEMANTIC_MODEL, ".txt"),
Expand Down Expand Up @@ -561,6 +579,7 @@
cp_item_types_success_params = pytest.mark.parametrize(
"item_type",
[
ItemType.DEPLOYMENT_PLAN,
ItemType.DATA_PIPELINE,
ItemType.KQL_DASHBOARD,
ItemType.KQL_QUERYSET,
Expand All @@ -586,6 +605,7 @@
cp_folder_item_types_success_params = pytest.mark.parametrize(
"item_type",
[
ItemType.DEPLOYMENT_PLAN,
ItemType.DATA_PIPELINE,
ItemType.KQL_DASHBOARD,
ItemType.KQL_QUERYSET,
Expand Down Expand Up @@ -632,6 +652,7 @@
ls_folder_content_success_params = pytest.mark.parametrize(
"item_type",
[
ItemType.DEPLOYMENT_PLAN,
ItemType.DATA_PIPELINE,
ItemType.ENVIRONMENT,
ItemType.EVENTHOUSE,
Expand Down
Loading