AppComplianceAutomation.Autorest/custom/Utils.ps1


# ----------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ----------------------------------------------------------------------------------

function Get-ResourceId-Array {
    [Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.DoNotExportAttribute()]
    param(
        [Parameter(Mandatory)]
        [Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IResourceMetadata[]]
        $Resources
    )
    $Result = [System.Collections.Generic.List[object]]::new()
    foreach ($Resource in $Resources) {
        $Result.Add($Resource.ResourceId)
    }
    return $Result.ToArray()
}

function Get-Resource-Subscriptions {
    [Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.DoNotExportAttribute()]
    param(
        [Parameter(Mandatory)]
        [string[]]
        $Resources
    )
    $SubscriptionSet = [Collections.Generic.HashSet[string]]@()
    foreach ($Resource in $Resources) {
        try {
            $Strs = $Resource.Split("/")
            if ($Strs.Count -lt 3) {
                Write-Error "Please input valid resource ids"
            }
            $null = $SubscriptionSet.Add($Strs[2])
        }
        catch {
            Write-Error "Please input valid resource ids"
        }
    }
    $Result = New-Object string[] $SubscriptionSet.Count
    $null = $SubscriptionSet.CopyTo($Result)
    return $Result
}

function Get-Nearest-Time {
    [Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.DoNotExportAttribute()]
    param()
    $RoundedDate = Get-Date -Minute 0 -Second 0 -Millisecond 0
    return $RoundedDate.ToUniversalTime().ToString("yyyy-MM-ddTHH:mm:ss.fffK")
}

function Get-Token {
    [Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.DoNotExportAttribute()]
    param()
    try {
        $token = . "$PSScriptRoot/../utils/Unprotect-SecureString.ps1" (Get-AzAccessToken -AsSecureString).Token
        return "Bearer " + $token
    }
    catch {}
    return ""
}

function Add-Custom-Header {
    [Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.DoNotExportAttribute()]
    param(
        [Parameter(Mandatory)]
        $PSBoundParameters
    )
    if (-Not $PSBoundParameters.ContainsKey('XmsAadUserToken')) {
        $PSBoundParameters['XmsAadUserToken'] = Get-Token
    }
    return $PSBoundParameters
}

function Get-Runtime-Parameters {
    [Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.DoNotExportAttribute()]
    param(
        [Parameter(Mandatory)]
        $PSBoundParameters
    )
    $Object = @{}
    if ($PSBoundParameters.ContainsKey('XmsAadUserToken')) {
        $Object['Break'] = $PSBoundParameters.Break
    }
    if ($PSBoundParameters.ContainsKey('HttpPipelineAppend')) {
        $Object['HttpPipelineAppend'] = $PSBoundParameters.HttpPipelineAppend
    }
    if ($PSBoundParameters.ContainsKey('HttpPipelinePrepend')) {
        $Object['HttpPipelinePrepend'] = $PSBoundParameters.HttpPipelinePrepend
    }
    if ($PSBoundParameters.ContainsKey('Proxy')) {
        $Object['Proxy'] = $PSBoundParameters.Proxy
    }
    if ($PSBoundParameters.ContainsKey('ProxyCredential')) {
        $Object['ProxyCredential'] = $PSBoundParameters.ProxyCredential
    }
    if ($PSBoundParameters.ContainsKey('ProxyUseDefaultCredentials')) {
        $Object['ProxyUseDefaultCredentials'] = $PSBoundParameters.ProxyUseDefaultCredentials
    }
    return $Object
}

function Get-FilteredControlAssessments {
    [Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.DoNotExportAttribute()]
    param(
        [Parameter(Mandatory)]
        [Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.ICategory[]]
        $Categories,

        [Parameter(Mandatory)]
        $ComplianceStatus
    )

    $Results = [System.Collections.Generic.List[object]]::new()
    foreach ($Category in $Categories) {

        $FilteredFamilies = [System.Collections.Generic.List[object]]::new()
        foreach ($Family in $Category.ControlFamily) {

            $FilteredControls = [System.Collections.Generic.List[object]]::new()
            foreach ($Control in $Family.Control) {

                if ($Control.Status -eq $ComplianceStatus) {
                    $FilteredControls.Add($Control)
                }
            }

            $NewFamily = @{
                Name    = $Family.Name
                Status  = $Family.Status
                Control = $FilteredControls
            }
            $NewFamily.Control = $FilteredControls.ToArray()
            if ($FilteredControls.Count) {
                $FilteredFamilies.Add($NewFamily)
            }
        }

        $NewCategory = @{
            Name          = $Category.Name
            Status        = $Category.Status
            ControlFamily = $FilteredFamilies
        }
        $NewCategory.ControlFamily = $FilteredFamilies.ToArray()
        if ($FilteredFamilies.Count) {
            $DeserializedCategory = [Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.Category]::DeserializeFromDictionary($NewCategory)
            $Results.Add($DeserializedCategory)
        }
    }
    $Results.ToArray()
}

# SIG # Begin signature block
# MIIoLAYJKoZIhvcNAQcCoIIoHTCCKBkCAQExDzANBglghkgBZQMEAgEFADB5Bgor
# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG
# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCAN52XzMy1gewGb
# 2zD8OGuzePjdR+t56mOtH3DFSYwMTaCCDXYwggX0MIID3KADAgECAhMzAAAEBGx0
# Bv9XKydyAAAAAAQEMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD
# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy
# b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p
# bmcgUENBIDIwMTEwHhcNMjQwOTEyMjAxMTE0WhcNMjUwOTExMjAxMTE0WjB0MQsw
# CQYDVQQGEwJVUzETMBEGA1UECBMKV2Fz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