適用於 Node.js 的 Azure Analysis Services 模組Azure Analysis Services modules for Node.js

概觀Overview

此套件提供可讓您輕鬆管理 Microsoft Azure Analysis Services 的 Node.js 模組。This package provides a Node.js module that makes it easy to manage Microsoft Azure Analysis Services.

管理封裝Management package

安裝 npm 模組Install the npm module

安裝 Azure Analysis Services npm 模組Install the Azure Analysis Services npm module

npm install azure-arm-analysisservices

範例Example

此範例會列出所有可用的 Analysis Service 伺服器。This example lists all available Analysis Service servers.

const msRestAzure = require('ms-rest-azure');
const analysisServicesManagement = require('azure-arm-analysisservices');

const subscriptionId = 'your-subscription-id';
let analysisServicesClient;

msRestAzure.interactiveLogin().then(credentials => {
  analysisServicesClient = new analysisServicesManagement(credentials, subscriptionId);

  analysisServicesClient.servers
    .list()
    .then(servers => console.log('Retrieved analysis services servers: ', servers));
});

範例Samples

深入探索可在應用程式中使用的 Node.js 程式碼範例Explore more sample Node.js code you can use in your apps.