Invoke-AzBillingBenefitsSavingsPlanPurchaseValidation
Validate savings plan purchase.
Syntax
ValidateExpanded (Default)
Invoke-AzBillingBenefitsSavingsPlanPurchaseValidation
[-Benefit <ISavingsPlanOrderAliasModel[]>]
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
ValidateViaJsonFilePath
Invoke-AzBillingBenefitsSavingsPlanPurchaseValidation
-JsonFilePath <String>
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
ValidateViaJsonString
Invoke-AzBillingBenefitsSavingsPlanPurchaseValidation
-JsonString <String>
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Validate savings plan purchase.
Examples
Example 1: Validate savings plan purchase(expended).
$model = @{
SkuName = "Compute_Savings_Plan"
DisplayName = "MockName"
Term = "P1Y"
AppliedScopeType = "Shared"
BillingScopeId = "/subscriptions/eef82110-c91b-4395-9420-fcfcbefc5a47"
CommitmentGrain = "Hourly"
CommitmentAmount = 0.01
CommitmentCurrencyCode = "USD"
}
$models = @($model)
Invoke-AzBillingBenefitsSavingsPlanPurchaseValidation -Benefit $models
Valid ReasonCode Reason
----- ---------- ------
True
Validate savings plan purchase(expended).
Parameters
-Benefit
.
Parameter properties
Parameter sets
ValidateExpanded
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-Confirm
Prompts you for confirmation before running the cmdlet.
Parameter properties
Type: SwitchParameter
Default value: None
Supports wildcards: False
DontShow: False
Aliases: cf
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-DefaultProfile
The DefaultProfile parameter is not functional.
Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
Parameter properties
Type: PSObject
Default value: None
Supports wildcards: False
DontShow: False
Aliases: AzureRMContext, AzureCredential
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-JsonFilePath
Path of Json file supplied to the Validate operation
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
ValidateViaJsonFilePath
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-JsonString
Json string supplied to the Validate operation
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
ValidateViaJsonString
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-WhatIf
Shows what would happen if the cmdlet runs.
The cmdlet is not run.
Parameter properties
Type: SwitchParameter
Default value: None
Supports wildcards: False
DontShow: False
Aliases: wi
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters .
Outputs