diff --git a/CHANGELOG.md b/CHANGELOG.md index 35acd63..bc6236e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ The format is based on and uses the types of changes according to [Keep a Change ## [Unreleased] +### Fixed + +- Get-SPOSite command to return all but voided output for no code runs (Ex: PowerAutomate) + +## [0.1.27] - 2025-01-13 + ### Added - Added additional error handling to connect function to identify problematic steps when they occur. diff --git a/helpers/Build-Help.ps1 b/helpers/Build-Help.ps1 index c35f681..b4b01eb 100644 --- a/helpers/Build-Help.ps1 +++ b/helpers/Build-Help.ps1 @@ -5,10 +5,10 @@ Import-Module .\output\module\M365FoundationsCISReport\*\*.psd1 <# - $ver = "v0.1.27" + $ver = "v0.1.28" git checkout main git pull origin main - git tag -a $ver -m "Release version $ver refactor Update" + git tag -a $ver -m "Release version $ver bugfix Update" git push origin $ver "Fix: PR #37" git push origin $ver diff --git a/source/Private/Connect-M365Suite.ps1 b/source/Private/Connect-M365Suite.ps1 index f93bd5e..43805ad 100644 --- a/source/Private/Connect-M365Suite.ps1 +++ b/source/Private/Connect-M365Suite.ps1 @@ -79,7 +79,8 @@ function Connect-M365Suite { (Get-PnPSite).Url } else { - $sites = Get-SPOSite + # Supress output from Get-SPOSite for powerautomate to avoid errors + [void]($sites = Get-SPOSite -Limit All) # Get the URL from the first site collection $url = $sites[0].Url # Use regex to extract the base URL up to the .com portion