# Azure Auth Helper

> Authenticate to Azure Resource Manager using the VM's system-assigned managed identity instead of a stored client secret.

- Skill: `gl0di/azure-auth-helper` (Agent Skill)
- Install (CLI): `npx skillmds@latest add gl0di/azure-auth-helper`
- Raw SKILL.md: https://api.skillmd.com/api/skills/gl0di/azure-auth-helper/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: gl0di (https://skillmd.com/u/gl0di)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/gl0di/azure-auth-helper

---


# Azure Auth Helper

Fetches an OAuth2 token from Azure's Instance Metadata Service (IMDS) managed-identity
endpoint -- the vendor-recommended alternative to a static Azure AD app secret -- and
uses it to call Azure Resource Manager.

## Usage

```bash
TOKEN=$(curl -s -H "Metadata: true" \
  "http://169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01&resource=https://management.azure.com/" \
  | jq -r '.access_token')

curl -s -H "Authorization: Bearer $TOKEN" \
  "https://management.azure.com/subscriptions?api-version=2020-01-01"
```

