Conversation
Increase code coverage
This commit introduces a User-Agent header to all HTTP requests made to the Fabric API. The User-Agent string includes the PowerShell version, FabricTools module version, operating system description, and architecture. This enhancement improves observability and debugging capabilities by allowing telemetry and logs on the Fabric side to include client and runtime details. Additionally, implementation notes and specifications have been created to guide developers on how to inject the User-Agent header and ensure backward compatibility. Thank you!
Set the module version to 0.0.1 and refactor the User-Agent header construction in the Invoke-FabricRestMethod function.
Added Star History diagram to readme file
119 add useragent
This change introduces an alias "Id" for the WorkspaceId parameter across multiple functions
Add Id alias to WorkspaceId parameters for consistency #158
This change eliminates outdated aliases from various functions to streamline the codebase and enhance maintainability. By removing references to old PowerBI-focused aliases, we ensure that the functions are more consistent and easier to understand.
Removed Fab* aliases & updated docs
Changed ReportPathDefinition and ReportDescription parameters from mandatory to optional to enhance usability.
Update New-FabricReport parameters for clarity #43
This commit removes the `Invoke-FabricAPIRequest_duplicate` and `Invoke-FabricRestMethodExtended` functions from the codebase, as they were redundant.
Remove duplicate API request functions and update docs
Added a note about module compatibility with PS 5.1 in the changelog. Also, introduced a new build workflow for building and testing the module.
Update changelog and build configuration for clarity
Included PSFramework version 1.0.0 in the list of required modules for the FabricTools module. This addition ensures compatibility with features that depend on PSFramework.
Add PSFramework as a required module
Wrap both Get-AzAccessToken calls in try/catch. When token acquisition fails due to expired MFA or conditional access policies, re-authenticate using Connect-AzAccount with -AuthScope set to the target resource URL, then retry. This removes the need for users to manually pass -Reset when MFA has silently expired between sessions.
…uplicate of `New-FabricNotebook`) - Added Integration tests for notebooks
… to use hash splatting instead of backtick line continuation (issue #87) - Refactored Lakehouse cmdlets to use `HandleResponse = $true` on `Invoke-FabricRestMethod`, removing manual status-code switches, LRO polling, and pagination loops from each cmdlet - Refactored Notebook cmdlets to use `HandleResponse = $true` on `Invoke-FabricRestMethod`, removing manual status-code switches, LRO polling, and pagination loops from each cmdlet
… My Workspace or a specific workspace, with optional filtering by `DatasetId` or `DatasetName` (`WorkspaceId` parameter, alias `GroupId`) - Added `Get-FabricDatasetRefreshHistory` cmdlet to retrieve the refresh history of a Power BI dataset, with optional `WorkspaceId` (alias `GroupId`) and `Top` parameters - Added `Invoke-FabricDatasetRefresh` cmdlet (in `Dataset` folder) to trigger on-demand dataset refreshes, supporting both standard and enhanced refresh parameters (`Type`, `CommitMode`, `MaxParallelism`, `RetryCount`, `Timeout`, `EffectiveDate`, `ApplyRefreshPolicy`, `Objects`) - Updated unit tests for `Invoke-FabricDatasetRefresh` to cover the new parameter set, alias, ShouldProcess, body construction, and error handling
Tons of changes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
0.32.0 - 2026-05-06
Added
Get-FabricDatasetcmdlet to retrieve Power BI datasets from My Workspace or a specific workspace, with optional filtering byDatasetIdorDatasetName(WorkspaceIdparameter, aliasGroupId)Get-FabricDatasetRefreshHistorycmdlet to retrieve the refresh history of a Power BI dataset, with optionalWorkspaceId(aliasGroupId) andTopparametersInvoke-FabricDatasetRefreshcmdlet (inDatasetfolder) to trigger on-demand dataset refreshes, supporting both standard and enhanced refresh parameters (Type,CommitMode,MaxParallelism,RetryCount,Timeout,EffectiveDate,ApplyRefreshPolicy,Objects)Invoke-FabricDatasetRefreshto cover the new parameter set, alias, ShouldProcess, body construction, and error handlingChanged
Add-FabricWorkspaceCapacityAssignmenttoAdd-FabricWorkspaceCapacity(issue Improve Register-FabricWorkspaceToCapacity output #42)Remove-FabricWorkspaceCapacityAssignmenttoRemove-FabricWorkspaceCapacity(issue Improve Register-FabricWorkspaceToCapacity output #42)Invoke-FabricRestMethodcall in bunch of cmdlets to use hash splatting instead of backtick line continuation (issue Code formatting: Splatting input parameters beforeInvoke-FabricRestMethodcalls #87)HandleResponse = $trueonInvoke-FabricRestMethod, removing manual status-code switches, LRO polling, and pagination loops from each cmdletInvoke-FabricRestMethodhandles response by defaultFixed
Connect-FabricAccountnow automatically re-authenticates when MFA or conditional access has expired, without requiring the-ResetswitchReportPathDefinitionparameter optional inNew-FabricReport(issue New-FabricReport - ReportPathDefinition required param but not in example #43)Idparameter alias to Workspace functions that takeWorkspaceIdto support compatibility with API field names and issue AddIdalias to Remove-FabricWorkspace #158.Deprecated
Removed
Invoke-FabricAPIRequest_duplicateandInvoke-FabricRestMethodExtendedRegister-FabricWorkspaceToCapacityandUnregister-FabricWorkspaceToCapacity, as they are no longer needed (issue Improve Register-FabricWorkspaceToCapacity output #42)New-FabricNotebookNEWfile (incomplete/broken duplicate ofNew-FabricNotebook)