ssc-spc-ccoe-cei / azure-guardrails-solution-accelerator

This implementation automates reporting to verify compliance with GC Cloud Guardrails. SSC and TBS review the results. Cette mise en œuvre automatise la production de rapports afin de vérifier la conformité aux mesures de sécurité infonuagique du GC. SPC et SCT examinent les résultats.
Other
7 stars 4 forks source link

[Bug fix] Update code for Get-AzSecurityContact error - introduced due to PS module bug #98

Closed dutt0 closed 7 months ago

dutt0 commented 7 months ago

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

image

As part of this Pull Request I have