I get the following error when the Assessment tool gets to the "Getting Device compliance policies → Processing" stage. It is non-terminating.
MethodException: C:\Users<username>\Documents\PowerShell\Modules\ZeroTrustAssessment\2.1.0\private\tenantinfo\devices\Add-ZTDeviceCompliancePolicies.ps1:64
Line |
64 | $gracePeriod = [TimeSpan]::FromHours($action.gracePeriodH …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Cannot convert argument "value", with value: "System.Object[]", for "FromHours" to type "System.Double": "Cannot
| convert the "System.Object[]" value of type "System.Object[]" to type "System.Double"."
I am running ZTA 2.1.0 on Powershell 7.4.5