Initialize-CafBudget
Creates a budget resource for a single Azure subscription.
Syntax
Initialize-CafBudget
[-SubscriptionId <string>]
[-SubscriptionName <string>]
[-UseDefaults]
Description
Creates a budget resource for a single Azure Plan subscription using the REST API, bypassing limitations in the Az PowerShell module for Azure Plan subscriptions. Budget configuration is read from the .azcontext file when available; otherwise the -UseDefaults switch can be used to apply built-in default values.
Example
Initialize-CafBudget
-SubscriptionName "MyAzureSubscription"
Parameter
-SubscriptionId The ID of the subscription where the budget should be created.
| Property | Value |
|---|---|
| Type: | string |
| Default value: | None |
| Required: | False |
-SubscriptionName The name of the subscription where the budget should be created.
| Property | Value |
|---|---|
| Type: | string |
| Default value: | None |
| Required: | False |
-UseDefaults
When specified, creates the budget using default values without requiring explicit configuration in the .azcontext file.
| Property | Value |
|---|---|
| Type: | SwitchParameter |
| Default value: | False |
| Required: | False |