Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
DaSenf1860 committed May 16, 2024
2 parents 52d27b8 + 809d05f commit fa6ed07
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions usage_patterns.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ from msfabricpysdkcore import FabricClientCore
fc = FabricClientCore()

list_workspaces = ["sales_forecast_dev", "sales_forecast_qa", "sales_sandbox", "finance_sandbox"]

cap_target = fc.get_capacity(capacity_name="nameoftargetcapacity")

for ws in list_workspaces:
ws_ = fc.create_wor(ws)
ws_.delete()
ws_.assign_to_capacity(cap_target.id)

```

Expand Down Expand Up @@ -107,4 +107,4 @@ all_ws = fcc.list_workspaces()
cap_ws = [ws for ws in all_ws if ws.capacity_id == cap.id]
print(cap_ws)

```
```

0 comments on commit fa6ed07

Please sign in to comment.