IMDSCore is a diagnostic and health monitoring utility designed to validate Azure Managed Identity and DefaultAzureCredential token acquisition behavior via the IMDS (Instance Metadata Service) endpoint.
IMDSCore is a diagnostic and health monitoring utility designed to validate Azure Managed Identity and DefaultAzureCredential token acquisition behavior via the IMDS (Instance Metadata Service) endpoint. It helps identify issues related to identity and token acquisition in cloud environments.
Key Features:
Managed Identity Token Probing: Uses either ManagedIdentityCredential or DefaultAzureCredential modes to repeatedly request tokens and log results.
Network Trace Collection: Captures IMDS traffic using netsh (Windows) or tcpdump (Linux) for connectivity troubleshooting.
Proxy Configuration Diagnostics: Logs proxy settings and tests their impact on IMDS traffic.
Flexible Logging: Supports custom log directories, adjustable file sizes (default 250MB), and up to four rotated files.
Support for Local Authentication Modes: Enables credential providers beyond IMDS, including environment variables, Azure CLI, PowerShell, browser-based login, and more.
Audience & Benefit:
Ideal for developers, DevOps engineers, and cloud architects working with Azure services such as Virtual Machines, App Services, AKS (with Workload Identity), or Service Fabric. IMDSCore helps diagnose token acquisition failures, connectivity issues, and authentication problems, ensuring smooth operation of cloud-based applications. It can be installed via winget on Windows.
README
IMDSCore – Azure Managed Identity Diagnostics
IMDSCore is a diagnostic and health monitoring utility designed to validate Azure Managed Identity and DefaultAzureCredential token acquisition behavior via the IMDS (Instance Metadata Service) endpoint. It optionally supports packet-level network tracing and proxy probing to help identify connectivity or authentication issues.
This tool is especially useful for diagnosing identity and token failures in environments such as:
Azure Virtual Machines or App Services using Managed Identity
Azure Kubernetes Service (AKS) with Workload Identity
Azure-hosted containers or Service Fabric applications
Cloud and local development environment.
Core Features
Managed Identity Token Probing
Uses ManagedIdentityCredential (--mode mic) or DefaultAzureCredential (--mode dac) to repeatedly request tokens and log results.
Failure Threshold Monitoring
Automatically exits after N consecutive token acquisition failures.
Network Trace Collection
Captures IMDS traffic using netsh (Windows) or tcpdump (Linux) to help debug connectivity issues.
Proxy Configuration Diagnostics
Optionally logs proxy settings and diagnostics using --proxyprob.
Flexible Logging
Supports custom log directories, log file size can be dynamically set (default unit: 250MB), and up to 4 rotated files.