[SecurityInsights] Re-record tests, fix setup scripts, and resolve issues for AutoRest v4 migration#29316
Merged
JiaSeng-v merged 2 commits intoAzure:joyer/SecurityInsights-migrate-v4from Mar 26, 2026
Conversation
| Thanks for your contribution! The pull request validation has started. Please revisit this comment for updated status. |
2ebfc20 to
a8b9233
Compare
…ve API issues for AutoRest v4 migration
a8b9233 to
e6fffbd
Compare
b758056
into
Azure:joyer/SecurityInsights-migrate-v4
1 check was pending
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds test recording updates and fixes for the SecurityInsights AutoRest v3→v4 migration (PR #28447).
The v4 migration invalidated some test recordings. This PR re-records all tests and fixes several issues
discovered during the process.
Recordings: Re-recorded all test recordings with v4 HTTP patterns. All 103 tests pass in
Playback (24 skipped, 0 failed).
AutoRest config (README.md): Added UserInfo directive — v4 excludes readOnly fields from PUT body, which
caused Update-AzSentinelBookmark to send a partial createdBy object (400 error). The directive makes email/name
writable in Update requests.
Setup scripts (utils.ps1, common.ps1):
subscription-level cmdlet)
Office365 fails)
Test logic changes:
not support updating an existing relation's target.
a service license not available in test environment).
Bug fix (custom/New-AzSentinelDataConnector.ps1): Fixed GenericUI PermissionResourceProvider and
PermissionCustom assignment — was incorrectly assigned to AvailabilityStatus.
Mandatory Checklist
Please choose the target release of Azure PowerShell. (⚠️ Target release is a different concept from API readiness. Please click below links for details.)
Check this box to confirm: I have read the Submitting Changes section of
CONTRIBUTING.mdand reviewed the following information:ChangeLog.mdfile(s) appropriatelysrc/{{SERVICE}}/{{SERVICE}}/ChangeLog.md.## Upcoming Releaseheader in the past tense.ChangeLog.mdif no new release is required, such as fixing test case only.