https://github.com/jugi92/suspend_or_resume_fabric_capacity_runbook
Start/Stop Suspend/Resume Microsoft Fabric Capacities
https://github.com/jugi92/suspend_or_resume_fabric_capacity_runbook
azureautomationrunbookgallery fabric msfabric powershell
Last synced: 2 months ago
JSON representation
Start/Stop Suspend/Resume Microsoft Fabric Capacities
- Host: GitHub
- URL: https://github.com/jugi92/suspend_or_resume_fabric_capacity_runbook
- Owner: jugi92
- License: other
- Created: 2024-02-01T13:18:31.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-05T16:35:54.000Z (about 1 year ago)
- Last Synced: 2025-01-07T20:11:44.459Z (4 months ago)
- Topics: azureautomationrunbookgallery, fabric, msfabric, powershell
- Language: PowerShell
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: License.md
Awesome Lists containing this project
README
# Suspend or Resume Fabric Capacity
## Usage
### Python
Use the python script via command line like
```
python3 suspend_or_resume_fabric_capacity.py /subscriptions/12345678-1234-1234-1234-123a12b12d1c/resourceGroups/fabric-rg/providers/Microsoft.Fabric/capacities/myf2capacity suspend
```
### Powershell
Use the powershell script via command line like
```
suspend_or_resume_fabric_capacity.ps1 /subscriptions/12345678-1234-1234-1234-123a12b12d1c/resourceGroups/fabric-rg/providers/Microsoft.Fabric/capacities/myf2capacity suspend
```### Parameters
#### Resource ID:
Resource ID of the Capacity, can be found in the Azure Portal on the resource overview page in the top right when clicking on JSON View.
#### Operations:
Can be either suspend or resume## Azure Automation Runbook
To use the script as an Azure Runbook, the authentication will happen via the System Assigned Managed Identity of the Automation Account. That identity will need to have contributor rights on the Fabric Capacity resource.