Suspend-FabricCapacity
Suspends a capacity.
Syntax
Suspend-FabricCapacity [-SubscriptionID] <guid> [-ResourceGroup] <string> [-Capacity] <string>
[-WhatIf] [-Confirm] [<CommonParameters>]Description
The Suspend-FabricCapacity function suspends a capacity. It supports multiple aliases for flexibility.
Examples
Example 1
This example suspends a capacity given the subscription ID, resource group, and capacity.
Suspend-FabricCapacity -SubscriptionID "your-subscription-id" -ResourceGroup "your-resource-group" -Capacity "your-capacity"Parameters
| Name | Type | Req. | Pos. | Pipeline | Description |
|---|---|---|---|---|---|
| -Capacity | string | ✓Required | 2 | – | The 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. |
| -Confirmalias: cf | switch | Named | – | Prompts you for confirmation before running the cmdlet. |
|
| -WhatIfalias: wi | switch | Named | – | Runs the command in a mode that only reports what would happen without performing the actions. |
This cmdlet also supports the common parameters, such as -Verbose and -ErrorAction. See about_CommonParameters.
Notes
The function defines parameters for the subscription ID, resource group, and capacity. If the 'azToken' environment variable is null, it connects to the Azure account and sets the 'azToken' environment variable. It then defines the headers for the request, defines the URI for the request, and makes a GET request to the URI.
Author: Ioana Bouariu