diff --git a/Scripts/RenderingSession.ps1 b/Scripts/RenderingSession.ps1 index 63bbc359..125fd999 100644 --- a/Scripts/RenderingSession.ps1 +++ b/Scripts/RenderingSession.ps1 @@ -74,7 +74,7 @@ if (-Not $LoggedIn) { # returns a session ID which can be used to retrieve session status function CreateRenderingSession($authenticationEndpoint, $serviceEndpoint, $accountId, $accountKey, $vmSize = "standard", $maxLeaseTime = "4:0:0", $additionalParameters, $sessionId) { try { - $maxLeaseTimeInMinutes = ([timespan]$config.renderingSessionSettings.maxLeaseTime).TotalMinutes + $maxLeaseTimeInMinutes = ([timespan]$config.renderingSessionSettings.maxLeaseTime).TotalMinutes -as [int] $body = @{ @@ -196,7 +196,7 @@ function UpdateSession($authenticationEndpoint, $serviceEndpoint, $accountId, $a try { $body = @{ - maxLeaseTimeMinutes = $maxLeaseTime.TotalMinutes; + maxLeaseTimeMinutes = $maxLeaseTime.TotalMinutes -as [int]; } | ConvertTo-Json $url = "$serviceEndpoint/accounts/$accountId/sessions/${sessionId}?api-version=2021-01-01-preview" @@ -390,8 +390,8 @@ PollSessionStatus -authenticationEndpoint $config.accountSettings.authentication # SIG # Begin signature block # MIInKQYJKoZIhvcNAQcCoIInGjCCJxYCAQExDzANBglghkgBZQMEAgEFADB5Bgor # BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG -# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCAOWHNseeA3qmTI -# ZrXdFlGej95QeThzHZfndrLryA6x26CCEWUwggh3MIIHX6ADAgECAhM2AAABOXjG +# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCAJcJm2OSpYhKTa +# 7Z+7tpMlG1ii1/4Rxjwa2dNx6rDsVqCCEWUwggh3MIIHX6ADAgECAhM2AAABOXjG # OfXldyfqAAEAAAE5MA0GCSqGSIb3DQEBCwUAMEExEzARBgoJkiaJk/IsZAEZFgNH # QkwxEzARBgoJkiaJk/IsZAEZFgNBTUUxFTATBgNVBAMTDEFNRSBDUyBDQSAwMTAe # Fw0yMDEwMjEyMDM5MDZaFw0yMTA5MTUyMTQzMDNaMCQxIjAgBgNVBAMTGU1pY3Jv @@ -488,50 +488,50 @@ PollSessionStatus -authenticationEndpoint $config.accountSettings.authentication # R0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRUwEwYDVQQDEwxBTUUgQ1MgQ0EgMDEC # EzYAAAE5eMY59eV3J+oAAQAAATkwDQYJYIZIAWUDBAIBBQCgga4wGQYJKoZIhvcN # AQkDMQwGCisGAQQBgjcCAQQwHAYKKwYBBAGCNwIBCzEOMAwGCisGAQQBgjcCARUw -# LwYJKoZIhvcNAQkEMSIEIHbfHV2eBES5v79XjvCa7teijwiRoe31AEk0XspLspHR +# LwYJKoZIhvcNAQkEMSIEII1H9tT/RSh+ej/ydoM6blvpv0CAGCJWbgLt6kdllzBi # MEIGCisGAQQBgjcCAQwxNDAyoBSAEgBNAGkAYwByAG8AcwBvAGYAdKEagBhodHRw -# Oi8vd3d3Lm1pY3Jvc29mdC5jb20wDQYJKoZIhvcNAQEBBQAEggEAXCpiZ9/spsQN -# i30nVWSuFgw8byXU4Isnk6etE9IGTeR/TEXjfhkoy2NEuYKmaG3kjEaS8E3R8Jlx -# 1Cy/fZIs7fLzF1I2Ulb40o9dy3UXzQ61HOuey77l0IiJq0eQVOnPrlWpyADMlGnQ -# tUiMXSpxpwn7W8RGVRR9+lzmV6e5iLUnHLzsZeLoI7zu9EdV/Q0d4V2x5rdvyfRV -# vWhtYRJsVwrZyVdYCZkAsGOSVHzfo5mDWi2jx5wYOV/ZXSNyeg7dmsqo5NMeUzTY -# LKhCYXMV51kzGRBCAMSWibQBBsQdpfGT5NHUMDHVajjVIKZbkv1Abwi4YSvQlDvQ -# 6CdPFwakhqGCEuIwghLeBgorBgEEAYI3AwMBMYISzjCCEsoGCSqGSIb3DQEHAqCC +# Oi8vd3d3Lm1pY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RvbjEQMA4GA1UEBxMH # UmVkbW9uZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMTIwMAYDVQQD # EylNaWNyb3NvZnQgUm9vdCBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkgMjAxMDAeFw0x @@ -569,32 +569,32 @@ PollSessionStatus -authenticationEndpoint $config.accountSettings.authentication # zTCByjELMAkGA1UEBhMCVVMxEzARBgNVBAgTCldhc2hpbmd0b24xEDAOBgNVBAcT # B1JlZG1vbmQxHjAcBgNVBAoTFU1pY3Jvc29mdCBDb3Jwb3JhdGlvbjElMCMGA1UE # CxMcTWljcm9zb2Z0IEFtZXJpY2EgT3BlcmF0aW9uczEmMCQGA1UECxMdVGhhbGVz -# IFRTUyBFU046QUUyQy1FMzJCLTFBRkMxJTAjBgNVBAMTHE1pY3Jvc29mdCBUaW1l -# LVN0YW1wIFNlcnZpY2WiIwoBATAHBgUrDgMCGgMVAIcrgpa6HFn+EiHEWnwBF9UY -# bOs5oIGDMIGApH4wfDELMAkGA1UEBhMCVVMxEzARBgNVBAgTCldhc2hpbmd0b24x +# IFRTUyBFU046MTJCQy1FM0FFLTc0RUIxJTAjBgNVBAMTHE1pY3Jvc29mdCBUaW1l +# LVN0YW1wIFNlcnZpY2WiIwoBATAHBgUrDgMCGgMVAIpKTe3HDtZPTyghgr2kFisi +# edGboIGDMIGApH4wfDELMAkGA1UEBhMCVVMxEzARBgNVBAgTCldhc2hpbmd0b24x # EDAOBgNVBAcTB1JlZG1vbmQxHjAcBgNVBAoTFU1pY3Jvc29mdCBDb3Jwb3JhdGlv # bjEmMCQGA1UEAxMdTWljcm9zb2Z0IFRpbWUtU3RhbXAgUENBIDIwMTAwDQYJKoZI -# hvcNAQEFBQACBQDj1/AXMCIYDzIwMjEwMjE4MDM0MjE1WhgPMjAyMTAyMTkwMzQy -# MTVaMHQwOgYKKwYBBAGEWQoEATEsMCowCgIFAOPX8BcCAQAwBwIBAAICEIYwBwIB -# AAICEVQwC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