<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/windows-azure-diagnostics-in-php-thijmdrvh" -->

---
title: Windows Azure Diagnostics in PHP | daily.dev
description: Explains how to configure diagnostics for PHP applications hosted on Windows Azure using the Windows Azure Diagnostics Monitor, which collects logs, traces,...
canonical: https://daily.dev/posts/windows-azure-diagnostics-in-php-thijmdrvh
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Windows Azure Diagnostics in PHP | daily.dev
og:description: Explains how to configure diagnostics for PHP applications hosted on Windows Azure using the Windows Azure Diagnostics Monitor, which collects logs, traces,...
og:url: https://daily.dev/posts/windows-azure-diagnostics-in-php-thijmdrvh
og:image: https://api.daily.dev/og/posts/thIJmdRVH.png
og:image:alt: Windows Azure Diagnostics in PHP
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Windows Azure Diagnostics in PHP

**[Maarten Balliauw](https://daily.dev/sources/maartenballiauw)** · 3 min read · 0 upvotes · 0 comments

## Summary

Explains how to configure diagnostics for PHP applications hosted on Windows Azure using the Windows Azure Diagnostics Monitor, which collects logs, traces, and performance counters from virtual machines into blob and table storage. Shows a code example for subscribing to a performance counter using the Windows Azure SDK for PHP, and introduces a standalone tool, Windows Azure Diagnostics Manager for PHP, a single downloadable PHP file providing a web UI to configure diagnostics without writing code.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blog.maartenballiauw.be/posts/2010-09-23-windows-azure-diagnostics-in-php>

## Questions this post answers

### How do I subscribe to a performance counter in Windows Azure Diagnostics using PHP?

Use the Windows Azure SDK for PHP's Diagnostics Manager class to load the current role instance's configuration, then call addSubscription on DataSources->PerformanceCounters with the counter path and sample rate, for example '\Processor(*)\% Processor Time' sampled every 1 second, then save the configuration back with setConfigurationForCurrentRoleInstance.

_Developers wiring up Azure diagnostics in PHP can find more deployment tips on daily.dev._

### How does Windows Azure Diagnostics Monitor collect logs from multiple virtual machines?

A separate Diagnostics Monitor process runs on every virtual machine in a Windows Azure deployment, collecting log data, traces, and performance counter values, then copying that data into a storage account's blobs and tables so diagnostics from hundreds of machines can be consolidated and analyzed in one place, rather than logging into each machine individually.

_Teams scaling cloud deployments can track architecture patterns like this on daily.dev._

## Similar posts on daily.dev

- [Monitor Your PHP Applications with AppSignal](https://daily.dev/posts/monitor-your-php-applications-with-appsignal-yuyfueyh7) · AppSignal · 1 upvotes · 0 comments
- [Enabling the Application Insights Profiler](https://daily.dev/posts/enabling-the-application-insights-profiler-iov3s2yke) · The Art of Simplicity · 0 upvotes · 0 comments
- [Monitor Azure Functions across every hosting plan with Datadog](https://daily.dev/posts/monitor-azure-functions-across-every-hosting-plan-with-datadog-qdszmzrli) · Datadog · 0 upvotes · 0 comments
- [How to Monitor an Application with Auto Instrumentation in Azure?](https://daily.dev/posts/how-to-monitor-an-application-with-auto-instrumentation-in-azure--vebkhydrv) · C\# Corner · 0 upvotes · 0 comments

---

Tags: [#cloud](https://daily.dev/tags/cloud), [#php](https://daily.dev/tags/php)

[View this post on daily.dev](https://daily.dev/posts/windows-azure-diagnostics-in-php-thijmdrvh)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Windows Azure Diagnostics in PHP","url":"https://daily.dev/posts/windows-azure-diagnostics-in-php-thijmdrvh","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/windows-azure-diagnostics-in-php-thijmdrvh"},"datePublished":"2026-10-04T13:05:15.636Z","dateModified":"2026-10-04T13:36:37.553Z","description":"Explains how to configure diagnostics for PHP applications hosted on Windows Azure using the Windows Azure Diagnostics Monitor, which collects logs, traces,...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/4b3f0545a732a31a4a508797c3f05efd?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/4b3f0545a732a31a4a508797c3f05efd?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Maarten Balliauw","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Maarten Balliauw","logo":"https://media.daily.dev/image/upload/s--rOTg3VYO--/f_auto,q_auto/v1791119043/logos/maartenballiauw?_a=BAMAMicg0","url":"https://daily.dev/sources/maartenballiauw"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/windows-azure-diagnostics-in-php-thijmdrvh","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"cloud,php","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Maarten Balliauw","item":"https://daily.dev/sources/maartenballiauw"},{"@type":"ListItem","position":3,"name":"Windows Azure Diagnostics in PHP"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/windows-azure-diagnostics-in-php-thijmdrvh#faq","mainEntity":[{"@type":"Question","name":"How do I subscribe to a performance counter in Windows Azure Diagnostics using PHP?","acceptedAnswer":{"@type":"Answer","text":"Use the Windows Azure SDK for PHP's Diagnostics Manager class to load the current role instance's configuration, then call addSubscription on DataSources->PerformanceCounters with the counter path and sample rate, for example '\\Processor(*)\\% Processor Time' sampled every 1 second, then save the configuration back with setConfigurationForCurrentRoleInstance. Developers wiring up Azure diagnostics in PHP can find more deployment tips on daily.dev."}},{"@type":"Question","name":"How does Windows Azure Diagnostics Monitor collect logs from multiple virtual machines?","acceptedAnswer":{"@type":"Answer","text":"A separate Diagnostics Monitor process runs on every virtual machine in a Windows Azure deployment, collecting log data, traces, and performance counter values, then copying that data into a storage account's blobs and tables so diagnostics from hundreds of machines can be consolidated and analyzed in one place, rather than logging into each machine individually. Teams scaling cloud deployments can track architecture patterns like this on daily.dev."}}]}
```

