| document type | cmdlet |
|---|---|
| external help file | FabricTools-Help.xml |
| HelpUri | |
| Locale | en-US |
| Module Name | FabricTools |
| ms.date | 04/08/2026 |
| PlatyPS schema version | 2024-05-01 |
| title | Get-FabricNotebookDefinition |
Retrieves the definition of a notebook from a specific workspace in Microsoft Fabric.
Get-FabricNotebookDefinition [-WorkspaceId] <guid> [[-NotebookId] <guid>]
[[-NotebookFormat] <string>] [<CommonParameters>]
This function fetches the notebook's content or metadata from a workspace.
It supports retrieving notebook definitions in the Jupyter Notebook (ipynb) format.
Handles both synchronous and asynchronous operations, with detailed logging and error handling.
Retrieves the definition of the notebook with ID 67890 from the workspace with ID 12345 in the ipynb format.
Get-FabricNotebookDefinition -WorkspaceId "12345" -NotebookId "67890"Retrieves the definitions of all notebooks in the workspace with ID 12345 in the ipynb format.
Get-FabricNotebookDefinition -WorkspaceId "12345"Specifies the format of the notebook definition. Currently, only 'ipynb' is supported. Default: 'ipynb'.
Type: System.String
DefaultValue: ipynb
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 2
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''(Optional)The unique identifier of the notebook whose definition needs to be retrieved.
Type: System.Guid
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 1
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''(Mandatory) The unique identifier of the workspace from which the notebook definition is to be retrieved.
Type: System.Guid
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 0
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
- Requires
$FabricConfigglobal configuration, includingBaseUrlandFabricHeaders. - Calls
Confirm-TokenStateto ensure token validity before making the API request. - Handles long-running operations asynchronously.
Author: Tiago Balabuch, Kamil Nowinski
{{ Fill in the related links here }}