Get the current status of Fabric Capacity

Scott Klein 5 Reputation points
2025-07-26T03:27:30.8833333+00:00

Within an Azure Runbook I am trying to get the current status of an Azure Fabric Capacity. I am not sure how to get it and have tried several things, including the below, but nothing I have tried works (I know I am doing something wrong).

$response = Invoke-AzRestMethod -Method "GET" -Path "/subscriptions/${subscription}/resourceGroups/${resourceGroup}/providers/Microsoft.Fabric/capacities/${capacity}?api-version=${apiVersion}"

$Content = $response.Content | ConvertFrom-Json
$state = $Content.properties.state


So, I am in the ballpark or not even close? What is the best way to get the status of an Azure Fabric Capacity?

Thank you!

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.