Application operations dashboard

Finding out what a business application is doing, and giving people a controlled way to do something about it.

I built an internal dashboard around a business-critical application running on Windows servers in Azure. The production environment supported everyday work; development was used for testing and demanding reports. Answering ordinary questions about either environment often meant opening the Azure portal, signing into a server or digging through application logs.

That was the starting point. Is the application ready for people to log in? Did the overnight jobs finish? Is a long report still working? Which session is consuming the memory? Can somebody start development without asking IT? The dashboard brings those questions into one application, with separate Production, Development and Scheduled tasks pages.

The client, application name and identifying operational details have been omitted from this account.

The working view · How it connects · Getting task results right · Operational controls · Debugging and performance


Enough context to investigate a problem

The server pages show state, uptime and resource usage, followed by application sessions, recent reports and a history of boots, shutdowns and crashes. The graphs separate CPU activity, server RAM, disk activity and the application's Java memory. That distinction matters when a machine appears healthy from the outside but the application is under pressure.

Open sessions add another layer: login time, memory use and sampled CPU activity. A large spreadsheet export can be running inside one person's session even when the rest of the application is fairly quiet. Seeing the session next to the server's overall load helps narrow down what needs investigation. Recent completed reports provide timings, and lifecycle events help explain interruptions.

Questions the dashboard helps answer
QuestionEvidence on the page
Can people use the application?VM state, a fresh agent report, service state and whether the application is accepting connections.
What is consuming resources?Server metrics, Java memory and per-session CPU and memory.
Did the scheduled work run?Configured schedules, confirmed completion results and individual-run history.
Did a restart interrupt something?Separate start, stop and unexpected-shutdown histories for each environment.
Has development been left running?Current power state, month-to-date cost and a stop control for authorised users.

Readiness is more involved than a green VM icon. A machine can be running while its application is still starting, or while the reporting agent has stopped checking in. The dashboard uses the agent's application-level checks as well as Azure's state. It distinguishes a missing report from a confirmed healthy application.

The servers report out

The web application runs in Azure Functions, with PowerShell handling the routes, rendering, Azure queries and shared behaviour. Azure Blob Storage holds the latest snapshots, historical results, cached metric series and the action queue. Small PowerShell agents run as scheduled tasks on the Windows servers.

Browser -- organisational sign-in --> Azure Functions
                                         |
                                         +--> Azure metrics and costs
                                         +--> Development VM controls
                                         +--> Blob snapshots and history
                                         +--> Action queue and audit results

Server agent -- outbound HTTPS --> Reporting endpoint
             <-- permitted action, if one is queued

Scheduled Logic App --> Failure digest --> Operations team

The agents push observations to the Function App and receive any queued action in the response. The web application does not need an inbound management connection to either server. Reporting covers service state, connection readiness, Java and server memory, application sessions, report activity and relevant Windows events.

Azure Monitor supplies infrastructure metrics. The agent supplies application context. Keeping those responsibilities separate avoids pretending that a cloud CPU graph can tell the whole story of a report, a user session or an application service. The page combines the two without making the browser responsible for talking to the servers.

Snapshots and history also serve different jobs. The latest report supports the live page; stored history makes yesterday's failure investigable. Metric and cost queries are cached at different intervals, since a frequently refreshed operational graph and delayed billing data should not be treated as equally current.

Getting scheduled-task results right

The scheduled-task view became one of the most useful parts of the project. It is a grid of tasks against dates, with reliability indicators and individual runs available by clicking a cell. The configured schedule sits alongside the results, so somebody can distinguish a task that was not due from one that should have run.

An early implementation tried to infer unfinished runs from scheduler-thread start messages. That produced misleading results: a single logical job could emit many thread messages, and successful recurring jobs could look as though they had failed to finish. I changed the outcome calculation to use the application's explicit completion result. Thread activity can help estimate duration, but it is not a reliable success or failure signal.

That change gives the grid a more precise meaning. Green and red represent confirmed completion results. A task that was not due gets a separate marker. A due task with no recorded completion remains visibly missing, including tasks with no completed runs anywhere in the selected period. It is a reason to investigate, not an invented failure result.

Schedules come from a read-only query against the application's database. The query runs on the server using its existing local connection configuration; the database credential is not sent to the web application. The last useful schedule snapshot is retained if a query returns no rows, instead of wiping the page during a temporary data problem.

Multiple schedules can belong to the same task. Matching that configuration to the application's log records was part of making the grid useful. A list of recorded results alone cannot reveal a job that quietly stopped running.

I also added an email digest through Azure Logic Apps. Its timing was moved later in the morning so it would include the morning workload as well as overnight work. The send time is the reporting cut-off: sending a digest before the relevant jobs run gives people an incomplete picture even if the query itself is correct.

Useful controls with limited reach

Authorised dashboard users can start and stop the development VM. Stop requests deallocation, and the environment can be started again when needed. This replaced a broken email-triggered startup process and made the everyday control available where people were already checking status. Running cost is displayed on the same page, alongside the environment's existing shutdown arrangements.

Designated IT users have two additional application actions: ending an individual session and restarting the application service on development. The production VM has no power controls in the dashboard. Application restart is restricted to development, and there is no facility for sending arbitrary commands.

A session action travels through a queue. The web application records the request, the server picks it up, and the agent checks the target before acting. Process ancestry and the exact application session have to match. The agent then reports the result, leaving a record of who requested the action and what happened.

Requests also expire. A server returning after a long outage should not execute an old request against a session that may no longer represent the original problem. The distinction between queued, in flight and completed is useful both for the person waiting for an action and for troubleshooting an action that never happened.

Identity belongs in the design

Microsoft Entra sign-in is enforced through App Service Authentication. Application assignment and a security group control dashboard access, with separate authorisation for the IT actions. The Function App uses a system-assigned managed identity when it reads Azure data, accesses storage and operates the development VM.

The Azure role for development is limited to the required state and power operations. Monitoring access is scoped separately, and the identity has no authority to power-control production or delete either VM. Server reporting uses separate credentials for the two environments, checked against the environment named in the report.

The page also validates incoming data, escapes displayed text, checks the origin of action requests and applies content-security and anti-framing headers. The agent still performs its own action validation. Being allowed to request an operation and proving that the target is the intended application process are separate checks.

The interesting failures were below the interface

One fault left the VM showing as on while the graphs, sessions and histories were empty. The cloud state query still worked, but storage reads were failing. A long-lived Function App worker had retained an expired managed-identity token. Restarting the worker recovered the page; the lasting correction was to cache tokens with their real expiry and renew them before they expired.

Another correction involved CPU measurements. A cumulative CPU-time counter keeps increasing over a process's lifetime. Treating it as a current-load signal had produced a warning that would not clear. The corrected display calculates current usage from a short sample instead.

These were useful lessons in checking what a number actually means. A graph can look convincing while its underlying measurement answers a different question. The same caution applies to report ownership: where the application only supports matching an initiating session by time, that association remains approximate.

The work also extended into development-only performance tuning: Java memory and garbage collection, connection-pool settings, application caching, report work allocation, session lifetime and PostgreSQL configuration. Slow-query logging and configuration backups supported that work. The production configuration was kept separate.

Some application behaviours still needed vendor investigation, including reports that continued after cancellation and expensive spreadsheet rendering. The dashboard supplied observations and timings for those investigations. I have not attached an unmeasured speed-up percentage to the tuning work.

Something another person can look after

The handover describes the resources, access model, agents, data files, deployment process and recovery steps. It covers stale reports, access failures, startup problems, token expiry and actions that never complete. Maintenance and removal are documented too.

What I like about this project is how many layers it made me work through. The useful thing somebody sees in their browser depends on the application logs, Windows processes, database schedules, Azure identity, storage and the interpretation of each result. Getting those pieces to agree was the substantial part of the job.

Customer service dashboard · This project in my work experience · All projects