# azure-arm-commerce

> UsageManagementClient Library with typescript type definitions for node

Latest version **2.1.0** (published 2018-11-07) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install azure-arm-commerce
pnpm add azure-arm-commerce
yarn add azure-arm-commerce
bun add azure-arm-commerce
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 2.1.0 |
| Published | 2018-11-07 |
| First published | 2015-07-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 93 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1174 |
| Author | Microsoft Corporation |
| Maintainers | windowsazure |
| Keywords | node, azure |

## Links

- npm: https://www.npmjs.com/package/azure-arm-commerce
- Repository: https://github.com/azure/azure-sdk-for-node
- Homepage: http://github.com/azure/azure-sdk-for-node
- Issues: http://github.com/Azure/azure-sdk-for-node/issues
- npm.io page: https://npm.io/package/azure-arm-commerce

## Dependencies (2)

- [ms-rest](https://npm.io/package/ms-rest.md) ^2.3.2
- [ms-rest-azure](https://npm.io/package/ms-rest-azure.md) ^2.5.5

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 2.1.0 (latest) — 2018-11-07
- 2.0.0 — 2018-04-05
- 1.1.0 — 2017-09-28
- 1.0.0-preview — 2017-04-03
- 0.2.0 — 2016-10-26
- 0.1.2 — 2016-09-02
- 0.1.1 — 2015-07-27
- 0.1.0 — 2015-07-15

## README

---
uid: azure-arm-commerce
summary: *content

---
# Microsoft Azure SDK for Node.js - UsageManagementClient
This project provides a Node.js package for accessing Azure. Right now it supports:
- **Node.js version 6.x.x or higher**

## Features


## How to Install

```bash
npm install azure-arm-commerce
```

## How to use

### Authentication, client creation and list usageAggregates as an example.

```javascript
const msRestAzure = require("ms-rest-azure");
const UsageManagementClient = require("azure-arm-commerce");
msRestAzure.interactiveLogin().then((creds) => {
    const subscriptionId = "<Subscription_Id>";
    const client = new UsageManagementClient(creds, subscriptionId);
    const reportedStartTime = new Date().toISOString();
    const reportedEndTime = new Date().toISOString();
    const showDetails = true;
    const aggregationGranularity = "Daily";
    const continuationToken = "testcontinuationToken";
    return client.usageAggregates.list(reportedStartTime, reportedEndTime, showDetails, aggregationGranularity, continuationToken).then((result) => {
      console.log("The result is:");
      console.log(result);
    });
}).catch((err) => {
  console.log('An error ocurred:');
  console.dir(err, {depth: null, colors: true});
});

## Related projects

- [Microsoft Azure SDK for Node.js](https://github.com/Azure/azure-sdk-for-node)

---
_Source: https://npm.io/package/azure-arm-commerce · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
