UDHotReloader In Azure App Services

Has anyone been able to get the UDHotReloader, either adam’s version or itfranck’s version, working in Azure App Services? Or some form of update at least pages without restarting the web service?

Update on this. I can’t seem to get either versions of the UDHotReloader working at all on my local machine.
I keep getting this error in the logs [Warn] DashboardController Failed to update dashboard. Dashboard script was null.
Along with the error

[Warn] PowerShellExecutionService Error executing endpoint 7a33f1a8-4071-4175-8338-625de03f00c1. The remote server returned an error: (400) Bad Request. **
** at Update-UDDashboard, C:\Program Files\WindowsPowerShell\Modules\UniversalDashboard\2.9.0\UniversalDashboardServer.psm1: line 1432

at , : line 2

Is anyone using these successfully outside of Azure?

Hi @RamonMA,

Honestly, haven’t tried it outside development usage on my local machine.
When you’re refering to ‘adam’s’ i would asume you mean the -autorealod on new-uddashboard?

Hi @BoSen29, no I mean the one mentioned in this blog post https://ironmansoftware.com/faster-universal-dashboard-development-with-udhotreloader/

And @itfranck’s version:

Since I can’t get either of them working I might just try to use Update-UDDashboard directly or write my own function to do it.

Hi again @RamonMA,

Newer versions of UD has this feature built in by default.
On your new-uddashboard command there is a switch called “-autoreload” which basically does exactly this.
Could you give it a go?

I use the -autoreload, but that only looks at the dashboard.ps1. I have my pages in separate ps1 files and in subfolders. UDHotReload is supposed to look at other files in the same directory for changes and update the dashboard. The one from itfranck is supposed to do the same but also subdirectories.

I’ve just been trying to get this working on version 2.9 with IIS. Works fine if I build a standalone test dashboard as per https://ironmansoftware.com/faster-universal-dashboard-development-with-udhotreloader/, but when I switch to my actual dashboard running on IIS, each time a page is updated I get:

System.Net.WebException: The remote server returned an error: (400) Bad Request.
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()

Just running Update-UDDashboard returns:

Invoke-RestMethod : The remote server returned an error: (400) Bad Request.
At C:\Program Files\WindowsPowerShell\Modules\UniversalDashboard\2.9.0\UniversalDashboardServer.psm1:1432 char:3
Invoke-RestMethod -Uri “$Url/api/internal/dashboard” -Headers …
CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand

Has anyone got this working with IIS?