# azure-arm-keyvault

> KeyVaultManagementClient Library with typescript type definitions for node

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

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

## Install

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

## Health

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

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2018-11-07 |
| First published | 2015-05-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 389.4 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-keyvault
- Repository: https://github.com/azure/azure-sdk-for-node
- Homepage: https://github.com/azure/azure-sdk-for-node/tree/master/lib/services/keyVaultManagement
- Issues: https://github.com/azure/azure-sdk-for-node/issues
- npm.io page: https://npm.io/package/azure-arm-keyvault

## Dependencies (2)

- [ms-rest](https://npm.io/package/ms-rest.md) ^2.3.3
- [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

- 1.2.0 (latest) — 2018-11-07
- 1.1.3 — 2018-08-30
- 1.1.2 — 2018-06-28
- 1.1.2-preview — 2018-04-12
- 1.1.1-preview — 2018-03-22
- 1.1.0-preview — 2017-09-28
- 1.0.0-preview — 2017-04-03
- 0.11.4 — 2016-09-02
- 0.11.3 — 2016-09-02
- 0.11.2 — 2016-08-27
- 0.11.1 — 2016-04-28
- 0.11.0 — 2016-04-28
- 0.10.1 — 2015-06-08
- 0.10.0 — 2015-05-04

## README

# Microsoft Azure SDK for Node.js - Key Vault Management

This project provides a Node.js package for managing vaults on Azure Key Vault. Right now it supports:
- **Node.js version: 6.x.x or higher**
- **REST API version: 2015-06-01**

## Features

- Manage vaults: create, update, delete, list and get.

## How to Install

```bash
npm install azure-arm-keyvault
```

## Detailed Sample
A sample that can be cloned and run can be found [here](https://github.com/Azure-Samples/key-vault-node-getting-started).

## How to Use

The following example creates a new vault.

```javascript
const msRestAzure = require('ms-rest-azure');
const KeyVaultManagementClient = require('azure-arm-keyvault');

// Interactive Login
const client;
msRestAzure.interactiveLogin().then((credentials) => {
  client = new KeyVaultManagementClient(credentials, '<your-subscription-id>');
  return client.vaults.list();
}).then((vaults) => {
  console.dir(vaults, {depth: null, colors: true});
  return;
}).then(() => {
  let resourceGroup = '<resource group name>';
  let vaultName = 'myNewVault';
  let parameters = {
    location : "East US",
    properties : {
      sku : {
        family : 'A',
        name : 'standard'
      },
      accessPolicies : [],
      enabledForDeployment : false,
      tenantId : '<tenant GUID>'
    },
    tags : {}
  };
  console.info('Creating vault...');
  return client.vaults.createOrUpdate(resourceGroup, vaultName, parameters);
}).then((vault) => {
  console.dir(vault, {depth: null, colors: true});
  return;
}).catch((err) => {
  console.log('An error occured');
  console.dir(err, {depth: null, colors: true});
  return;
});
```

## Related projects

- [Microsoft Azure SDK for Node.js](https://github.com/Azure/azure-sdk-for-node)
- [Microsoft Azure SDK for Node.js - Key Vault](https://github.com/Azure/azure-sdk-for-node/tree/master/lib/services/keyVault)

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