Repository navigation
Checks that hold on Windows PowerShell 5.1, and tests that prove it.
Stricter checks
Runbooks that list required roles or app permissions now stop when they are missing, with a message that names them. Check the roles and app permissions of each automation identity before updating a project.
Common_0003__Confirm-MgDirectoryRoleActiveAssignment.ps11.0.1–1.0.2 checks every listed role on Windows PowerShell 5.1, where it checked only the first one, and returns the active role assignments again.Common_0003__Confirm-MgAppPermission.ps11.0.0 checks the listed app roles and delegated scopes. Before, it checked nothing. A delegated sign-in is not checked.Common_0002__Get-MgAppPermission.ps10.1.0 reads every page and stops on a failed read, so that a failed read is not taken for a missing permission.
Fixes
- Eleven runbooks no longer remove the caller's AllScope variables, such as
$HOME, when they clean up. Common_0002__Find-MgUserWithSoftDeleted.ps11.3.1 finds a user by user principal name. Before, a UPN was looked up asonPremisesSamAccountName.Common_0000__Write-CsvOutput.ps11.5.1 writes UTF-32 BE on Windows PowerShell 5.1.
New
Common_0001__Invoke-MgGraphRequest.ps11.3.0 takes-ThrowOnNotFound $true, which makes a 404 an error. The default is unchanged.
Tests
A workflow runs Pester tests on Windows PowerShell 5.1 and PowerShell 7 and checks Runbooks/ against Windows PowerShell 5.1 with PSScriptAnalyzer's compatibility rules.
Full Changelog: v1.8.1...v1.9.0