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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
DanialAnwaar
Frequent Visitor

Fabric Workspace Creation via Code

Team,

 

Is there a way to create Fabric workspace having a Capacity in Azure via powershell/API?

It should be deployed via code. 

 

Please note it is going to workspace having a fabric capacity attached created in Azure with a certain F SKU. 

 

Your assistance/input is highly appreciated. 

 

 

 

 

 

2 ACCEPTED SOLUTIONS
lbendlin
Super User
Super User

Workspaces are still a Power BI thing so you need to use the Power BI REST API for now.

 

Groups - Create Group - REST API (Power BI Power BI REST APIs) | Microsoft Learn

View solution in original post

DianaGeyer
Frequent Visitor

You can also use the Terraform provider for Microsoft Fabric to create a workspace and the azurerm provider to create a Fabric capacity in Azure. However, note that the Fabric provider is currently in preview and not recommended for production environments.

Here are the relevant Terraform resources:

Here are some quickstart resources from Microsoft:

View solution in original post

6 REPLIES 6
v-veshwara-msft
Community Support
Community Support

Hi @DanialAnwaar ,

Following up to see if your query has been resolved. If any of the responses helped, please consider marking the relevant reply as the 'Accepted Solution' to assist others with similar questions.

If you're still facing issues, feel free to reach out.

Thank you.

KevinChant
Super User
Super User

You can definitly create a workspace using the Fabric Command Line interface within code. I am not sure if you can add the default capacity to it though, you will have to test.

 

Fabric command line interface - Microsoft Fabric REST APIs | Microsoft Learn 

v-veshwara-msft
Community Support
Community Support

Hi @DanialAnwaar ,

Just checking in to see if you query is resolved and if any responses were helpful. If so, kindly consider marking the helpful reply as 'Accepted Solution' to help others with similar queries. 

Otherwise, feel free to reach out for further assistance.

Thank you.

v-veshwara-msft
Community Support
Community Support

Hi @DanialAnwaar ,

Thank you for engaging with the Microsoft Fabric Community.

Just following up to check if your query has been resolved and whether the responses from @lbendlin  and @DianaGeyer  were helpful. If so, please consider marking the helpful replies as Accepted Solutions to assist others with similar queries. If further assistance is needed, please reach out.
Thank you.

DianaGeyer
Frequent Visitor

You can also use the Terraform provider for Microsoft Fabric to create a workspace and the azurerm provider to create a Fabric capacity in Azure. However, note that the Fabric provider is currently in preview and not recommended for production environments.

Here are the relevant Terraform resources:

Here are some quickstart resources from Microsoft:

lbendlin
Super User
Super User

Workspaces are still a Power BI thing so you need to use the Power BI REST API for now.

 

Groups - Create Group - REST API (Power BI Power BI REST APIs) | Microsoft Learn

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Fabric Update Carousel

Fabric Monthly Update - September 2025

Check out the September 2025 Fabric 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.