Skip to content

Commit 076cda7

Browse files
committed
fix for #25 add config variables to private function so executed on build
1 parent ff43d7b commit 076cda7

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

source/Private/Set-FabConfig.ps1

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# this is a workaround to get the variables set for now
2+
# TODO: change to use PSFConfig?
3+
4+
$script:FabricSession = [ordered]@{
5+
BaseApiUrl = 'https://api.fabric.microsoft.com/v1'
6+
ResourceUrl = 'https://api.fabric.microsoft.com'
7+
FabricToken = $null
8+
HeaderParams = $null
9+
ContentType = @{'Content-Type' = "application/json" }
10+
KustoURL = "https://api.kusto.windows.net"
11+
AccessToken = $null
12+
}
13+
14+
$script:AzureSession = [ordered]@{
15+
BaseApiUrl = "https://management.azure.com"
16+
AccessToken = $null
17+
Token = $null
18+
HeaderParams = $null
19+
}
20+
21+
$script:PowerBI = [ordered]@{
22+
BaseApiUrl = "https://api.powerbi.com/v1.0/myorg"
23+
}
24+
25+
$FabricTools = @{
26+
FeatureFlags = @{
27+
AutoRenewExpiredToken = $true
28+
}
29+
}
30+
31+
$FabricConfig = @{
32+
BaseUrl = "https://api.fabric.microsoft.com/v1"
33+
ResourceUrl = "https://api.fabric.microsoft.com"
34+
FabricHeaders = @{}
35+
TenantIdGlobal = ""
36+
TokenExpiresOn = ""
37+
}

0 commit comments

Comments
 (0)