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
'Get-FabricSQLDatabase',
'Remove-FabricSQLDatabase',
'Get-FabricCapacitySkus',
'Confirm-FabricAuthToken'
* Unified objects in module scope (FabricSession, AzureSession)
* Module scope holds all api urls, header params for requests
* Unified function to authenticate to Fabric API with bearer token
* Auto-refresh token when expires
* Removed $authToken as input param in several functions
* Removed usage of $env:azToken from several functions
* Get-FabricItem accepts Workspaces as input-pipeline
* Minor cosmetic changes
Copy file name to clipboardExpand all lines: FabricTools/FabricTools.psd1
+9-4Lines changed: 9 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@
12
12
RootModule='FabricTools.psm1'
13
13
14
14
# Version number of this module.
15
-
ModuleVersion='0.8.0.0'
15
+
ModuleVersion='0.9.0.0'
16
16
17
17
# Supported PSEditions
18
18
# CompatiblePSEditions = @()
@@ -112,13 +112,13 @@
112
112
'Get-FabricKQLDashboard',
113
113
'Get-FabricKQLDatabase',
114
114
'Get-FabricKQLQueryset',
115
-
'Get-FabricWorkspace',
115
+
'Get-FabricWorkspace2',
116
116
'Invoke-FabricKQLCommand',
117
117
'New-FabricEventhouse',
118
118
'New-FabricEventstream',
119
119
'New-FabricKQLDashboard',
120
120
'New-FabricKQLDatabase',
121
-
'New-FabricWorkspace',
121
+
'New-FabricWorkspace2',
122
122
'Remove-FabricEventhouse',
123
123
'Remove-FabricEventstream',
124
124
'Remove-FabricKQLDatabase',
@@ -130,7 +130,12 @@
130
130
'Add-FabricWorkspaceRoleAssignment',
131
131
'Get-FabricWorkspaceRoleAssignment',
132
132
'Get-FabricKQLDashboardDefinition',
133
-
'Get-FabricDebugInfo'
133
+
'Get-FabricDebugInfo',
134
+
135
+
'Get-FabricSQLDatabase',
136
+
'Remove-FabricSQLDatabase',
137
+
'Get-FabricCapacitySkus',
138
+
'Confirm-FabricAuthToken'
134
139
)
135
140
136
141
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
Check whether the Fabric API authentication token is set and not expired and reset it if necessary.
4
+
5
+
.DESCRIPTION
6
+
The Confirm-FabricAuthToken function retrieves the Fabric API authentication token. If the token is not already set, it calls the Set-FabricAuthToken function to set it. It then outputs the token.
7
+
8
+
.EXAMPLE
9
+
Confirm-FabricAuthToken
10
+
11
+
This command retrieves the Fabric API authentication token.
12
+
13
+
.INPUTS
14
+
None. You cannot pipe inputs to this function.
15
+
16
+
.OUTPUTS
17
+
Returns object as Get-FabricDebugInfo function
18
+
19
+
.NOTES
20
+
21
+
#>
22
+
23
+
functionConfirm-FabricAuthToken {
24
+
[CmdletBinding()]
25
+
param ( )
26
+
27
+
# Check if the Fabric token is already set
28
+
if (!$FabricSession.FabricToken-or!$AzureSession.AccessToken) {
0 commit comments