Skip to content

Commit 7ac8c59

Browse files
author
JiayueHu
authored
Merge pull request MicrosoftDocs#333 from MicrosoftDocs/ContainerService-Onboarding
Container service onboarding
2 parents 7717a2d + e0e0d8d commit 7ac8c59

File tree

2 files changed

+59
-0
lines changed

2 files changed

+59
-0
lines changed

docs-ref-mapping/reference.yml

+9
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,15 @@
232232
landingPageType: Service
233233
children:
234234
- azure-arm-containerregistry
235+
- name: Container Service
236+
uid: azure.nodejs.sdk.landingpage.services.containerservice
237+
href: ~/docs-ref-services/container-service.md
238+
items:
239+
- name: Management
240+
uid: azure.nodejs.sdk.landingPage.services.containerservice.Management
241+
landingPageType: Service
242+
children:
243+
- azure-arm-containerservice
235244
- name: Cosmos DB
236245
uid: azure.nodejs.sdk.landingpage.services.cosmosdb
237246
href: ~/docs-ref-services/cosmos-db.md
+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
title: Azure Container Service modules for Node.js
3+
description: Reference for Azure Container Service Modules for Node.js
4+
author: mmacy
5+
ms.author: marsma
6+
manager: jeconnoc
7+
ms.date: 07/18/2017
8+
ms.topic: article
9+
ms.prod: azure
10+
ms.technology: azure
11+
ms.devlang: nodejs
12+
ms.service: Container Service
13+
---
14+
15+
# Microsoft Azure SDK for Node.js - ContainerServiceClient
16+
This project provides a Node.js package for accessing Azure. Right now it supports:
17+
- **Node.js version 6.x.x or higher**
18+
19+
## Features
20+
21+
22+
## How to Install
23+
24+
```bash
25+
npm install azure-arm-containerservice
26+
```
27+
28+
## How to use
29+
30+
### Authentication, client creation and list containerServices as an example.
31+
32+
```javascript
33+
const msRestAzure = require("ms-rest-azure");
34+
const ContainerServiceClient = require("azure-arm-containerservice");
35+
msRestAzure.interactiveLogin().then((creds) => {
36+
const subscriptionId = "<Subscription_Id>";
37+
const client = new ContainerServiceClient(creds, subscriptionId);
38+
return client.containerServices.list().then((result) => {
39+
console.log("The result is:");
40+
console.log(result);
41+
});
42+
}).catch((err) => {
43+
console.log('An error ocurred:');
44+
console.dir(err, {depth: null, colors: true});
45+
});
46+
```
47+
48+
## Related projects
49+
50+
- [Microsoft Azure SDK for Node.js](https://github.com/Azure/azure-sdk-for-node)

0 commit comments

Comments
 (0)