-
Notifications
You must be signed in to change notification settings - Fork 33
/
CloudKatanaTools.psm1
39 lines (36 loc) · 1.18 KB
/
CloudKatanaTools.psm1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
$CKAbilities = @(
"Get-CKAccessToken.ps1"
"New-DynamicParam.ps1"
"Get-CKDeviceCode.ps1"
"Read-CKAccessToken.ps1"
"ConvertFrom-B64ToString.ps1"
"Invoke-CKAzResourceMgmtAPI.ps1"
"Invoke-CKMSGraphAPI.ps1"
"New-CKAzResourceDeployment.ps1"
"New-CKAzADManagedIdentity.ps1"
"Grant-CKAzADAppPermissions.ps1"
"New-CKAzResourceGroup.ps1"
"Get-CKAzResourceGroups.ps1"
"Get-CKAzADServicePrincipals.ps1"
"Get-CKOauth2PermissionGrants.ps1"
"New-CKAzADApplication.ps1"
"Get-CKAzADApplications.ps1"
"New-CKAzADAppServicePrincipal.ps1"
"Get-CKAzADUsers.ps1"
"Get-CKAzADUserAppRoleAssignments.ps1"
)
$CKToolkitScripts = @(
"Start-CKTSimulation.ps1"
"Confirm-CKTSimulation.ps1"
"Convert-CKTSimulation.ps1"
)
$scripts = @()
$scripts += @(Get-ChildItem -Path $PSScriptRoot\CloudKatanaAbilities -Include $CKAbilities -Recurse -ErrorAction SilentlyContinue)
$scripts += @(Get-ChildItem -Path $PSScriptRoot\resources\scripts -Include $CKToolkitScripts -Recurse -ErrorAction SilentlyContinue)
foreach ($script in $scripts) {
try {
. $script.FullName
} catch {
Write-Error "Failed to import $($script.FullName): $_"
}
}