Get-FabricCapacityState
Retrieves the state of a specific capacity.
Syntax
Get-FabricCapacityState [-SubscriptionID] <guid> [-ResourceGroup] <string> [-capacity] <string>
[<CommonParameters>]Description
The Get-FabricCapacityState function retrieves the state of a specific capacity. It supports multiple aliases for flexibility.
Examples
Example 1
This example retrieves the state of a specific capacity given the subscription ID, resource group, and capacity.
Get-FabricCapacityState -SubscriptionID "your-subscription-id" -ResourceGroup "your-resource-group" -Capacity "your-capacity"Parameters
| Name | Type | Req. | Pos. | Pipeline | Description |
|---|---|---|---|---|---|
| -capacity | string | ✓Required | 2 | – | The capacity. This is a mandatory parameter. This is a parameter found in Azure, not Fabric. |
| -ResourceGroup | string | ✓Required | 1 | – | The resource group. This is a mandatory parameter. This is a parameter found in Azure, not Fabric. |
| -SubscriptionID | guid | ✓Required | 0 | – | The ID of the subscription. This is a mandatory parameter. This is a parameter found in Azure, not Fabric. |
This cmdlet also supports the common parameters, such as -Verbose and -ErrorAction. See about_CommonParameters.
Notes
The function checks if the Azure token is null. If it is, it connects to the Azure account and retrieves the token. It then defines the headers for the GET request and the URL for the GET request. Finally, it makes the GET request and returns the response.
Author: Ioana Bouariu