Generated banner for Dataflows CLI
Generated logo for Dataflows CLI

Dataflows CLI

MicrosoftOfficialPublished by Microsoft

  • Skill
  • Tool integration
  • Automation and integrations
  • MIT
  • Low risk
  • Has scripts

From the author

Manages Fabric Dataflow Gen2 items, including creation, M editing, connections, output destinations, getDefinition and updateDefinition inspection, executeQuery, refresh history, and Gen1-to-Gen2 save-as upgrades via saveAsNativeArtifact. Use for Dataflow items or Power Query M definitions. For pipeline JSON use pipeline-migration; for Spark or Warehouse transformations use their own skills.
— the description by Microsoft

AutoGineer summary

Written by AutoGineer from the skill’s own files, not by the author

The dataflows-cli skill provides a structured interface for interacting with Fabric Dataflow Gen2 items. It operates as a mode-based dispatcher, requiring users to select between authoring, consumption, or upgrade modes. The skill handles complex tasks such as M language definition updates, connection management, output destination configuration, and the migration of legacy Gen1 dataflows to Gen2.1. It emphasizes safe, intentional operations by requiring users to read specific reference documentation before executing state-changing API calls.

What it does

  • Creates and updates Fabric Dataflow Gen2 items and their definitions.
  • Manages connections, credentials, and output destinations for dataflows.
  • Previews Power Query M definitions using executeQuery to validate logic before persistence.
  • Facilitates the upgrade of Gen1 dataflows to Gen2.1 via save-as operations.
  • Retrieves refresh history and inspects existing dataflow definitions.
  • Provides a framework for executing and testing ad-hoc M queries.

When to use it

  • When you need to programmatically create or modify Fabric Dataflow Gen2 items.
  • When performing maintenance on Power Query M definitions or data connections.
  • When migrating legacy Gen1 dataflows to the Gen2.1 architecture.
  • When you need to audit refresh history or validate dataflow configurations.
  • When testing M query logic against live data sources before saving changes.

Advantages

  • Enforces a structured, mode-based workflow to prevent accidental mutations.
  • Provides granular control over Dataflow Gen2 definitions and metadata.
  • Supports complex lifecycle tasks like Gen1-to-Gen2 upgrades.
  • Integrates directly with Fabric REST APIs for automated data pipeline management.

Usage examples

“Show me the refresh history and parameters of the SalesIngest dataflow.”
The agent enters consumption mode, reads the consumption reference, and retrieves the requested refresh history and parameters for the specified dataflow.
“Preview this M query, then save it into the SalesIngest dataflow definition.”
The agent enters authoring mode, previews the M query to validate it, and then executes the updateDefinition call to persist the changes.
“Is my Gen1 dataflow ready to upgrade to Gen2.1?”
The agent enters upgrade mode, performs a readiness assessment, and reports on the risk and requirements for upgrading the specified Gen1 dataflow.

Install

  1. Download the skill as a ZIP:

    https://autogineer.com/agent-skills/microsoft/dataflows-cli/download
  2. Unzip it into the cross-client skills folder of your project:

    mkdir -p .agents/skills && unzip dataflows-cli.zip -d .agents/skills

Documentation by Microsoft

Telemetry — MANDATORY. Every api.fabric.microsoft.com call must carry x-ms-fabric-skill: dataflows-cli (az rest: --headers "x-ms-fabric-skill=dataflows-cli"), including every LRO poll, fabric_lro and retry. Snippets omit it — add it anyway.

CRITICAL NOTES

  1. To find the workspace details (including its ID) from workspace name: list all workspaces and, then, use JMESPath filtering

  2. To find the item details (including its ID) from workspace ID, item type, and item name: list all items of that type in that workspace and, then, use JMESPath filtering

  3. Skill disambiguation: use dataflows-cli for every Fabric Dataflow Gen2 item and Power Query M concern. Synapse / ADF pipeline and dataset JSON translation is pipeline-migration; Spark notebook transformations are spark-cli; T-SQL transformations are sqldw-cli.

Fabric Dataflow Gen2 -- CLI Skill

This one skill owns Fabric Dataflow Gen2 items: connections, Power Query M, output destinations, saved definitions, refresh history, and Gen1 upgrades.

It is a mode dispatcher and contains NO procedures. Pick the mode that matches the request from the table below, then read the matching references/<mode>.md file end to end with your file-reading tool BEFORE issuing a single command. That file holds the endpoints, payload shapes, templates and gotchas; acting without it produces wrong payloads and wrong results.

Read it once per session. A file you have already read stays in context, so do not re-read it on a later turn; open the deeper files under references/<mode>/ only when a row in that file's reference table matches what you still need, and open only that row's file.

Mode selection

ModeUse when the request ...Example triggersRead this first
authoringcreates or changes a dataflow: connections, credentials, M edits previewed before save, output destinations, updateDefinitionexecuteQuery preview, updateDefinition, connection setup, supportedConnectionTypes, credentialType, add output destinationreferences/authoring.md
consumptionreads a saved dataflow: definition, parameters, refresh history, or runs a saved/ad-hoc read-only M query and parses ArrowgetDefinition, executeQuery saved query, ad-hoc query, Arrow IPC, refresh historyreferences/consumption.md
upgradeupgrades a Gen1 dataflow to Gen2.1 via save-as and rebind, or assesses upgrade readiness/riskGen1 Gen2 readiness, saveAsNativeArtifact, clone Gen1 dataflow, upgrade risk assessmentreferences/upgrade.md
Mode boundary rule

consumption is read-only. A preview run that exists to validate M before updateDefinition, and any capability lookup (supportedConnectionTypes, credentialType), belong to authoring even though they issue the same executeQuery call -- classify by intent, not by endpoint.

If a request genuinely spans modes, handle them one at a time and read each reference before you start that part. If the mode is ambiguous after reading this table, ask one short clarifying question instead of guessing.

Terminal write -- the step you must not skip

Reading the reference and planning the change is NOT completing the task. Each mutating mode ends with one state-changing call. If you did not issue it, nothing was persisted -- say so explicitly rather than reporting success.

ModeTerminal write
authoringPOST /v1/workspaces/{ws}/dataflows/{id}/updateDefinition to persist the M, connections and output destinations; a NEW dataflow needs POST /v1/workspaces/{ws}/items (or /dataflows) first. executeQuery is a preview and writes nothing. If the user asked for a refresh, also POST .../jobs/instances?jobType=Refresh.
consumptionnone -- this mode is read-only
upgradesaveAsNativeArtifact to create the Gen2.1 artefact, then rebind. A readiness report alone does not upgrade anything.

Before you report the task done, confirm the terminal call returned success and, where the reference documents a readback, read the artefact back to prove the change landed.

upgrade generation boundary -- HARD STOP (mandatory)

Save-as runs only from Gen1 to Gen2.1. For an execution request whose source is Gen2, or whose source generation is not established, state that no public save-as or in-place upgrade endpoint is available and stop before any API call. This does not block a read-only readiness scan whose purpose is to discover and classify Gen1 candidates.

Do not read "choose the closest endpoint and proceed" as approval to export a definition and create a copy, do not switch to authoring to do it instead, and do not mutate anything. Ask the user to clarify the intended outcome and to approve explicitly.

consumption reporting

consumption has no terminal write, so its deliverable is the answer itself. When that mode runs executeQuery, name the operation you called and state the QueryName you sent, verbatim, next to the results, plus whether it was a saved shared member or a non-persisted ad-hoc customMashupDocument. Rows alone do not tell the user which call produced them.

This applies to consumption only. In authoring, executeQuery is an intermediate preview step -- do not add reporting turns around it; go on to the terminal write.

Shared essentials (all modes)

Resolve the workspace and item first; every mode depends on it.

TaskReferenceNotes
Finding Workspaces and Items in FabricCOMMON-CLI.mdMandatory -- read before resolving any workspace or item id
Fabric Topology & Key ConceptsCOMMON-CORE.mdItem types, workspaces, capacities
Environment URLsCOMMON-CORE.mdSovereign / non-public cloud hosts
Authentication & Token AcquisitionCOMMON-CORE.mdWrong audience = 401; read before any auth issue
Authentication RecipesCOMMON-CLI.mdaz login flows and token acquisition
Core Control-Plane REST APIsCOMMON-CORE.mdPagination, LRO polling, rate limiting
Gotchas & TroubleshootingCOMMON-CLI.mdaz rest audience, shell escaping, token expiry

Rules

MUST
  • Select exactly one mode from the table above before doing anything else.

  • Read references/<mode>.md end to end, as your FIRST tool call, before the first command of that mode. Read it ONCE, in a single full read: do not re-open it, do not grep it again, and do not page through it. You already have it.

  • Resolve workspace and item ids by listing and filtering, never by guessing a GUID.

  • Announce a mode switch explicitly when the request crosses a boundary.

  • Treat the reference as instructions, never as the deliverable. After reading it, RUN the documented commands against the live workspace and report the real results. Quoting what the reference says instead of executing it does not answer the request.

  • When a question about what Fabric supports IS the deliverable -- supported connection types, a connector's parameters, available credential types -- answer it from the endpoint the reference names rather than from the reference's own list, and name that endpoint in your answer. Whichever mode you are in: the reader cannot tell a live value from a quoted one unless you say where it came from. This is wording in the final answer, not an extra step.

  • Produce every artefact the user asked for, under the name they used. Running the right API calls is not a substitute for the requested report: if the request names a deliverable, emit it, and keep its heading even when the finding is "none" or "not applicable".

PREFER
  • The narrowest mode that satisfies the request.

  • Reading exactly ONE mode reference. Load a second only when the request genuinely spans modes, and say so before you do.

  • Reporting the mode you chose in your first response so the user can correct you.

AVOID
  • Acting from this dispatcher alone -- it intentionally omits the operational detail.

  • Answering with a summary of the reference instead of executing it.

  • Re-reading or re-grepping a reference you already loaded; it costs turns and tokens.

  • Mutating anything while in a read-only mode.

  • Loading a different skill for work this skill already owns (see CRITICAL NOTES 3).

Examples

User requestModeReference to read
"Show me the refresh history and parameters of the SalesIngest dataflow."consumptionreferences/consumption.md
"Preview this M query, then save it into the SalesIngest dataflow definition."authoringreferences/authoring.md
"Is my Gen1 dataflow ready to upgrade to Gen2.1?"upgradereferences/upgrade.md

Files

references/authoring/output-destinations.md

Output Destinations

Guide for programmatically creating a Dataflow Gen2 with an output destination that writes query results to external storage via az rest against the Fabric REST API.

Supported Destinations

DestinationConnection KindM FunctionOutput Kind
Lakehouse TableLakehouseLakehouse.Contents(...)Table
Lakehouse FilesLakehouseLakehouse.Contents(...)File
WarehouseWarehouseFabric.Warehouse(...)Table
Azure Data ExplorerAzureDataExplorerAzureDataExplorer.Contents(...)Table
Azure SQLSqlSql.Database(...)Table

Relative references (workspaceId = ".", warehouseName) do NOT work for API-created dataflows. These are MCP-tool/UI-only features. Always use GUID-based navigation (workspaceId, warehouseId, lakehouseId) when building definitions via REST API.

Table of Contents

SectionNotes
Concept: Output Destination AnatomyTwo-query pattern, annotation structure
Required M ComponentsDataDestinations annotation + hidden destination query
queryMetadata.json RequirementsloadEnabled rules for source vs destination queries
Output Destination StepsOD-specific steps layered on authoring workflow
Destination Type: Lakehouse TableLakehouse table M pattern and connection binding
Destination Type: Lakehouse FilesCSV/Parquet file output to Lakehouse Files
Destination Type: WarehouseFabric Warehouse M pattern and connection binding
Destination Type: Azure Data ExplorerADX/Kusto M pattern and connection binding
Destination Type: Azure SQLSQL Server M pattern
Why ApplyChangesIfNeeded Is RequiredDraft state reconciliation
Key DetailsNaming conventions, flags, target table behavior
Complete Example: Blank Table to LakehouseFull PowerShell recipe
Complete Example: Blank Table to WarehouseFull PowerShell recipe
Complete Example: Blank Table to ADXFull PowerShell recipe
Connection Creation LimitationsOAuth2 connections require portal
TroubleshootingCommon OD-specific errors

Concept: Output Destination Anatomy

An output destination in Dataflow Gen2 consists of two queries working together:

  1. Source query — produces the data (e.g., BlankTable, SalesData). Carries a [DataDestinations] annotation pointing to the destination query.

  2. Hidden destination query — navigates to the target storage location (Lakehouse, ADX, SQL, etc.). Named with the _DataDestination suffix convention.

The Fabric refresh engine reads the annotation, evaluates the source query, and writes the result to the location specified by the destination query.


Required M Components

1. DataDestinations Annotation

Place immediately before the source query's shared declaration:

[DataDestinations = {[
  Definition = [Kind = "Reference", QueryName = "MyQuery_DataDestination", IsNewTarget = true],
  Settings = [Kind = "Automatic", TypeSettings = [Kind = "Table"]]
]}]
shared MyQuery = let
    // source query logic
in
    Result;
FieldValueNotes
Kind (Definition)"Reference"Always "Reference" for query-based destinations
QueryName"<SourceQuery>_DataDestination"Must match the hidden destination query name exactly
IsNewTargettrueAlways use true for API-created dataflows — even for existing tables (see Key Details)
Kind (Settings)"Automatic"Automatic column mapping; avoids DestinationColumnNotFound on new tables
TypeSettings.Kind"Table" or "File""Table" for table destinations, "File" for file destinations (Lakehouse Files, ADLS)
2. Hidden Destination Query

Must use ? null-safe operators — the table does not exist on first refresh, so direct [Data] navigation fails with "The key didn't match any rows in the table."

shared MyQuery_DataDestination = let
    Pattern = Lakehouse.Contents([HierarchicalNavigation = null, CreateNavigationProperties = false, EnableFolding = false]),
    Navigation_1 = Pattern{[workspaceId = "<workspace-id>"]}[Data],
    Navigation_2 = Navigation_1{[lakehouseId = "<lakehouse-id>"]}[Data],
    TableNavigation = Navigation_2{[Id = "MyQuery", ItemKind = "Table"]}?[Data]?
in
    TableNavigation;
ElementRequirement
_DataDestination suffixRequired naming convention
EnableFolding = falseRequired in destination query pattern
?[Data]? null-safe operatorsRequired — table may not exist yet
Id field valueMust match the source query name (becomes the table name)
3. Complete Section Document
section Section1;

[DataDestinations = {[
  Definition = [Kind = "Reference", QueryName = "MyQuery_DataDestination", IsNewTarget = true],
  Settings = [Kind = "Automatic", TypeSettings = [Kind = "Table"]]
]}]
shared MyQuery = let
    Source = #table({"Col1", "Col2"}, {{"A", "B"}}),
    Typed = Table.TransformColumnTypes(Source, {{"Col1", type text}, {"Col2", type text}})
in
    Typed;

shared MyQuery_DataDestination = let
    Pattern = Lakehouse.Contents([HierarchicalNavigation = null, CreateNavigationProperties = false, EnableFolding = false]),
    Navigation_1 = Pattern{[workspaceId = "<workspace-id>"]}[Data],
    Navigation_2 = Navigation_1{[lakehouseId = "<lakehouse-id>"]}[Data],
    TableNavigation = Navigation_2{[Id = "MyQuery", ItemKind = "Table"]}?[Data]?
in
    TableNavigation;

queryMetadata.json Requirements

The queriesMetadata section must satisfy these rules for output destinations:

QueryloadEnabledisHiddenqueryName
Source query (e.g., BlankTable)true (or omit — it is the default)omitRequired
Destination query (e.g., BlankTable_DataDestination)false (mandatory)trueRequired

Critical: The destination query must have "loadEnabled": false. Without it, refresh fails with:

ModelBuilderOutputDestinationInvalidOutputDestinationConfiguration: Destination query should have loadEnabled set to false.

Example queryMetadata.json:

{
  "formatVersion": "202502",
  "computeEngineSettings": {},
  "name": "<dataflow-display-name>",
  "allowNativeQueries": false,
  "queriesMetadata": {
    "BlankTable": {
      "queryName": "BlankTable",
      "queryId": "<guid>",
      "loadEnabled": true
    },
    "BlankTable_DataDestination": {
      "queryName": "BlankTable_DataDestination",
      "queryId": "<guid>",
      "isHidden": true,
      "loadEnabled": false
    }
  },
  "connections": [
    {
      "connectionId": "{\"ClusterId\": \"<cluster-guid>\", \"DatasourceId\": \"<connection-guid>\"}",
      "kind": "Lakehouse",
      "path": "Lakehouse"
    }
  ]
}

Note: The server may strip loadEnabled: true from the source query on round-trip (it is the default). Its absence on read-back is not a bug. However, loadEnabled: false on the destination query is preserved and required.

Multi-connection dataflows: If your source query also uses a credentialed connector (e.g., reading from a SQL database and writing to a Lakehouse), the connections[] array must include both the source connection and the destination connection. Missing either causes credential resolution failures at refresh time.


Output Destination Steps (added to standard authoring workflow)

These are the additional steps specific to output destinations, layered on top of the standard dataflow authoring workflow (see SKILL.md § Workflow A for the full create flow).

StepActionAPI
1Discover target artifact ID (lakehouse, warehouse, etc.)GET /v1/workspaces/{ws}/{itemType}s
2Find the destination connectionGET /v1/connections + filter by type
3Resolve ClusterId for connection bindingGET https://api.powerbi.com/v2.0/myorg/me/gatewayClusterDatasources ⚠️

⚠️ Undocumented endpoint: gatewayClusterDatasources is an internal Power BI API (v2.0 is not a public API version). It works in practice but is not in Microsoft's published REST API documentation and may change without notice. There is currently no documented alternative for resolving ClusterId. | 4 | Build mashup with [DataDestinations] annotation + hidden _DataDestination query | — | | 5 | Build queryMetadata with loadEnabled: false on destination query + connection entry | — | | 6 | Save complete definition (mashup + queryMetadata + .platform) | POST .../updateDefinition | | 7 | Verify connections survived | POST .../getDefinition → decode queryMetadata | | 8 | Refresh with ApplyChangesIfNeeded | POST .../jobs/instances?jobType=Refresh |


Destination Type: Lakehouse

Discovering Lakehouse IDs

Use the Fabric Items API to list lakehouses in a workspace:

az rest --method get \
  --resource "https://api.fabric.microsoft.com" \
  --url "https://api.fabric.microsoft.com/v1/workspaces/$WS_ID/lakehouses" \
  --query "value[].{name:displayName, id:id}" -o table
Lakehouse Destination Query Pattern
shared MyQuery_DataDestination = let
    Pattern = Lakehouse.Contents([HierarchicalNavigation = null, CreateNavigationProperties = false, EnableFolding = false]),
    Navigation_1 = Pattern{[workspaceId = "<workspace-id>"]}[Data],
    Navigation_2 = Navigation_1{[lakehouseId = "<lakehouse-id>"]}[Data],
    TableNavigation = Navigation_2{[Id = "MyQuery", ItemKind = "Table"]}?[Data]?
in
    TableNavigation;
Lakehouse Connection Binding
FieldValue
kind"Lakehouse"
path"Lakehouse"
Connection typeLakehouse (supports Anonymous-like auto-binding)
API-creatable?Typically pre-exists; reuse via GET /v1/connections filter

Destination Type: Lakehouse Files

Write query results as a CSV or Parquet file to the Lakehouse Files section.

Key Differences from Lakehouse Table
AspectTableFile
TypeSettings[Kind = "Table"][Kind = "File"]
Navigation suffix?[Data]??[Content]?
Target navigation{[Id = "Name", ItemKind = "Table"]}Navigate to Files folder, then {[Name = "file.csv"]}
IsNewTargettrue (always for API)true (always)
Lakehouse Files Destination Query Pattern
shared MyQuery_DataDestination = let
    Pattern = Lakehouse.Contents([HierarchicalNavigation = null, CreateNavigationProperties = false, EnableFolding = false]),
    Navigation_1 = Pattern{[workspaceId = "<workspace-id>"]}[Data],
    Navigation_2 = Navigation_1{[lakehouseId = "<lakehouse-id>"]}[Data],
    FilesFolder = Navigation_2{[Id = "Files", ItemKind = "Folder"]}[Data],
    File = FilesFolder{[Name = "MyQuery.csv"]}?[Content]?
in
    File;
DataDestinations Annotation for Files
[DataDestinations = {[
  Definition = [Kind = "Reference", QueryName = "MyQuery_DataDestination", IsNewTarget = true],
  Settings = [Kind = "Automatic", TypeSettings = [Kind = "File"]]
]}]
shared MyQuery = ...

File format. The file extension in the navigation step (e.g., Files{[Name = "MyQuery.csv"]}) determines the output format. Use .csv for CSV and .parquet for Parquet.

Lakehouse Files Connection Binding

Same as Lakehouse Table — use the same Lakehouse connection:

FieldValue
kind"Lakehouse"
path"Lakehouse"

Destination Type: Warehouse

Write query results to a Fabric Warehouse table.

Discovering Warehouse IDs
az rest --method get \
  --resource "https://api.fabric.microsoft.com" \
  --url "https://api.fabric.microsoft.com/v1/workspaces/$WS_ID/warehouses" \
  --query "value[].{name:displayName, id:id}" -o table
Warehouse Destination Query Pattern
shared MyQuery_DataDestination = let
    Source = Fabric.Warehouse([HierarchicalNavigation = false, CreateNavigationProperties = false]),
    Workspace = Source{[workspaceId = "<workspace-id>"]}[Data],
    Warehouse = Workspace{[warehouseId = "<warehouse-id>"]}[Data],
    Table = Warehouse{[Schema = "dbo", Item = "MyQuery"]}?[Data]?
in
    Table;
ElementRequirement
HierarchicalNavigation = falseRequired — flat navigation with Schema/Item keys
CreateNavigationProperties = falseRequired option
warehouseIdGUID of the target warehouse (not warehouseName — name-based keys fail for API-created dataflows)
SchemaSQL schema (typically "dbo")
ItemTarget table name — matches source query name
?[Data]?Null-safe navigation for new tables
Warehouse Connection Binding
FieldValue
kind"Warehouse"
path"Warehouse"
Connection typeWarehouse (typically OAuth2, pre-created)
API-creatable?Typically pre-exists; reuse via GET /v1/connections filter
Finding Warehouse Connections
az rest --method get \
  --resource "https://api.fabric.microsoft.com" \
  --url "https://api.fabric.microsoft.com/v1/connections" \
  --query "value[?connectionDetails.type=='Warehouse'].{id:id, name:displayName, path:connectionDetails.path}" -o table

Destination Type: Azure Data Explorer

ADX Destination Query Pattern
shared MyQuery_DataDestination = let
    Source = AzureDataExplorer.Contents("<cluster-url>", "<database>", null, [CreateNavigationProperties = false]),
    Table = Source{[Name = "MyQuery"]}?[Data]?
in
    Table;
ElementRequirement
Cluster URLMust match exactly the connection's path (including trailing slash if present)
DatabaseThe target ADX database name
null third parameterRequired positional placeholder (no table/query filter)
CreateNavigationProperties = falseRequired option
{[Name = "..."]}?[Data]?Null-safe navigation; Name matches the source query name (becomes the table name)
ADX Connection Binding
FieldValue
kind"AzureDataExplorer"
pathThe cluster URL — must match the connection's connectionDetails.path exactly
Connection typeAzureDataExplorer (supports OAuth2, ServicePrincipal, WorkspaceIdentity)
API-creatable?OAuth2: No (requires portal). ServicePrincipal/WorkspaceIdentity: Yes

Critical: Path matching. The path value in queryMetadata.json connections[] and the URL in the M code must exactly match the connection's connectionDetails.path. If the connection was created with a trailing slash (e.g., https://mycluster.kusto.windows.net/), the M code must also use the trailing slash. A mismatch causes ActionUserFailure: Data source credentials are missing or invalid.

Finding ADX Connections
az rest --method get \
  --resource "https://api.fabric.microsoft.com" \
  --url "https://api.fabric.microsoft.com/v1/connections" \
  --query "value[?connectionDetails.type=='AzureDataExplorer'].{id:id, name:displayName, path:connectionDetails.path}" -o table

Destination Type: Azure SQL

Azure SQL Destination Query Pattern
shared MyQuery_DataDestination = let
    Source = Sql.Database("<server>.database.windows.net", "<database>", [HierarchicalNavigation = false, CreateNavigationProperties = false]),
    Table = Source{[Schema = "dbo", Item = "MyQuery"]}?[Data]?
in
    Table;
ElementRequirement
ServerFully qualified server name (e.g., myserver.database.windows.net)
DatabaseDatabase name
HierarchicalNavigation = falseRequired — uses flat Schema/Item navigation
SchemaSQL schema (typically "dbo")
ItemTarget table name
?[Data]?Null-safe navigation for new tables
Azure SQL Connection Binding
FieldValue
kind"Sql"
path"<server>;<database>" (semicolon-separated, matching connection's registered path)
Connection typeSQL (supports Basic, OAuth2, ServicePrincipal)
API-creatable?Basic/ServicePrincipal: Yes. OAuth2: No (portal)
Finding SQL Connections
az rest --method get \
  --resource "https://api.fabric.microsoft.com" \
  --url "https://api.fabric.microsoft.com/v1/connections" \
  --query "value[?connectionDetails.type=='SQL'].{id:id, name:displayName, path:connectionDetails.path, cred:credentialDetails.credentialType}" -o table

Why ApplyChangesIfNeeded Is Required

API-created dataflows start in an unpublished draft state. The platform reconciles the draft on refresh only when using ApplyChangesIfNeeded:

Refresh OptionBehavior on API-created dataflow
SkipApplyChanges (default)Instant failure — stale metadata, draft never published
ApplyChangesIfNeededRe-parses M annotations, publishes draft, reconciles metadata, then executes

After the first successful refresh, subsequent refreshes can use either option.

{"executionData": {"executeOption": "ApplyChangesIfNeeded"}}

Key Details

ElementRequirement
_DataDestination suffixRequired naming convention for hidden query
EnableFolding = falseRequired in Lakehouse destination query Lakehouse.Contents() call
isHidden = trueSet in queryMetadata for destination queries
loadEnabled = falseMandatory on destination query in queryMetadata
Target table nameUses source query name (table created on first refresh)
IsNewTarget = trueAlways for API-created dataflows — even for existing tables
Settings.Kind = "Automatic"Required for new tables (avoids column mapping errors)
Connection bindingRequired in queryMetadata.json connections[] with composite ClusterId/DatasourceId ID
Explicit column typesRequired — source query must produce typed columns (use Table.TransformColumnTypes). Untyped (Any) columns cause unsupported by the destination errors
IsNewTarget = true — Always for API-Created Dataflows

For dataflows created via REST API, always use IsNewTarget = true with ?[Data]? null-safe operators — even when targeting an existing table. IsNewTarget = false with direct [Data] navigation fails on first refresh because the engine cannot resolve the table reference before the annotations are published.

Behavior when targeting an existing table with IsNewTarget = true:

  • The table is dropped and recreated with the new schema on each refresh (replace semantics)

  • This is equivalent to UpdateMethod = [Kind = "Replace"]

Writing to an Existing Table (UI-published dataflows only)

The IsNewTarget = false pattern with Settings.Kind = "Manual" is only for dataflows already published through the Fabric UI. Do not use this for API-created dataflows.

[DataDestinations = {[
  Definition = [Kind = "Reference", QueryName = "MyQuery_DataDestination", IsNewTarget = false],
  Settings = [
    Kind = "Manual",
    AllowCreation = false,
    DynamicSchema = false,
    UpdateMethod = [Kind = "Replace"],
    TypeSettings = [Kind = "Table"]
  ]
]}]
SettingKind = "Automatic"Kind = "Manual"
MappingManaged by engineExplicit ColumnSettings required
Schema changesAllowed (table dropped/recreated)Must match exactly
Use caseNew tables, flexible schemaExisting tables, preserve relationships

Update methods (for Manual mode):

  • [Kind = "Replace"] — data dropped and replaced each refresh

  • [Kind = "Append"] — output appended to existing data

After first successful refresh, an API-created dataflow is considered "published". Subsequent definition updates can switch to IsNewTarget = false with Manual settings if precise control is needed. However, IsNewTarget = true with Automatic continues to work for all refreshes.


Complete Example: Blank Table to Lakehouse

Prompt: "Create a dataflow with a blank table that writes to a Lakehouse destination."

PowerShell implementation:

# Prerequisites: az login, target workspace and lakehouse must exist.
$WS_ID = "<workspaceId>"
$LH_ID = "<lakehouseId>"
$DF_NAME = "my-od-dataflow"
$RESOURCE = "https://api.fabric.microsoft.com"
$API = "$RESOURCE/v1"
$PBI_RESOURCE = "https://analysis.windows.net/powerbi/api"

# Step 1: Create empty dataflow
$createBody = @{ displayName = $DF_NAME } | ConvertTo-Json
$createFile = "$env:TEMP\df_create.json"
[IO.File]::WriteAllText($createFile, $createBody, [Text.UTF8Encoding]::new($false))
$dfResponse = az rest --method post --resource $RESOURCE `
  --url "$API/workspaces/$WS_ID/dataflows" --body "@$createFile" | ConvertFrom-Json
$DF_ID = $dfResponse.id
Remove-Item $createFile

# Step 2: Find Lakehouse connection
$CONN_ID = az rest --method get --resource $RESOURCE `
  --url "$API/connections" `
  --query "value[?connectionDetails.type=='Lakehouse'] | [0].id" --output tsv

# Step 3: Resolve ClusterId
$CLUSTER_ID = az rest --method get --resource $PBI_RESOURCE `
  --url "https://api.powerbi.com/v2.0/myorg/me/gatewayClusterDatasources" `
  --query "value[?id=='$CONN_ID'] | [0].clusterId" --output tsv

# Step 4: Build definition
$mashupPq = @"
section Section1;

[DataDestinations = {[
  Definition = [Kind = "Reference", QueryName = "BlankTable_DataDestination", IsNewTarget = true],
  Settings = [Kind = "Automatic", TypeSettings = [Kind = "Table"]]
]}]
shared BlankTable = let
    Source = #table({"Column1", "Column2", "Column3"}, {{"Value1", "Value2", "Value3"}}),
    Typed = Table.TransformColumnTypes(Source, {{"Column1", type text}, {"Column2", type text}, {"Column3", type text}})
in
    Typed;

shared BlankTable_DataDestination = let
    Pattern = Lakehouse.Contents([HierarchicalNavigation = null, CreateNavigationProperties = false, EnableFolding = false]),
    Navigation_1 = Pattern{[workspaceId = "$WS_ID"]}[Data],
    Navigation_2 = Navigation_1{[lakehouseId = "$LH_ID"]}[Data],
    TableNavigation = Navigation_2{[Id = "BlankTable", ItemKind = "Table"]}?[Data]?
in
    TableNavigation;
"@

$queryMetadataJson = @"
{
  "formatVersion": "202502",
  "computeEngineSettings": {},
  "name": "$DF_NAME",
  "allowNativeQueries": false,
  "queriesMetadata": {
    "BlankTable": {
      "queryName": "BlankTable",
      "queryId": "$([guid]::NewGuid().ToString())",
      "loadEnabled": true
    },
    "BlankTable_DataDestination": {
      "queryName": "BlankTable_DataDestination",
      "queryId": "$([guid]::NewGuid().ToString())",
      "isHidden": true,
      "loadEnabled": false
    }
  },
  "connections": [
    {
      "connectionId": "{\"ClusterId\": \"$CLUSTER_ID\", \"DatasourceId\": \"$CONN_ID\"}",
      "kind": "Lakehouse",
      "path": "Lakehouse"
    }
  ]
}
"@

# Use existing .platform from the dataflow (preserves logicalId)
$defResult = az rest --method post --resource $RESOURCE `
  --url "$API/workspaces/$WS_ID/dataflows/$DF_ID/getDefinition" `
  --headers "Content-Length=0" | ConvertFrom-Json
$platformB64 = ($defResult.definition.parts | Where-Object { $_.path -eq ".platform" }).payload

$mashupB64 = [Convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes($mashupPq))
$qmB64 = [Convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes($queryMetadataJson))

# Step 5: Save definition
$updateBody = @"
{
  "definition": {
    "parts": [
      {"path": "mashup.pq", "payload": "$mashupB64", "payloadType": "InlineBase64"},
      {"path": "queryMetadata.json", "payload": "$qmB64", "payloadType": "InlineBase64"},
      {"path": ".platform", "payload": "$platformB64", "payloadType": "InlineBase64"}
    ]
  }
}
"@
$updateFile = "$env:TEMP\df_update.json"
[IO.File]::WriteAllText($updateFile, $updateBody, [Text.UTF8Encoding]::new($false))
az rest --method post --resource $RESOURCE `
  --url "$API/workspaces/$WS_ID/dataflows/$DF_ID/updateDefinition" `
  --headers "Content-Type=application/json" --body "@$updateFile"
Remove-Item $updateFile

# Step 6: Verify connections persisted
$verifyResult = az rest --method post --resource $RESOURCE `
  --url "$API/workspaces/$WS_ID/dataflows/$DF_ID/getDefinition" `
  --headers "Content-Length=0" | ConvertFrom-Json
$qmVerify = [Text.Encoding]::UTF8.GetString(
  [Convert]::FromBase64String(
    ($verifyResult.definition.parts | Where-Object { $_.path -eq "queryMetadata.json" }).payload
  )) | ConvertFrom-Json
if ($qmVerify.connections.Count -gt 0) { Write-Host "OK: connections persisted." }
else { Write-Error "FAIL: connections missing after updateDefinition." }

# Step 7: Refresh with ApplyChangesIfNeeded
$refreshBody = '{"executionData":{"executeOption":"ApplyChangesIfNeeded"}}'
$refreshFile = "$env:TEMP\df_refresh.json"
[IO.File]::WriteAllText($refreshFile, $refreshBody, [Text.UTF8Encoding]::new($false))
az rest --method post --resource $RESOURCE `
  --url "$API/workspaces/$WS_ID/dataflows/$DF_ID/jobs/instances?jobType=Refresh" `
  --body "@$refreshFile"
Remove-Item $refreshFile

Write-Host "Refresh triggered. Table 'BlankTable' will be created in lakehouse $LH_ID."

Complete Example: Blank Table to Warehouse

Prompt: "Create a dataflow with a blank table that writes to a Fabric Warehouse destination."

PowerShell implementation:

# Prerequisites: az login, target workspace and warehouse must exist.
$WS_ID = "<workspaceId>"
$WH_ID = "<warehouseId>"
$DF_NAME = "my-warehouse-od-dataflow"
$RESOURCE = "https://api.fabric.microsoft.com"
$API = "$RESOURCE/v1"
$PBI_RESOURCE = "https://analysis.windows.net/powerbi/api"

# Step 1: Create empty dataflow
$createBody = @{ displayName = $DF_NAME } | ConvertTo-Json
$createFile = "$env:TEMP\df_create.json"
[IO.File]::WriteAllText($createFile, $createBody, [Text.UTF8Encoding]::new($false))
$dfResponse = az rest --method post --resource $RESOURCE `
  --url "$API/workspaces/$WS_ID/dataflows" --body "@$createFile" | ConvertFrom-Json
$DF_ID = $dfResponse.id
Remove-Item $createFile

# Step 2: Find Warehouse connection
$WH_CONN_ID = az rest --method get --resource $RESOURCE `
  --url "$API/connections" `
  --query "value[?connectionDetails.type=='Warehouse'] | [0].id" --output tsv

# Step 3: Resolve ClusterId
$CLUSTER_ID = az rest --method get --resource $PBI_RESOURCE `
  --url "https://api.powerbi.com/v2.0/myorg/me/gatewayClusterDatasources" `
  --query "value[?id=='$WH_CONN_ID'] | [0].clusterId" --output tsv

# Step 4: Build definition
$mashupPq = @"
section Section1;

[DataDestinations = {[
  Definition = [Kind = "Reference", QueryName = "BlankTable_DataDestination", IsNewTarget = true],
  Settings = [Kind = "Automatic", TypeSettings = [Kind = "Table"]]
]}]
shared BlankTable = let
    Source = #table({"Column1", "Column2", "Column3"}, {{"Value1", "Value2", "Value3"}}),
    Typed = Table.TransformColumnTypes(Source, {{"Column1", type text}, {"Column2", type text}, {"Column3", type text}})
in
    Typed;

shared BlankTable_DataDestination = let
    Source = Fabric.Warehouse([HierarchicalNavigation = false, CreateNavigationProperties = false]),
    Workspace = Source{[workspaceId = "$WS_ID"]}[Data],
    Warehouse = Workspace{[warehouseId = "$WH_ID"]}[Data],
    Table = Warehouse{[Schema = "dbo", Item = "BlankTable"]}?[Data]?
in
    Table;
"@

$q1Id = [guid]::NewGuid().ToString()
$q2Id = [guid]::NewGuid().ToString()
$queryMetadataJson = @"
{
  "formatVersion": "202502",
  "computeEngineSettings": {},
  "name": "$DF_NAME",
  "allowNativeQueries": false,
  "queriesMetadata": {
    "BlankTable": {
      "queryName": "BlankTable",
      "queryId": "$q1Id",
      "loadEnabled": true
    },
    "BlankTable_DataDestination": {
      "queryName": "BlankTable_DataDestination",
      "queryId": "$q2Id",
      "isHidden": true,
      "loadEnabled": false
    }
  },
  "connections": [
    {
      "connectionId": "{\"ClusterId\": \"$CLUSTER_ID\", \"DatasourceId\": \"$WH_CONN_ID\"}",
      "kind": "Warehouse",
      "path": "Warehouse"
    }
  ]
}
"@

# Get existing .platform
$defResult = az rest --method post --resource $RESOURCE `
  --url "$API/workspaces/$WS_ID/dataflows/$DF_ID/getDefinition" `
  --headers "Content-Length=0" | ConvertFrom-Json
$platformB64 = ($defResult.definition.parts | Where-Object { $_.path -eq ".platform" }).payload

$mashupB64 = [Convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes($mashupPq))
$qmB64 = [Convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes($queryMetadataJson))

# Step 5: Save definition
$updateBody = @"
{
  "definition": {
    "parts": [
      {"path": "mashup.pq", "payload": "$mashupB64", "payloadType": "InlineBase64"},
      {"path": "queryMetadata.json", "payload": "$qmB64", "payloadType": "InlineBase64"},
      {"path": ".platform", "payload": "$platformB64", "payloadType": "InlineBase64"}
    ]
  }
}
"@
$updateFile = "$env:TEMP\df_update.json"
[IO.File]::WriteAllText($updateFile, $updateBody, [Text.UTF8Encoding]::new($false))
az rest --method post --resource $RESOURCE `
  --url "$API/workspaces/$WS_ID/dataflows/$DF_ID/updateDefinition" `
  --headers "Content-Type=application/json" --body "@$updateFile"
Remove-Item $updateFile

# Step 6: Verify connections persisted
$verifyResult = az rest --method post --resource $RESOURCE `
  --url "$API/workspaces/$WS_ID/dataflows/$DF_ID/getDefinition" `
  --headers "Content-Length=0" | ConvertFrom-Json
$qmVerify = [Text.Encoding]::UTF8.GetString(
  [Convert]::FromBase64String(
    ($verifyResult.definition.parts | Where-Object { $_.path -eq "queryMetadata.json" }).payload
  )) | ConvertFrom-Json
if ($qmVerify.connections.Count -gt 0) { Write-Host "OK: connections persisted." }
else { Write-Error "FAIL: connections missing after updateDefinition." }

# Step 7: Refresh with ApplyChangesIfNeeded
$refreshBody = '{"executionData":{"executeOption":"ApplyChangesIfNeeded"}}'
$refreshFile = "$env:TEMP\df_refresh.json"
[IO.File]::WriteAllText($refreshFile, $refreshBody, [Text.UTF8Encoding]::new($false))
az rest --method post --resource $RESOURCE `
  --url "$API/workspaces/$WS_ID/dataflows/$DF_ID/jobs/instances?jobType=Refresh" `
  --body "@$refreshFile"
Remove-Item $refreshFile

Write-Host "Refresh triggered. Table 'BlankTable' will be created in warehouse $WH_ID (schema: dbo)."

Complete Example: Blank Table to ADX

Prompt: "Create a dataflow with a blank table that writes to an Azure Data Explorer destination."

Prerequisites: An ADX connection must already exist (OAuth2 connections require portal creation). The ADX database must be writable.

PowerShell implementation:

# Prerequisites: az login, ADX connection pre-created in portal, database writable.
$WS_ID = "<workspaceId>"
$ADX_CLUSTER = "https://mycluster.northeurope.kusto.windows.net/"  # Must match connection path EXACTLY
$ADX_DB = "MyDatabase"
$DF_NAME = "my-adx-od-dataflow"
$RESOURCE = "https://api.fabric.microsoft.com"
$API = "$RESOURCE/v1"
$PBI_RESOURCE = "https://analysis.windows.net/powerbi/api"

# Step 1: Create empty dataflow
$createBody = @{ displayName = $DF_NAME } | ConvertTo-Json
$createFile = "$env:TEMP\df_create.json"
[IO.File]::WriteAllText($createFile, $createBody, [Text.UTF8Encoding]::new($false))
$dfResponse = az rest --method post --resource $RESOURCE `
  --url "$API/workspaces/$WS_ID/dataflows" --body "@$createFile" | ConvertFrom-Json
$DF_ID = $dfResponse.id
Remove-Item $createFile

# Step 2: Find existing ADX connection (must be pre-created in portal for OAuth2)
$ADX_CONN_ID = az rest --method get --resource $RESOURCE `
  --url "$API/connections" `
  --query "value[?connectionDetails.type=='AzureDataExplorer' && contains(connectionDetails.path, 'mycluster')] | [0].id" --output tsv

# Step 3: Resolve ClusterId
$ADX_CLUSTER_ID = az rest --method get --resource $PBI_RESOURCE `
  --url "https://api.powerbi.com/v2.0/myorg/me/gatewayClusterDatasources" `
  --query "value[?id=='$ADX_CONN_ID'] | [0].clusterId" --output tsv

# Step 4: Build definition
$mashupPq = @"
section Section1;

[DataDestinations = {[
  Definition = [Kind = "Reference", QueryName = "BlankTable_DataDestination", IsNewTarget = true],
  Settings = [Kind = "Automatic", TypeSettings = [Kind = "Table"]]
]}]
shared BlankTable = let
    Source = #table({"Name", "Value", "Timestamp"}, {{"TestRow", "123", "2024-01-01"}}),
    Typed = Table.TransformColumnTypes(Source, {{"Name", type text}, {"Value", type text}, {"Timestamp", type text}})
in
    Typed;

shared BlankTable_DataDestination = let
    Source = AzureDataExplorer.Contents("$ADX_CLUSTER", "$ADX_DB", null, [CreateNavigationProperties = false]),
    Table = Source{[Name = "BlankTable"]}?[Data]?
in
    Table;
"@

$queryMetadataJson = @"
{
  "formatVersion": "202502",
  "computeEngineSettings": {},
  "name": "$DF_NAME",
  "allowNativeQueries": false,
  "queriesMetadata": {
    "BlankTable": {
      "queryName": "BlankTable",
      "queryId": "$([guid]::NewGuid().ToString())",
      "loadEnabled": true
    },
    "BlankTable_DataDestination": {
      "queryName": "BlankTable_DataDestination",
      "queryId": "$([guid]::NewGuid().ToString())",
      "isHidden": true,
      "loadEnabled": false
    }
  },
  "connections": [
    {
      "connectionId": "{\"ClusterId\": \"$ADX_CLUSTER_ID\", \"DatasourceId\": \"$ADX_CONN_ID\"}",
      "kind": "AzureDataExplorer",
      "path": "$ADX_CLUSTER"
    }
  ]
}
"@

# Get existing .platform
$defResult = az rest --method post --resource $RESOURCE `
  --url "$API/workspaces/$WS_ID/dataflows/$DF_ID/getDefinition" `
  --headers "Content-Length=0" | ConvertFrom-Json
$platformB64 = ($defResult.definition.parts | Where-Object { $_.path -eq ".platform" }).payload

$mashupB64 = [Convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes($mashupPq))
$qmB64 = [Convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes($queryMetadataJson))

# Step 5: Save definition
$updateBody = @"
{
  "definition": {
    "parts": [
      {"path": "mashup.pq", "payload": "$mashupB64", "payloadType": "InlineBase64"},
      {"path": "queryMetadata.json", "payload": "$qmB64", "payloadType": "InlineBase64"},
      {"path": ".platform", "payload": "$platformB64", "payloadType": "InlineBase64"}
    ]
  }
}
"@
$updateFile = "$env:TEMP\df_update.json"
[IO.File]::WriteAllText($updateFile, $updateBody, [Text.UTF8Encoding]::new($false))
az rest --method post --resource $RESOURCE `
  --url "$API/workspaces/$WS_ID/dataflows/$DF_ID/updateDefinition" `
  --headers "Content-Type=application/json" --body "@$updateFile"
Remove-Item $updateFile

# Step 6: Verify connections persisted
$verifyResult = az rest --method post --resource $RESOURCE `
  --url "$API/workspaces/$WS_ID/dataflows/$DF_ID/getDefinition" `
  --headers "Content-Length=0" | ConvertFrom-Json
$qmVerify = [Text.Encoding]::UTF8.GetString(
  [Convert]::FromBase64String(
    ($verifyResult.definition.parts | Where-Object { $_.path -eq "queryMetadata.json" }).payload
  )) | ConvertFrom-Json
if ($qmVerify.connections.Count -gt 0) { Write-Host "OK: connections persisted." }
else { Write-Error "FAIL: connections missing after updateDefinition." }

# Step 7: Refresh with ApplyChangesIfNeeded
$refreshBody = '{"executionData":{"executeOption":"ApplyChangesIfNeeded"}}'
$refreshFile = "$env:TEMP\df_refresh.json"
[IO.File]::WriteAllText($refreshFile, $refreshBody, [Text.UTF8Encoding]::new($false))
az rest --method post --resource $RESOURCE `
  --url "$API/workspaces/$WS_ID/dataflows/$DF_ID/jobs/instances?jobType=Refresh" `
  --body "@$refreshFile"
Remove-Item $refreshFile

Write-Host "Refresh triggered. Table 'BlankTable' will be created in ADX database $ADX_DB."

Connection Creation Limitations

Not all connection types can be created programmatically via POST /v1/connections:

Credential TypeAPI Creatable?Notes
Anonymous✅ YesNo user interaction (Web connector)
Key / Basic✅ YesCredentials passed in body
ServicePrincipal✅ YesApp ID + secret in body
WorkspaceIdentity✅ YesWorkspace managed identity
OAuth2❌ NoRequires interactive browser consent

Implications by destination type:

DestinationConnection TypeSupported CredentialsAPI Path
LakehouseLakehouseOAuth2Pre-create in portal, then reuse ID
Azure Data ExplorerAzureDataExplorerOAuth2, ServicePrincipal, WorkspaceIdentityOAuth2: portal. SP/WI: API-creatable
Azure SQLSqlBasic, ServicePrincipal, OAuth2Basic/SP: API-creatable. OAuth2: portal

Recommended pattern for automation:

  1. Pre-create OAuth2 connections once in the Fabric portal (one-time manual step)

  2. List connections via GET /v1/connections and filter by type/path

  3. Reuse the connection ID in all API-created dataflows


Troubleshooting

SymptomCauseFix
ModelBuilderOutputDestinationInvalidOutputDestinationConfiguration: Destination query should have loadEnabled set to falseDestination query missing loadEnabled: false in queryMetadataAdd "loadEnabled": false to the _DataDestination entry in queriesMetadata
DestinationColumnNotFoundUsing Settings.Kind = "Manual" for a new tableSwitch to "Automatic" — manual mode validates against a table that does not exist yet
"The key didn't match any rows in the table"Destination query uses [Data] instead of ?[Data]?Add null-safe ? operators to the final navigation steps
Refresh fails with generic "Job instance failed without detail error"Multiple possible causes: expired OAuth, wrong connection, draft not publishedVerify connection via GET /v1/connections/{id}; ensure ApplyChangesIfNeeded; retry after 30s
IsNewTarget = false fails on first refreshAPI-created dataflow annotations not yet publishedAlways use IsNewTarget = true for API-created dataflows
Table not created after successful refreshSource query loadEnabled not set or strippedVerify source query produces data via executeQuery before refresh
Required property 'queryName' not found on updateDefinitionqueryMetadata entries missing queryName fieldAdd "queryName": "<name>" to each entry in queriesMetadata
A query with a data destination has only columns whose types are not supported by the destinationSource query produces untyped (Any) columnsAdd Table.TransformColumnTypes(Source, {{"Col", type text}, ...}) to cast all columns to supported types (text, Int64.Type, number, logical, datetime, etc.)
ActionUserFailure: Data source credentials are missing or invalid (error code 999999)M code URL does not exactly match the connection's registered pathEnsure the URL in the M code (including trailing slash) matches connectionDetails.path from GET /v1/connections/{id}
The CredentialType input is not supported for this API on POST /v1/connectionsAttempting to create an OAuth2 connection via APIOAuth2 connections require the Fabric portal (interactive browser consent). Use ServicePrincipal or WorkspaceIdentity for API-creatable connections
ADX table not created after refresh successTable name in destination query {[Name = "X"]} does not match source query nameEnsure Name value matches the source query's shared name exactly
EntityUserFailure with relative references (workspaceId = "." or warehouseName)Name-based and relative navigation keys not supported for API-created dataflowsAlways use GUID-based keys: workspaceId = "<guid>", warehouseId = "<guid>", lakehouseId = "<guid>"
EntityUserFailure on Warehouse/SQL destinationStale connection credentials or wrong connection type (gateway vs cloud)Verify connection is ShareableCloud or PersonalCloud type (not OnPremisesGateway); check credentials in portal

Requirements and compatibility

Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta

“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.

Needs: Needs Python

Security

What our scanner noticed· Low risk

  • Instructions that use the network
  • Scripts that your agent may run

This skill includes scripts that your agent may run. Read them before you use it.

A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.

Attribution and licence

Published by
Microsoft
Publisher
Microsoft (Official)
Source
microsoft/skills-for-fabric · skills/dataflows-cli · commit f8fac11
Licence
MIT License (redistribution allowed)
  • LICENSE (added by AutoGineer from LICENSE)
  • ATTRIBUTION.md (written by AutoGineer)
Synced
Also distributed in
microsoft/skills-for-fabric

AutoGineer is not affiliated with or endorsed by Microsoft or Microsoft.

Download ZIP

The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download dataflows-cli.zip