Get the current status of Fabric Capacity
Scott Klein
5
Reputation points
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.
Sign in to answer