[Bug fix] Update code for Get-AzSecurityContact error - introduced due to PS module bug #98
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.
Overview/Summary
The command Get-AzSecurityContact gives a 'unable to deserialize the response' error. This error is only noticeable for Az.Security version 1.5.1 with runtime PS v5.1. This pull request has updated code to have a workaround for this Az.Security module bug.
This PR fixes/adds/changes/removes
This pull request has the fix using management security API
Additional context
A combination of Az.security version v1.3.0/ v1.4.0 and PS v5.1 works as expected with no error in runbook.
Az.security version v1.5.0 and PS v5.1 combination was not tested.
Testing Evidence
As part of this Pull Request I have
main
branch