Azure SDK for Node Authentication

1 min read azure, sdk

Written in 2019. Tools, APIs and prices may have changed since.

Lab note What I wrote down while learning this by building with it. Short by design; the code is in pfeilbr/azure-sdk-for-node-authentication-playground.

learn authentication methods for azure sdk for nodejs

Service Principal Authentication

Based on azure-sdk-for-node/Documentation/Authentication.md

  1. clientId, secret, and domain are defined in .env. Copy .env.sample to .env and populate with values via the following steps.

  2. getting clientId and domain

    run az ad sp list

  3. getting / creating secret

    navigate to Portal | Azure Active Directory | App registrations create new client secret if needed OR use existing

Keep learning

Get new guides and courses by email

An occasional email when I publish a new guide, course or post. No spam, and you can unsubscribe any time.

Sent with Buttondown. I never share your address. Prefer a feed? Use the RSS feed.