Microsoft Azure SDK for Node.js - Power BI Embedded
This project provides a Node.js package for managing Azure Power BI Embedded.
Features
- Manage Power BI Embedded:
- Create new Workspace Collection
- Get workspace collections by subscription
- Get workspace collections by resource group
- Get workspace collection by resource group & name
- Get access keys for workspace collection
- Regenerate access key for workspace collection
- Get workspaces within workspace collection
How to Install
npm install azure-arm-powerbiembedded
How to Use
Authentication, client creation and listing workspaces within a workspace collection in a resource group as an example
var msRestAzure = ;var PowerBIEmbeddedManagementClient = ; // Interactive Login// It provides a url and code that needs to be copied and pasted in a browser and authenticated over there. If successful, // the user will get a DeviceTokenCredentials object.msRestAzure;
Create new Workspace Collection
const creationOptions = location: "southcentral" tags: key1: 'value1' key2: 'value2' sku: name: "S1" teir: "Standard" ; clientworkspaceCollections;
workspaceCollection
:
id: "..." name: "..." type: "..." location: "..." tags: ... sku: name: "S1" teir: "Standard" properties: ...
Update Workspace Collection
const updateBody = tags: newTag: 'newValue' removeTag: '' ; clientworkspaceCollections;
Delete Workspace Collection
clientworkspaceCollections;
Get workspace collections by subscription
clientworkspaceCollections;
Get workspace collections by resource group
clientworkspaceCollections;
Get workspace collection by resource group & workspace collection name
clientworkspaceCollections;
Get access keys for workspace collection
clientworkspaceCollections;
accessKeys
:
key1: "..." key2: "..."
Regenerate access key for workspace collection
const body = keyName: "key1"; clientworkspaceCollections;
accessKeys
:
key1: "..." // Regenerated key2: "..."
Get workspaces within workspace collection
clientworkspaces;
workspaces
:
id: "..." name: "..." type: "..." properties: ... id: "..." name: "..." type: "..." properties: ... ...