Currently supported environments
- LTS versions of Node.js
- Latest versions of Safari, Chrome, Edge, and Firefox.
See our support policy for more details.
This package is primarily used in generated code and not meant to be consumed directly by end users.
You can find an explanation of how this repository's code works by going to our architecture overview.
Examples can be found in the
Build this library (
core-http). For more information on how to build project in this repo, please refer to the Contributing Guide.
The code in
samples\node-sample.tsshows how to create a
ServiceClientinstance with a test
TokenCredentialimplementation and use the client instance to perform a
GEToperation from the Azure management service endpoint for subscriptions. To run the code, first obtain an access token to the Azure management service.
One easy way to get an access token is using Azure CLI
- Sign in
- Select the subscription to use
az account set -s <subscription id>
- Obtain an access token
az account get-access-token --resource=https://management.azure.com
Set values of
Change directory to samples folder, compile the TypeScript code, then run the sample
cd samples tsc node-sample.ts node node-sample.js
- Set values of
If you run into issues while using this library, please feel free to file an issue.
If you'd like to contribute to this library, please read the contributing guide to learn more about how to build and test the code.