CLOUD DEVELOPMENT / Microsoft
Azure Identity library for TypeScript
Microsoft's TypeScript guide to @azure/identity: DefaultAzureCredential gated on AZURE_TOKEN_CREDENTIALS, managed and workload identity, service principals, browser and device-code sign-in, and bearer-token providers.
“Authenticate to Azure services using Azure Identity library for JavaScript (@azure/identity). Use when configuring authentication with DefaultAzureCredential, managed identity, service principals, or interactive browser login.”
01 / THE REASONING
Why this made the selection.
- Practice 1 puts DefaultAzureCredential on local development and ManagedIdentityCredential or WorkloadIdentityCredential on production, and both DefaultAzureCredential samples pass requiredEnvVars: ["AZURE_TOKEN_CREDENTIALS"].
- It shows user-assigned managed identity by client ID, resource ID and object ID, the workload identity variables for Kubernetes, and service principals with a secret or a certificate.
- It covers getBearerTokenProvider for APIs that take bearer tokens, and a custom TokenCredential written against the @azure/core-auth types.
02 / THE REVIEW RECORD
What we actually inspected.
Source review has boundaries.
A clear record is more useful than a “safe” badge.
Material inspected
- .github/plugins/azure-sdk-typescript/skills/azure-identity-ts/SKILL.md (all 327 lines)
- .github/plugins/azure-sdk-typescript/README.md
- .github/plugins/azure-sdk-typescript/.claude-plugin/plugin.json
- README.md
- LICENSE
Our findings
- The Installation block adds @azure/identity, and @azure/identity-vscode for Visual Studio Code credential support, which the sample enables with useIdentityPlugin(vsCodePlugin).
- Workload identity uses AZURE_TENANT_ID, AZURE_CLIENT_ID and AZURE_FEDERATED_TOKEN_FILE=/var/run/secrets/tokens/azure-identity.
- Sovereign-cloud samples set authorityHost to AzureAuthorityHosts.AzureGovernment or AzureAuthorityHosts.AzureChina.
- Practice 2 says never to hardcode credentials and to use environment variables or managed identity; practice 5 says the Azure SDK handles token refresh automatically.
- The frontmatter declares license MIT, author Microsoft, version 1.0.0 and package @azure/identity. It declares no allowed-tools.
Not established by this review
- No credential was constructed, no sign-in prompt was opened and no token was requested.
- @azure/identity and @azure/identity-vscode were not installed from npm.
- Neither the azure-sdk-typescript plugin nor azure-identity-ts was installed, and the two reference files were not read.
- Not executed: it was not installed or run.
The review applies to the material and revision named here. A newer upstream release can change its behavior.
03 / PUT IT TO WORK
Add a skill to your workflow.
- The azure-sdk-typescript plugin README prints `npx skills add microsoft/skills --skill azure-sdk-typescript` under Install. It installs the whole azure-sdk-typescript plugin, whose skill table lists azure-identity-ts; it does not install that skill alone.
- The same README prints `/plugin install azure-sdk-typescript@skills`, which also brings in azure-identity-ts together with every other skill in the plugin. The repository README runs plugin commands inside Copilot CLI after `/plugin marketplace add microsoft/skills`.
Before you start
- The skill prints `npm install @azure/identity`, and `npm install @azure/identity-vscode` for Visual Studio Code credential support. This review ran neither.
- A credential source the file names: AZURE_TENANT_ID and AZURE_CLIENT_ID with AZURE_CLIENT_SECRET or AZURE_CLIENT_CERTIFICATE_PATH, a managed or workload identity, or an az login, azd auth login or Connect-AzAccount session.
- AZURE_TOKEN_CREDENTIALS, which the DefaultAzureCredential samples name in requiredEnvVars.
- Copilot CLI, where `/plugin install azure-sdk-typescript@skills` adds this identity skill with the rest of the plugin.
04 / FOLLOW THE EVIDENCE
The source trail.
Our notes are separate from the original resource.
Check upstream before adopting a new version.
https://github.com/microsoft/skills/blob/fc164ba1d7a0c10377dbcc1c9ac07253b9329fdb/.github/plugins/azure-sdk-typescript/skills/azure-identity-ts/SKILL.md
Supports: name, upstreamDescription, summary, whySelected, bestFor, limitations, review.findings, install.prerequisites, access.permissions
https://github.com/microsoft/skills/blob/fc164ba1d7a0c10377dbcc1c9ac07253b9329fdb/.github/plugins/azure-sdk-typescript/README.md
Supports: install.sourceUrl, install.steps, limitations (install scope)
https://github.com/microsoft/skills/blob/fc164ba1d7a0c10377dbcc1c9ac07253b9329fdb/.github/plugins/azure-sdk-typescript/.claude-plugin/plugin.json
Supports: publisher, license (plugin licence field)
- Repository README ↗Checked
https://github.com/microsoft/skills/blob/fc164ba1d7a0c10377dbcc1c9ac07253b9329fdb/README.md
Supports: compatibility, install.steps (Copilot CLI plugin commands)
- Repository LICENSE ↗Checked
https://github.com/microsoft/skills/blob/fc164ba1d7a0c10377dbcc1c9ac07253b9329fdb/LICENSE
Supports: license
https://github.com/microsoft/skills/commit/ee33ce9d2b4372b0cfe58375bebbf0bd989e3ac9
Supports: limitations (last commit date)