Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better error handling #12

Merged
merged 46 commits into from
Jun 8, 2024
Merged
Changes from 1 commit
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
2027e8b
Add: error handling to tests
DrIOSX Jun 4, 2024
df89e23
add: simplified object build call
DrIOSX Jun 5, 2024
2712f78
docs: update CHANGELOG
DrIOSX Jun 5, 2024
a9e44a7
fix: Removed nested functions in 6.1.2/6.1.3
DrIOSX Jun 5, 2024
06aeada
fix: connections in helper csv and connect function
DrIOSX Jun 5, 2024
8446d10
fix: connections in helper csv and connect function
DrIOSX Jun 5, 2024
4bc1f8f
change: refactored test output and created new functions
DrIOSX Jun 6, 2024
cb52ce1
docs: update CHANGELOG
DrIOSX Jun 6, 2024
92e5952
Add: Module function
DrIOSX Jun 6, 2024
4857aea
docs: update changelog
DrIOSX Jun 6, 2024
d9ed3b6
fix: output in 6.1.2,6.1.3 update changelog
DrIOSX Jun 7, 2024
f5ab68d
fix: output in 6.2.1 so joine won't fail
DrIOSX Jun 7, 2024
c530d2d
docs: Update CHANGELOG
DrIOSX Jun 7, 2024
8de61dd
fix: 7.3.4 so it outputs a pipe separated table
DrIOSX Jun 7, 2024
85bd0fb
add: sort to output
DrIOSX Jun 7, 2024
c6bdad0
fix: improve output of 6.1.2
DrIOSX Jun 7, 2024
8922ea1
fix: improve output of 7.3.4
DrIOSX Jun 7, 2024
8719900
test: testingoutput
DrIOSX Jun 8, 2024
f905f26
fix: output for 6.1.2/3 and 7.3.4
DrIOSX Jun 8, 2024
f47efa7
docs: Update changelog
DrIOSX Jun 8, 2024
d859689
fix: remove verbose preference from 7.3.4
DrIOSX Jun 8, 2024
e0e2a04
fix: add check for length in 7.3.4 details.
DrIOSX Jun 8, 2024
6495073
fix: step 1 and step 2 in 6.2.1 details.
DrIOSX Jun 8, 2024
b9a8a75
fix: minimized mggraph call count and adjusted output in 1.1.1
DrIOSX Jun 8, 2024
d58d0b6
docs: Update CHANGELOG
DrIOSX Jun 8, 2024
f6aa4b8
add: parameter validation for excel and csv path in sync function
DrIOSX Jun 8, 2024
70dcd74
docs: Update CHANGELOG
DrIOSX Jun 8, 2024
41dbf2f
add: Output type to tests.
DrIOSX Jun 8, 2024
2d9a1a1
docs: Update CHANGELOG
DrIOSX Jun 8, 2024
bb1df11
add: Output type to tests.
DrIOSX Jun 8, 2024
4f8df29
add: Output type to tests.
DrIOSX Jun 8, 2024
a5d2691
add: paramters to get-requredmodules and updated public functions
DrIOSX Jun 8, 2024
cbdb31c
add: better output to 1.1.3
DrIOSX Jun 8, 2024
83ee6c2
add: New private function for csv/xlsx merge
DrIOSX Jun 8, 2024
c0222ef
add:comment-help block back to public function
DrIOSX Jun 8, 2024
a5dc7f1
docs: update help
DrIOSX Jun 8, 2024
5871294
add: progress bar and surpressed verbose progress.
DrIOSX Jun 8, 2024
4ab5aff
fix: script analyzer reccomendations.
DrIOSX Jun 8, 2024
7a9d288
fix: script analyzer reccomendations.
DrIOSX Jun 8, 2024
ef55447
docs:update help
DrIOSX Jun 8, 2024
b70da18
addL paramter validation to main function
DrIOSX Jun 8, 2024
f7b87eb
test: update workflow
DrIOSX Jun 8, 2024
63b9e8b
test: update workflow
DrIOSX Jun 8, 2024
c842ae9
test: update workflow
DrIOSX Jun 8, 2024
0569fd9
test: update workflow
DrIOSX Jun 8, 2024
71c798c
Merge pull request #16 from CriticalSolutionsNetwork/main
DrIOSX Jun 8, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
addL paramter validation to main function
  • Loading branch information
DrIOSX committed Jun 8, 2024
commit b70da1845f01edb29b7d0403871addf4c4f8f19f
6 changes: 4 additions & 2 deletions source/Public/Invoke-M365SecurityAudit.ps1
Original file line number Diff line number Diff line change
@@ -63,10 +63,12 @@ function Invoke-M365SecurityAudit {
[CmdletBinding(SupportsShouldProcess = $true, DefaultParameterSetName = 'Default')]
[OutputType([CISAuditResult[]])]
param (
[Parameter(Mandatory = $true)]
[Parameter(Mandatory = $true, HelpMessage = "The SharePoint tenant admin URL, which should end with '-admin.sharepoint.com'.")]
[ValidatePattern('^https://[a-zA-Z0-9-]+-admin\.sharepoint\.com$')]
[string]$TenantAdminUrl,

[Parameter(Mandatory = $true)]
[Parameter(Mandatory = $true, HelpMessage = "The domain name of your organization, e.g., 'example.com'.")]
[ValidatePattern('^[a-zA-Z0-9-]+\.[a-zA-Z]{2,}$')]
[string]$DomainName,

# E-Level with optional ProfileLevel selection
Loading