Open SponTanious opened 1 year ago
Let me route this to the Azure Security team.
BTW @SponTanious hi, I noticed the call is in a for-loop. Does the command not work for every subscription? Any error when Set-AzContext
?
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @zivraf.
@isra-fel No errors with Set-AzContext
hi,
any news on this one?
facing the same issue, can't run Get-AzSecurityTask.
thanks,
Issue still exists but I wanted to post a work around I found.
@ghetzu - you can use the following as an alternative.
$SecurityAssements = Get-AzSecurityAssessment | Where-Object {$_.Status.Code -eq "Unhealthy"} | Group-Object 'DisplayName' | ForEach-Object { $_.Group[0] }
$SecurityAssementMetadatas = $SecurityAssements | ForEach-Object {Get-AzSecurityAssessmentMetadata -ResourceId $_.Id}
$SecurityRecommendations = $SecurityAssementMetadatas | Select-Object DisplayName, Severity
stale issue?
stale issue?
No I don't believe so
Description
Hi Team,
I am unable to run Get-AzSecurityTask on a Subscription.
This is the error I am getting, I have access to a lot of subscriptions and this error is occurring for all of them.
Looks like it was a bug that existed previously. issue
Let me know if you would like anymore details.
Kind Regards, Daniel Tanious
Issue script & Debug output
Debug Output: Can't provide as it contains to much sensitive data.
Module versions
Error output