Functions/z_ALPHA_Import-MCASDynamicData.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
function Import-MCASDynamicData {
    [CmdletBinding()]
    param
    (
        # Specifies the CAS credential object containing the 64-character hexadecimal OAuth token used for authentication and authorization to the CAS tenant.
        [Parameter(Mandatory=$false)]
        [ValidateNotNullOrEmpty()]
        [System.Management.Automation.PSCredential]$Credential = $CASCredential
    )
    $Global:IPTagsList = @{}
    Get-MCASTag | ForEach-Object {
        try {
            $IPTagsList.Add(($_.Name.Replace(' ','_')),$_.id)
        }
        catch {}        
    }
}