Param (
    [string]
    $Fqdn,

    [string]
    $RitmNum
)

New-ITDServiceNowSession -Environment Production -Credential $Secret:snow_vmcred

$Ritm = Get-ITDServiceNowRecord -ItemType 'Request Item' -Number $RitmNum -IncludeVariableSet -IncludeCustomVariable
$Row = $Ritm.VariableSet | Where-Object host_name -eq $Fqdn

$NewITDVMwareSharePointVMRecordParams = @{
    HostName = $Fqdn;
    LicensingRestrictions = $Row.licensing_restrictions;
    DataCenter = $Row.data_center;
    Environment = $Ritm.CustomVariable.environment.value;
    StartupPriority = $Row.startup_priority;
    OperatingSystem = $Row.operating_system;
    DR_Protection = $Row.dr_protection;
    CPU = $Row.processors;
    MemoryGB = $Row.memory_gb;
    Disk1 = $Row.disk_1_os;
    Disk2 = $Row.disk_2_swap_disk;
    Disk3 = $Row.disk_3;
}
New-ITDVMwareSharePointVMRecord @NewITDVMwareSharePointVMRecordParams