Framework/Core/SVT/SubscriptionSecurityStatus.ps1
Set-StrictMode -Version Latest class SubscriptionSecurityStatus: SVTCommandBase { SubscriptionSecurityStatus([string] $subscriptionId, [InvocationInfo] $invocationContext): Base($subscriptionId, $invocationContext) { } hidden [SVTEventContext[]] RunAllControls() { [SVTEventContext[]] $result = @(); $svtClassName = [SVTMapping]::SubscriptionMapping.ClassName $svtObject = New-Object -TypeName $svtClassName -ArgumentList $this.Context.SubscriptionId $svtObject.FilterTags = $this.ConvertToStringArray($this.FilterTags); $svtObject.ExcludeTags = $this.ConvertToStringArray($this.ExcludeTags); $svtObject.ControlIds = $this.ConvertToStringArray($this.ControlIds); $result += $svtObject.EvaluateAllControls(); [ListenerHelper]::RegisterListeners(); return $result; } } |