Skip to content

Commit 3bbfe44

Browse files
committed
Feat: CIPPCore breakout and performance tuning
CIPPCore Breakout into smaller modules and swap in some .net usage to improve file based action performance add validation to app manifest templates Update Push-AuditLogSearchCreation.ps1
1 parent a1c72de commit 3bbfe44

1,615 files changed

Lines changed: 1705 additions & 18024 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/dev_api.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ jobs:
3333
tenant-id: ${{ secrets.DEV_TENANTID }}
3434
subscription-id: ${{ secrets.DEV_SUBSCRIPTIONID }}
3535

36+
- name: Build and stage modules
37+
shell: pwsh
38+
run: ./Tools/Build-DevApiModules.ps1
39+
3640
- name: "Run Azure Functions Action"
3741
uses: Azure/functions-action@v1
3842
id: fa
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
@{
2+
# Script module or binary module file associated with this manifest.
3+
RootModule = '.\CIPPActivityTriggers.psm1'
4+
5+
# Version number of this module.
6+
ModuleVersion = '1.0'
7+
8+
# Supported PSEditions
9+
# CompatiblePSEditions = @()
10+
11+
# ID used to uniquely identify this module
12+
GUID = '3d72e22c-16a3-4e0d-8f9f-f4436b911f14'
13+
14+
# Author of this module
15+
Author = 'Kelvin Tegelaar - Kelvin@cyberdrain.com'
16+
17+
# Company or vendor of this module
18+
CompanyName = 'CyberDrain.com'
19+
20+
# Copyright statement for this module
21+
Copyright = '(c) 2020 Kelvin Tegelaar - Kelvin@CyberDrain.com All rights reserved.'
22+
23+
# Description of the functionality provided by this module
24+
Description = ''
25+
26+
# Minimum version of the Windows PowerShell engine required by this module
27+
PowerShellVersion = '7.0'
28+
29+
# Name of the Windows PowerShell host required by this module
30+
# PowerShellHostName = ''
31+
32+
# Minimum version of the Windows PowerShell host required by this module
33+
# PowerShellHostVersion = ''
34+
35+
# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
36+
# DotNetFrameworkVersion = ''
37+
38+
# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
39+
# CLRVersion = ''
40+
41+
# Processor architecture (None, X86, Amd64) required by this module
42+
# ProcessorArchitecture = ''
43+
44+
# Modules that must be imported into the global environment prior to importing this module
45+
# RequiredModules = @()
46+
47+
# Assemblies that must be loaded prior to importing this module
48+
# RequiredAssemblies = @()
49+
50+
# Script files (.ps1) that are run in the caller's environment prior to importing this module.
51+
# ScriptsToProcess = @()
52+
53+
# Type files (.ps1xml) to be loaded when importing this module
54+
# TypesToProcess = @()
55+
56+
# Format files (.ps1xml) to be loaded when importing this module
57+
# FormatsToProcess = @()
58+
59+
# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
60+
# NestedModules = @()
61+
62+
# Functions 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 functions to export.
63+
FunctionsToExport = '*'
64+
65+
# 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.
66+
CmdletsToExport = @()
67+
68+
# Variables to export from this module
69+
VariablesToExport = @()
70+
71+
# Aliases 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 aliases to export.
72+
AliasesToExport = @()
73+
74+
# DSC resources to export from this module
75+
# DscResourcesToExport = @()
76+
77+
# List of all modules packaged with this module
78+
# ModuleList = @()
79+
80+
# List of all files packaged with this module
81+
# FileList = @()
82+
83+
# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell.
84+
PrivateData = @{
85+
86+
PSData = @{
87+
88+
# Tags applied to this module. These help with module discovery in online galleries.
89+
Tags = @()
90+
91+
# A URL to the license for this module.
92+
LicenseUri = 'https://github.com/KelvinTegelaar/CIPP-API/blob/master/LICENSE'
93+
94+
# A URL to the main website for this project.
95+
ProjectUri = 'https://github.com/KelvinTegelaar/CIPP-API'
96+
97+
# A URL to an icon representing this module.
98+
# IconUri = ''
99+
100+
# ReleaseNotes of this module
101+
ReleaseNotes = ''
102+
103+
} # End of PSData hashtable
104+
105+
} # End of PrivateData hashtable
106+
107+
# HelpInfo URI of this module
108+
HelpInfoURI = 'https://github.com/KelvinTegelaar/CIPP-API'
109+
110+
# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix.
111+
# DefaultCommandPrefix = ''
112+
113+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# ModuleBuilder will concatenate all function files into this module
2+
# This block is only used when running from source (not built)
3+
if (Test-Path (Join-Path $PSScriptRoot 'Public')) {
4+
$Public = @(Get-ChildItem -Path (Join-Path $PSScriptRoot 'Public\*.ps1') -Recurse -ErrorAction SilentlyContinue)
5+
foreach ($import in @($Public)) {
6+
try {
7+
. $import.FullName
8+
} catch {
9+
Write-Error -Message "Failed to import function $($import.FullName): $_"
10+
}
11+
}
12+
13+
Export-ModuleMember -Function $Public.BaseName
14+
}

0 commit comments

Comments
 (0)