New-UDPage -Url "/LiveSnapshots" -Name "LiveSnapshots" -Content {
New-UDForm -Content {
    New-UDRow -Columns {
        New-UDColumn -SmallSize 6 -LargeSize 6 -Content {
            
        }
    }
} -OnSubmit {
    Connect-ITDvCenter -Credential $Secret:svcitdvmsnapmgr
    Show-UDToast -Message ("attempting query") -
    $AllSnapshots = Get-Datacenter | Where-Object Name -notlike "Normandy*" | Get-VM | Get-Snapshot | Select-Object VM,Name,SizeGB,Created,Description
    Disconnect-ITDvCenter

    New-UDTable -Columns @(
        New-UDTableColumn -Property "VM" -Title "VM" -ShowFilter
        New-UDTableColumn -Property 'Name' -Title 'Name' -ShowFilter
        New-UDTableColumn -Property "SizeGB" -Title "SizeGB"
        New-UDTableColumn -Property "Created" -Title "Created"
        New-UDTableColumn -Property "Description" -Title "Description"       
        
    ) -Data ($AllSnapshots) -ShowPagination -PageSize 20 -Dense
}
} -Title "LiveSnapshots" -Icon @{
		type = 'icon'
		id = '74a7d396-2f35-4e10-a5c1-918f59bea61d'
	}