You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
!!! info "Setting domain properties requires tenant-level Fabric Administrator privileges"
6
18
@@ -9,18 +21,64 @@ Set a workspace or item property.
9
21
**Usage:**
10
22
11
23
```
12
-
fab set <path> -q <jmespath_query> -i <input_to_replace> [-f]
24
+
fab set <path> -q <jmespath_query> -i <input_value> [-f]
13
25
```
14
26
15
27
**Parameters:**
16
28
17
29
-`<path>`: Path to the resource.
18
-
-`-q, --query <jmespath_query>`: JMESPath query.
19
-
-`-i, --input <input_to_replace>`: Input value to replace.
30
+
-`-q, --query <jmespath_query>`: JMESPath query to the property.
31
+
-`-i, --input <input_value>`: Input value to set.
32
+
33
+
!!! tip "Working with JSON input"
34
+
For guidance on providing JSON input values across different shells, see [JSON Input Handling](../../essentials/input.md#json-input-handling).
35
+
20
36
-`-f, --force`: Force set without confirmation. Optional.
21
37
22
38
**Example:**
23
39
40
+
```bash
41
+
fab set ws1.Workspace -q displayName -i "New Name" -f
24
42
```
25
-
fab set ws1.Workspace/nb1.Notebook -q .property -i value
26
-
```
43
+
44
+
## Limitations
45
+
46
+
- Only one property path can be specified per `--query` argument
47
+
- Paths must map directly to JSON paths **without** filters or wildcards
48
+
- If the property path doesn't exist on the item definition, it will be added, provided it's valid according to the item's schema. The `set` command supports creation of 1 level at a time (e.g., to set `a.b.c`, first set `a.b`, then set `a.b.c`)
49
+
- Properties that expect a JSON string value are not supported - JSON input is always parsed as an object
50
+
51
+
## Query Support
52
+
53
+
The following table shows supported queries per resource type:
For **Items**, you can set any explicit path within the `definition` structure using dot notation for nested properties (e.g. `definition.parts[0].property`).
70
+
Paths must map directly to JSON paths **without** filters or wildcards. Refer to the [Microsoft Fabric item definitions](https://learn.microsoft.com/en-us/rest/api/fabric/articles/item-management/definitions) for the complete definition structure.
71
+
72
+
#### Item-Specific Definition Path Aliasing
73
+
74
+
!!! warning "Note on definition path aliases"
75
+
76
+
These definition path aliases may be deprecated in a future release. We strongly recommend using explicit JSON paths within the item's definition structure rather than aliases.
77
+
78
+
These are definition path aliases that map to specific paths in the item's definition structure. When using the `set` command, you can use these aliases directly (as the `-query` / `--q` argument value) as they map to the correct definition paths:
|**Report**|`semanticModelId`| Applies only to [Report definition.pbir version 1](https://learn.microsoft.com/en-us/power-bi/developer/projects/projects-report?tabs=v1%2Cdesktop#definitionpbir). For other versions, check the correct property path in the Report definition documentation |
0 commit comments