Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
ammitit2006
Frequent Visitor

Issue while using Power BI cli command line tool to create workspace

Hi, 

I am new to Power BI. I have a requirement to create document how to connect to the power BI file(pbix) to the workspace. 

I don't have .NET installed so i used NPM installer to do the same.

 

 

I followed the steps

1) On the azure portal, Created the PowerBI embedded, followed by creating workspace collection(my360workspace). 

2) Now, installed the NPM installer and then install the "power bi cli" using "npm i -g powerbi-cli"

Ref: http://blog.jongallant.com/2017/01/powerbi-embedded-javascript-api-range-slider-filter/

 

3) I run the commands into command prompt as in the screen shot. It's giving me error that a location consists of character, whitespace etc.

4) I looked into the help of power bi in the command prompt it's not given anything to create workspace but only the WorkSpace Collection.

 

 

 


C:\Users\amgupta>azure powerbi --help
help: Commands to manage your Azure Power BI Embedded Workspace Collections
help:
help: Create a new workspace collection
help: powerbi create [options] <resourceGroup> <name> <location> [tags]
help:
help: List workspace collections within subscription or within resource group
help: powerbi list [options] [resourceGroup]
help:
help: Commands to manage your Power BI Workspace Collection keys
help: powerbi keys list [options] <resourceGroup> <name>
help: powerbi keys renew [options] <resourceGroup> <name>
help:
help: Commands to manage your Power BI Workspaces
help: powerbi workspaces list [options] <resourceGroup> <name>
help:
help: Options:
help: -h, --help output usage information
help:
help: Current Mode: arm (Azure Resource Management)

 

 

Please help,

I don't have .NET installed so cannot try other .NET riched options.

1 REPLY 1
tringuyenminh92
Memorable Member
Memorable Member

Hi @ammitit2006,

 

Follow this topic in github, you will use your workspace collection name and its access key to create workspace :https://github.com/Microsoft/PowerBI-Cli

 

And one thing that if this is not issue topic, please post in forum of community not in issue forum.Heart

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors