diff --git a/scripts/Bootstrap/Install-AutopilotMonitor.ps1 b/scripts/Bootstrap/Install-AutopilotMonitor.ps1 index 822f0664..c8cde89c 100644 --- a/scripts/Bootstrap/Install-AutopilotMonitor.ps1 +++ b/scripts/Bootstrap/Install-AutopilotMonitor.ps1 @@ -35,11 +35,12 @@ [CmdletBinding()] param( [Parameter(Mandatory = $false)] - [string]$ApiBaseUrl = "http://localhost:7071", + #[string]$ApiBaseUrl = "http://localhost:7071", + [string]$ApiBaseUrl = "https://autopilotmonitor-func.azurewebsites.net", [Parameter(Mandatory = $false)] - [string]$AgentDownloadUrl = "https://yourcdn.blob.core.windows.net/agent/AutopilotMonitor-Agent.zip", - + [string]$AgentDownloadUrl = "https://autopilotmonitor.blob.core.windows.net/agent/AutopilotMonitor-Agent.zip", + [Parameter(Mandatory = $false)] [int]$MaxOsAgeHours = 5 ) diff --git a/src/Web/autopilot-monitor-web/public/maintenance.html b/src/Web/autopilot-monitor-web/public/maintenance.html new file mode 100644 index 00000000..f11d3831 --- /dev/null +++ b/src/Web/autopilot-monitor-web/public/maintenance.html @@ -0,0 +1,46 @@ + + + + + + Under Maintenance – Autopilot Monitor + + + +
+
🔧
+

Under Maintenance

+

Website is currently undergoing maintenance.
Please check back later.

+
+ + diff --git a/src/Web/autopilot-monitor-web/staticwebapp.config.README.json b/src/Web/autopilot-monitor-web/staticwebapp.config.README.json new file mode 100644 index 00000000..f9ca2281 --- /dev/null +++ b/src/Web/autopilot-monitor-web/staticwebapp.config.README.json @@ -0,0 +1,12 @@ +Copy below content to `src/Web/autopilot-monitor-web/staticwebapp.config.json` to enable maintenance mode for the web application. +This will serve a maintenance page for all routes. + +{ + "routes": [ + { + "route": "/*", + "serve": "/maintenance.html", + "statusCode": 503 + } + ] +} diff --git a/src/Web/autopilot-monitor-web/staticwebapp.config.json b/src/Web/autopilot-monitor-web/staticwebapp.config.json new file mode 100644 index 00000000..258c259e --- /dev/null +++ b/src/Web/autopilot-monitor-web/staticwebapp.config.json @@ -0,0 +1,9 @@ +{ + "routes": [ + { + "route": "/*", + "serve": "/maintenance.html", + "statusCode": 503 + } + ] +}