diff --git a/src/BillingBenefits/BillingBenefits.Autorest/Properties/AssemblyInfo.cs b/src/BillingBenefits/BillingBenefits.Autorest/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..68d2aed6d523 --- /dev/null +++ b/src/BillingBenefits/BillingBenefits.Autorest/Properties/AssemblyInfo.cs @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the Apache License, Version 2.0 (the ""License""); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an ""AS IS"" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +// is regenerated. + +using System; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")] +[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] +[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] +[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - BillingBenefits")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0")] +[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] diff --git a/src/BillingBenefits/BillingBenefits.Autorest/README.md b/src/BillingBenefits/BillingBenefits.Autorest/README.md index beec44fb8afb..2578b0bedcc6 100644 --- a/src/BillingBenefits/BillingBenefits.Autorest/README.md +++ b/src/BillingBenefits/BillingBenefits.Autorest/README.md @@ -53,25 +53,31 @@ module-version: 0.1.0 title: BillingBenefits subject-prefix: $(service-name) -resourcegroup-append: true -nested-object-to-string: true - -# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option -use-extension: - "@autorest/powershell": "3.x" - directive: - ### No inline + - where: + variant: ^(Create|Update|Validate)(?!.*?(Expanded|JsonFilePath|JsonString)) + remove: true + - where: + variant: ^CreateViaIdentity$|^CreateViaIdentityExpanded$ + remove: true +## No inline - no-inline: - RenewProperties - ### Rename Cmdlet names + # ### Rename Cmdlet names - where: verb: Get - subject: SavingPlan + subject: SavingsPlan + variant: List1 set: - verb: Get subject: SavingsPlanList + variant: List + - where: + verb: Invoke + subject: ElevateSavingsPlanOrder + set: + verb: Invoke + subject: ElevateSavingPlanOrder - where: verb: Test subject: Purchase @@ -80,7 +86,7 @@ directive: subject: SavingsPlanPurchaseValidation - where: verb: Test - subject: SavingPlanUpdate + subject: SavingsPlanUpdate set: verb: Invoke subject: SavingsPlanUpdateValidation diff --git a/src/BillingBenefits/BillingBenefits.Autorest/UX/Microsoft.BillingBenefits/savingsPlanOrders-savingsPlans.json b/src/BillingBenefits/BillingBenefits.Autorest/UX/Microsoft.BillingBenefits/savingsPlanOrders-savingsPlans.json deleted file mode 100644 index fe91044303e8..000000000000 --- a/src/BillingBenefits/BillingBenefits.Autorest/UX/Microsoft.BillingBenefits/savingsPlanOrders-savingsPlans.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "resourceType": "savingsPlanOrders/savingsPlans", - "apiVersion": "2022-11-01", - "learnMore": { - "url": "https://learn.microsoft.com/powershell/module/az.billingbenefits" - }, - "commands": [ - { - "name": "Invoke-AzBillingBenefitsSavingsPlanUpdateValidation", - "description": "Validate savings plan patch.", - "path": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/{savingsPlanOrderId}/savingsPlans/{savingsPlanId}/validate", - "help": { - "learnMore": { - "url": "https://learn.microsoft.com/powershell/module/az.billingbenefits/invoke-azbillingbenefitssavingsplanupdatevalidation" - }, - "parameterSets": [ - { - "parameters": [ - "-SavingsPlanId ", - "-SavingsPlanOrderId " - ] - } - ] - }, - "examples": [ - { - "description": "Validate savings plan patch.", - "parameters": [ - { - "name": "-SavingsPlanId", - "value": "[Path.savingsPlanId]" - }, - { - "name": "-SavingsPlanOrderId", - "value": "[Path.savingsPlanOrderId]" - } - ] - } - ] - } - ] -} diff --git a/src/BillingBenefits/BillingBenefits.Autorest/docs/Az.BillingBenefits.md b/src/BillingBenefits/BillingBenefits.Autorest/docs/Az.BillingBenefits.md index 43bf74d8d34a..aa062a496f0d 100644 --- a/src/BillingBenefits/BillingBenefits.Autorest/docs/Az.BillingBenefits.md +++ b/src/BillingBenefits/BillingBenefits.Autorest/docs/Az.BillingBenefits.md @@ -1,6 +1,6 @@ --- Module Name: Az.BillingBenefits -Module Guid: 7c220d70-27ec-4403-aedd-429aa925a6a6 +Module Guid: d7dd6348-cc7d-477e-baeb-e38cc4e0c9f9 Download Help Link: https://learn.microsoft.com/powershell/module/az.billingbenefits Help Version: 1.0.0.0 Locale: en-US @@ -36,12 +36,16 @@ Validate savings plan purchase. Validate savings plan patch. ### [New-AzBillingBenefitsReservationOrderAlias](New-AzBillingBenefitsReservationOrderAlias.md) -Create a reservation order alias. +create a reservation order alias. ### [New-AzBillingBenefitsSavingsPlanOrderAlias](New-AzBillingBenefitsSavingsPlanOrderAlias.md) -Create a savings plan. +create a savings plan. Learn more about permissions needed at https://go.microsoft.com/fwlink/?linkid=2215851 ### [Update-AzBillingBenefitsSavingsPlan](Update-AzBillingBenefitsSavingsPlan.md) -Update savings plan. +update savings plan. + +### [Update-AzBillingBenefitsSavingsPlanOrderAlias](Update-AzBillingBenefitsSavingsPlanOrderAlias.md) +update a savings plan. +Learn more about permissions needed at https://go.microsoft.com/fwlink/?linkid=2215851 diff --git a/src/BillingBenefits/BillingBenefits.Autorest/docs/Get-AzBillingBenefitsReservationOrderAlias.md b/src/BillingBenefits/BillingBenefits.Autorest/docs/Get-AzBillingBenefitsReservationOrderAlias.md index c5238eb29190..ed46fd63ce64 100644 --- a/src/BillingBenefits/BillingBenefits.Autorest/docs/Get-AzBillingBenefitsReservationOrderAlias.md +++ b/src/BillingBenefits/BillingBenefits.Autorest/docs/Get-AzBillingBenefitsReservationOrderAlias.md @@ -78,7 +78,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IBillingBenefitsIdentity @@ -116,7 +115,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IReservationOrderAliasResponse +### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IReservationOrderAliasResponse ## NOTES diff --git a/src/BillingBenefits/BillingBenefits.Autorest/docs/Get-AzBillingBenefitsSavingsPlan.md b/src/BillingBenefits/BillingBenefits.Autorest/docs/Get-AzBillingBenefitsSavingsPlan.md index bed766ed986f..588c8a0e7196 100644 --- a/src/BillingBenefits/BillingBenefits.Autorest/docs/Get-AzBillingBenefitsSavingsPlan.md +++ b/src/BillingBenefits/BillingBenefits.Autorest/docs/Get-AzBillingBenefitsSavingsPlan.md @@ -29,6 +29,12 @@ Get-AzBillingBenefitsSavingsPlan -InputObject [-Expan [-DefaultProfile ] [] ``` +### GetViaIdentitySavingsPlanOrder +``` +Get-AzBillingBenefitsSavingsPlan -Id -SavingsPlanOrderInputObject + [-Expand ] [-DefaultProfile ] [] +``` + ## DESCRIPTION Get savings plan. @@ -83,7 +89,7 @@ May be used to expand the detail information of some properties. ```yaml Type: System.String -Parameter Sets: Get, GetViaIdentity +Parameter Sets: Get, GetViaIdentity, GetViaIdentitySavingsPlanOrder Aliases: Required: False @@ -98,7 +104,7 @@ ID of the savings plan ```yaml Type: System.String -Parameter Sets: Get +Parameter Sets: Get, GetViaIdentitySavingsPlanOrder Aliases: SavingsPlanId Required: True @@ -110,7 +116,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IBillingBenefitsIdentity @@ -139,6 +144,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -SavingsPlanOrderInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IBillingBenefitsIdentity +Parameter Sets: GetViaIdentitySavingsPlanOrder +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). @@ -148,7 +168,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModel +### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.ISavingsPlanModel ## NOTES diff --git a/src/BillingBenefits/BillingBenefits.Autorest/docs/Get-AzBillingBenefitsSavingsPlanList.md b/src/BillingBenefits/BillingBenefits.Autorest/docs/Get-AzBillingBenefitsSavingsPlanList.md index 3cd0076b756b..14712d4504a5 100644 --- a/src/BillingBenefits/BillingBenefits.Autorest/docs/Get-AzBillingBenefitsSavingsPlanList.md +++ b/src/BillingBenefits/BillingBenefits.Autorest/docs/Get-AzBillingBenefitsSavingsPlanList.md @@ -176,7 +176,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModel +### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.ISavingsPlanModel ## NOTES diff --git a/src/BillingBenefits/BillingBenefits.Autorest/docs/Get-AzBillingBenefitsSavingsPlanOrder.md b/src/BillingBenefits/BillingBenefits.Autorest/docs/Get-AzBillingBenefitsSavingsPlanOrder.md index 18fc12602678..25c49d7c90ae 100644 --- a/src/BillingBenefits/BillingBenefits.Autorest/docs/Get-AzBillingBenefitsSavingsPlanOrder.md +++ b/src/BillingBenefits/BillingBenefits.Autorest/docs/Get-AzBillingBenefitsSavingsPlanOrder.md @@ -113,7 +113,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IBillingBenefitsIdentity @@ -136,7 +135,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanOrderModel +### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.ISavingsPlanOrderModel ## NOTES diff --git a/src/BillingBenefits/BillingBenefits.Autorest/docs/Get-AzBillingBenefitsSavingsPlanOrderAlias.md b/src/BillingBenefits/BillingBenefits.Autorest/docs/Get-AzBillingBenefitsSavingsPlanOrderAlias.md index ed1b76f1d75a..5835aeca53e4 100644 --- a/src/BillingBenefits/BillingBenefits.Autorest/docs/Get-AzBillingBenefitsSavingsPlanOrderAlias.md +++ b/src/BillingBenefits/BillingBenefits.Autorest/docs/Get-AzBillingBenefitsSavingsPlanOrderAlias.md @@ -78,7 +78,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IBillingBenefitsIdentity @@ -116,7 +115,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanOrderAliasModel +### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.ISavingsPlanOrderAliasModel ## NOTES diff --git a/src/BillingBenefits/BillingBenefits.Autorest/docs/Invoke-AzBillingBenefitsElevateSavingPlanOrder.md b/src/BillingBenefits/BillingBenefits.Autorest/docs/Invoke-AzBillingBenefitsElevateSavingPlanOrder.md index 2c38b39199aa..b726c9339abf 100644 --- a/src/BillingBenefits/BillingBenefits.Autorest/docs/Invoke-AzBillingBenefitsElevateSavingPlanOrder.md +++ b/src/BillingBenefits/BillingBenefits.Autorest/docs/Invoke-AzBillingBenefitsElevateSavingPlanOrder.md @@ -42,19 +42,18 @@ Name PrincipalId RoleDe Elevate savings plan order -### Example 2: Elevate savings plan order via identiy +### Example 2: Elevate savings plan order via identiy ```powershell -$identity = @{ - SavingsPlanOrderId = "e45905d2-9207-4f24-8549-f615c203b49b" -} - -$response = Invoke-AzBillingBenefitsElevateSavingPlanOrder -InputObject $identity +$identity = @{ + SavingsPlanOrderId = "e45905d2-9207-4f24-8549-f615c203b49b" +} +$response = Invoke-AzBillingBenefitsElevateSavingPlanOrder -InputObject $identity ``` ```output -Name PrincipalId RoleDefinitionId Scope ----- ----------- ---------------- ----- -5c545baf-2ef5-4016-9c31-6e0e23c397a0 067e7443-3a55-40b6-a2d8-0a7a12a9da2d /providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb635 /providers/Microsoft.BillingBenefits/savingsplanorders/e45905d2-9207-4f24-8549-f615c203b49b +Name PrincipalId RoleDefinitionId Scope +---- ----------- ---------------- ----- +5c545baf-2ef5-4016-9c31-6e0e23c397a0 067e7443-3a55-40b6-a2d8-0a7a12a9da2d /providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb635 /providers/Microsoft.BillingBenefits/savingsplanorders/e45905d2-9207-4f24-8549-f615c203b49b ``` Elevate savings plan order @@ -79,7 +78,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IBillingBenefitsIdentity @@ -148,7 +146,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRoleAssignmentEntity +### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IRoleAssignmentEntity ## NOTES diff --git a/src/BillingBenefits/BillingBenefits.Autorest/docs/Invoke-AzBillingBenefitsSavingsPlanPurchaseValidation.md b/src/BillingBenefits/BillingBenefits.Autorest/docs/Invoke-AzBillingBenefitsSavingsPlanPurchaseValidation.md index 97c923edbe18..176944dfb7b2 100644 --- a/src/BillingBenefits/BillingBenefits.Autorest/docs/Invoke-AzBillingBenefitsSavingsPlanPurchaseValidation.md +++ b/src/BillingBenefits/BillingBenefits.Autorest/docs/Invoke-AzBillingBenefitsSavingsPlanPurchaseValidation.md @@ -18,10 +18,16 @@ Invoke-AzBillingBenefitsSavingsPlanPurchaseValidation [-Benefit ] [-Confirm] [-WhatIf] [] ``` -### Validate +### ValidateViaJsonFilePath ``` -Invoke-AzBillingBenefitsSavingsPlanPurchaseValidation -Body - [-DefaultProfile ] [-Confirm] [-WhatIf] [] +Invoke-AzBillingBenefitsSavingsPlanPurchaseValidation -JsonFilePath [-DefaultProfile ] + [-Confirm] [-WhatIf] [] +``` + +### ValidateViaJsonString +``` +Invoke-AzBillingBenefitsSavingsPlanPurchaseValidation -JsonString [-DefaultProfile ] + [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -55,27 +61,13 @@ True Validate savings plan purchase(expended). -### Example 2: Validate savings plan purchase. -```powershell -Invoke-AzBillingBenefitsSavingsPlanPurchaseValidation -Body $body -``` - -```output -Valid ReasonCode Reason ------ ---------- ------ -True -``` - -Validate savings plan purchase. - ## PARAMETERS ### -Benefit . -To construct, see NOTES section for BENEFIT properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanOrderAliasModel[] +Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.ISavingsPlanOrderAliasModel[] Parameter Sets: ValidateExpanded Aliases: @@ -86,32 +78,46 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Body -. -To construct, see NOTES section for BODY properties and create a hash table. +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanPurchaseValidateRequest -Parameter Sets: Validate +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonFilePath +Path of Json file supplied to the Validate operation + +```yaml +Type: System.String +Parameter Sets: ValidateViaJsonFilePath Aliases: Required: True Position: Named Default value: None -Accept pipeline input: True (ByValue) +Accept pipeline input: False Accept wildcard characters: False ``` -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. +### -JsonString +Json string supplied to the Validate operation ```yaml -Type: System.Management.Automation.PSObject -Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential +Type: System.String +Parameter Sets: ValidateViaJsonString +Aliases: -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False @@ -154,11 +160,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanPurchaseValidateRequest - ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanValidateResponse +### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.ISavingsPlanValidateResponse ## NOTES diff --git a/src/BillingBenefits/BillingBenefits.Autorest/docs/Invoke-AzBillingBenefitsSavingsPlanUpdateValidation.md b/src/BillingBenefits/BillingBenefits.Autorest/docs/Invoke-AzBillingBenefitsSavingsPlanUpdateValidation.md index aca59dbad0d7..8c2563f4ba19 100644 --- a/src/BillingBenefits/BillingBenefits.Autorest/docs/Invoke-AzBillingBenefitsSavingsPlanUpdateValidation.md +++ b/src/BillingBenefits/BillingBenefits.Autorest/docs/Invoke-AzBillingBenefitsSavingsPlanUpdateValidation.md @@ -19,25 +19,30 @@ Invoke-AzBillingBenefitsSavingsPlanUpdateValidation -SavingsPlanId -Sav [] ``` -### Validate +### ValidateViaIdentityExpanded ``` -Invoke-AzBillingBenefitsSavingsPlanUpdateValidation -SavingsPlanId -SavingsPlanOrderId - -Body [-DefaultProfile ] [-Confirm] [-WhatIf] +Invoke-AzBillingBenefitsSavingsPlanUpdateValidation -InputObject + [-Benefit ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` -### ValidateViaIdentity +### ValidateViaIdentitySavingsPlanOrderExpanded ``` -Invoke-AzBillingBenefitsSavingsPlanUpdateValidation -InputObject - -Body [-DefaultProfile ] [-Confirm] [-WhatIf] - [] +Invoke-AzBillingBenefitsSavingsPlanUpdateValidation -SavingsPlanId + -SavingsPlanOrderInputObject [-Benefit ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` -### ValidateViaIdentityExpanded +### ValidateViaJsonFilePath ``` -Invoke-AzBillingBenefitsSavingsPlanUpdateValidation -InputObject - [-Benefit ] [-DefaultProfile ] [-Confirm] [-WhatIf] - [] +Invoke-AzBillingBenefitsSavingsPlanUpdateValidation -SavingsPlanId -SavingsPlanOrderId + -JsonFilePath [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### ValidateViaJsonString +``` +Invoke-AzBillingBenefitsSavingsPlanUpdateValidation -SavingsPlanId -SavingsPlanOrderId + -JsonString [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -69,11 +74,10 @@ Validate savings plan patch ### -Benefit . -To construct, see NOTES section for BENEFIT properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestProperties[] -Parameter Sets: ValidateExpanded, ValidateViaIdentityExpanded +Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.ISavingsPlanUpdateRequestProperties[] +Parameter Sets: ValidateExpanded, ValidateViaIdentityExpanded, ValidateViaIdentitySavingsPlanOrderExpanded Aliases: Required: False @@ -83,22 +87,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Body -. -To construct, see NOTES section for BODY properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateValidateRequest -Parameter Sets: Validate, ValidateViaIdentity -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - ### -DefaultProfile The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. @@ -117,11 +105,10 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IBillingBenefitsIdentity -Parameter Sets: ValidateViaIdentity, ValidateViaIdentityExpanded +Parameter Sets: ValidateViaIdentityExpanded Aliases: Required: True @@ -131,12 +118,42 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Validate operation + +```yaml +Type: System.String +Parameter Sets: ValidateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Validate operation + +```yaml +Type: System.String +Parameter Sets: ValidateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SavingsPlanId ID of the savings plan ```yaml Type: System.String -Parameter Sets: Validate, ValidateExpanded +Parameter Sets: ValidateExpanded, ValidateViaIdentitySavingsPlanOrderExpanded, ValidateViaJsonFilePath, ValidateViaJsonString Aliases: Required: True @@ -151,7 +168,7 @@ Order ID of the savings plan ```yaml Type: System.String -Parameter Sets: Validate, ValidateExpanded +Parameter Sets: ValidateExpanded, ValidateViaJsonFilePath, ValidateViaJsonString Aliases: Required: True @@ -161,6 +178,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -SavingsPlanOrderInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IBillingBenefitsIdentity +Parameter Sets: ValidateViaIdentitySavingsPlanOrderExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -Confirm Prompts you for confirmation before running the cmdlet. @@ -197,13 +229,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateValidateRequest - ### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IBillingBenefitsIdentity ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanValidateResponse +### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.ISavingsPlanValidateResponse ## NOTES diff --git a/src/BillingBenefits/BillingBenefits.Autorest/docs/New-AzBillingBenefitsReservationOrderAlias.md b/src/BillingBenefits/BillingBenefits.Autorest/docs/New-AzBillingBenefitsReservationOrderAlias.md index b4e855fc42de..fd30a548b6b2 100644 --- a/src/BillingBenefits/BillingBenefits.Autorest/docs/New-AzBillingBenefitsReservationOrderAlias.md +++ b/src/BillingBenefits/BillingBenefits.Autorest/docs/New-AzBillingBenefitsReservationOrderAlias.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzBillingBenefitsReservationOrderAlias ## SYNOPSIS -Create a reservation order alias. +create a reservation order alias. ## SYNTAX @@ -17,40 +17,26 @@ Create a reservation order alias. New-AzBillingBenefitsReservationOrderAlias -Name [-AppliedScopePropertyDisplayName ] [-AppliedScopePropertyManagementGroupId ] [-AppliedScopePropertyResourceGroupId ] [-AppliedScopePropertySubscriptionId ] [-AppliedScopePropertyTenantId ] - [-AppliedScopeType ] [-BillingPlan ] [-BillingScopeId ] - [-DisplayName ] [-Location ] [-Quantity ] [-Renew] - [-ReservedResourcePropertyInstanceFlexibility ] - [-ReservedResourceType ] [-ReviewDateTime ] [-SkuName ] - [-Term ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] -``` - -### Create -``` -New-AzBillingBenefitsReservationOrderAlias -Name -Body + [-AppliedScopeType ] [-BillingPlan ] [-BillingScopeId ] [-DisplayName ] + [-Location ] [-Quantity ] [-Renew] [-ReservedResourcePropertyInstanceFlexibility ] + [-ReservedResourceType ] [-ReviewDateTime ] [-SkuName ] [-Term ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` -### CreateViaIdentity +### CreateViaJsonFilePath ``` -New-AzBillingBenefitsReservationOrderAlias -InputObject - -Body [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] - [] +New-AzBillingBenefitsReservationOrderAlias -Name -JsonFilePath [-DefaultProfile ] + [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` -### CreateViaIdentityExpanded +### CreateViaJsonString ``` -New-AzBillingBenefitsReservationOrderAlias -InputObject - [-AppliedScopePropertyDisplayName ] [-AppliedScopePropertyManagementGroupId ] - [-AppliedScopePropertyResourceGroupId ] [-AppliedScopePropertySubscriptionId ] - [-AppliedScopePropertyTenantId ] [-AppliedScopeType ] [-BillingPlan ] - [-BillingScopeId ] [-DisplayName ] [-Location ] [-Quantity ] [-Renew] - [-ReservedResourcePropertyInstanceFlexibility ] - [-ReservedResourceType ] [-ReviewDateTime ] [-SkuName ] - [-Term ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +New-AzBillingBenefitsReservationOrderAlias -Name -JsonString [-DefaultProfile ] + [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION -Create a reservation order alias. +create a reservation order alias. ## EXAMPLES @@ -74,7 +60,7 @@ Display name ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -89,7 +75,7 @@ Fully-qualified identifier of the management group where the benefit must be app ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -104,7 +90,7 @@ Fully-qualified identifier of the resource group. ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -119,7 +105,7 @@ Fully-qualified identifier of the subscription. ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -134,7 +120,7 @@ Tenant ID where the benefit is applied. ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -148,8 +134,8 @@ Accept wildcard characters: False Type of the Applied Scope. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -179,8 +165,8 @@ Represents the billing plan in ISO 8601 format. Required only for monthly billing plans. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -195,7 +181,7 @@ Subscription that will be charged for purchasing the benefit ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -205,22 +191,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Body -Reservation order alias -To construct, see NOTES section for BODY properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IReservationOrderAliasRequest -Parameter Sets: Create, CreateViaIdentity -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - ### -DefaultProfile The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. @@ -242,7 +212,7 @@ Display name ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -252,19 +222,33 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -InputObject -Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. +### -JsonFilePath +Path of Json file supplied to the Create operation ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IBillingBenefitsIdentity -Parameter Sets: CreateViaIdentity, CreateViaIdentityExpanded +Type: System.String +Parameter Sets: CreateViaJsonFilePath Aliases: Required: True Position: Named Default value: None -Accept pipeline input: True (ByValue) +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False Accept wildcard characters: False ``` @@ -273,7 +257,7 @@ The Azure Region where the reservation benefits are applied to. ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -288,7 +272,7 @@ Name of the reservation order alias ```yaml Type: System.String -Parameter Sets: Create, CreateExpanded +Parameter Sets: (All) Aliases: ReservationOrderAliasName Required: True @@ -318,7 +302,7 @@ Total Quantity of the SKUs purchased in the Reservation. ```yaml Type: System.Int32 -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -333,7 +317,7 @@ Setting this to true will automatically purchase a new benefit on the expiration ```yaml Type: System.Management.Automation.SwitchParameter -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -347,8 +331,8 @@ Accept wildcard characters: False Turning this on will apply the reservation discount to other VMs in the same VM size group. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.InstanceFlexibility -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -362,8 +346,8 @@ Accept wildcard characters: False The type of the resource that is being reserved. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.ReservedResourceType -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -378,7 +362,7 @@ This is the date-time when the Azure Hybrid Benefit needs to be reviewed. ```yaml Type: System.DateTime -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -393,7 +377,7 @@ Name of the SKU to be applied ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -407,8 +391,8 @@ Accept wildcard characters: False Represent benefit term in ISO 8601 format. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -454,13 +438,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IReservationOrderAliasRequest - -### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IBillingBenefitsIdentity - ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IReservationOrderAliasResponse +### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IReservationOrderAliasResponse ## NOTES diff --git a/src/BillingBenefits/BillingBenefits.Autorest/docs/New-AzBillingBenefitsSavingsPlanOrderAlias.md b/src/BillingBenefits/BillingBenefits.Autorest/docs/New-AzBillingBenefitsSavingsPlanOrderAlias.md index 542593550dbb..d53cc8dbd50d 100644 --- a/src/BillingBenefits/BillingBenefits.Autorest/docs/New-AzBillingBenefitsSavingsPlanOrderAlias.md +++ b/src/BillingBenefits/BillingBenefits.Autorest/docs/New-AzBillingBenefitsSavingsPlanOrderAlias.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzBillingBenefitsSavingsPlanOrderAlias ## SYNOPSIS -Create a savings plan. +create a savings plan. Learn more about permissions needed at https://go.microsoft.com/fwlink/?linkid=2215851 ## SYNTAX @@ -18,38 +18,26 @@ Learn more about permissions needed at https://go.microsoft.com/fwlink/?linkid=2 New-AzBillingBenefitsSavingsPlanOrderAlias -Name [-AppliedScopePropertyDisplayName ] [-AppliedScopePropertyManagementGroupId ] [-AppliedScopePropertyResourceGroupId ] [-AppliedScopePropertySubscriptionId ] [-AppliedScopePropertyTenantId ] - [-AppliedScopeType ] [-BillingPlan ] [-BillingScopeId ] - [-CommitmentAmount ] [-CommitmentCurrencyCode ] [-CommitmentGrain ] - [-DisplayName ] [-Kind ] [-SkuName ] [-Term ] [-DefaultProfile ] - [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] -``` - -### Create -``` -New-AzBillingBenefitsSavingsPlanOrderAlias -Name -Body - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + [-AppliedScopeType ] [-BillingPlan ] [-BillingScopeId ] [-CommitmentAmount ] + [-CommitmentCurrencyCode ] [-CommitmentGrain ] [-DisplayName ] [-Kind ] + [-SkuName ] [-Term ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] ``` -### CreateViaIdentity +### CreateViaJsonFilePath ``` -New-AzBillingBenefitsSavingsPlanOrderAlias -InputObject - -Body [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] - [] +New-AzBillingBenefitsSavingsPlanOrderAlias -Name -JsonFilePath [-DefaultProfile ] + [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` -### CreateViaIdentityExpanded +### CreateViaJsonString ``` -New-AzBillingBenefitsSavingsPlanOrderAlias -InputObject - [-AppliedScopePropertyDisplayName ] [-AppliedScopePropertyManagementGroupId ] - [-AppliedScopePropertyResourceGroupId ] [-AppliedScopePropertySubscriptionId ] - [-AppliedScopePropertyTenantId ] [-AppliedScopeType ] [-BillingPlan ] - [-BillingScopeId ] [-CommitmentAmount ] [-CommitmentCurrencyCode ] - [-CommitmentGrain ] [-DisplayName ] [-Kind ] [-SkuName ] - [-Term ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +New-AzBillingBenefitsSavingsPlanOrderAlias -Name -JsonString [-DefaultProfile ] + [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION -Create a savings plan. +create a savings plan. Learn more about permissions needed at https://go.microsoft.com/fwlink/?linkid=2215851 ## EXAMPLES @@ -75,7 +63,7 @@ Display name ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -90,7 +78,7 @@ Fully-qualified identifier of the management group where the benefit must be app ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -105,7 +93,7 @@ Fully-qualified identifier of the resource group. ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -120,7 +108,7 @@ Fully-qualified identifier of the subscription. ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -135,7 +123,7 @@ Tenant ID where the benefit is applied. ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -149,8 +137,8 @@ Accept wildcard characters: False Type of the Applied Scope. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -180,8 +168,8 @@ Represents the billing plan in ISO 8601 format. Required only for monthly billing plans. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -196,7 +184,7 @@ Subscription that will be charged for purchasing the benefit ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -206,28 +194,12 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Body -Savings plan order alias -To construct, see NOTES section for BODY properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanOrderAliasModel -Parameter Sets: Create, CreateViaIdentity -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - ### -CommitmentAmount . ```yaml Type: System.Double -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -242,7 +214,7 @@ The ISO 4217 3-letter currency code for the currency used by this purchase recor ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -256,8 +228,8 @@ Accept wildcard characters: False Commitment grain. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -288,7 +260,7 @@ Display name ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -298,19 +270,33 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -InputObject -Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. +### -JsonFilePath +Path of Json file supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Create operation ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IBillingBenefitsIdentity -Parameter Sets: CreateViaIdentity, CreateViaIdentityExpanded +Type: System.String +Parameter Sets: CreateViaJsonString Aliases: Required: True Position: Named Default value: None -Accept pipeline input: True (ByValue) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -319,7 +305,7 @@ Resource provider kind ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -334,7 +320,7 @@ Name of the savings plan order alias ```yaml Type: System.String -Parameter Sets: Create, CreateExpanded +Parameter Sets: (All) Aliases: SavingsPlanOrderAliasName Required: True @@ -364,7 +350,7 @@ Name of the SKU to be applied ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -378,8 +364,8 @@ Accept wildcard characters: False Represent benefit term in ISO 8601 format. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -425,15 +411,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanOrderAliasModel - -### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IBillingBenefitsIdentity - ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanOrderAliasModel +### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.ISavingsPlanOrderAliasModel ## NOTES ## RELATED LINKS +[https://go.microsoft.com/fwlink/?linkid=2215851/](https://go.microsoft.com/fwlink/?linkid=2215851/) + diff --git a/src/BillingBenefits/BillingBenefits.Autorest/docs/Update-AzBillingBenefitsSavingsPlan.md b/src/BillingBenefits/BillingBenefits.Autorest/docs/Update-AzBillingBenefitsSavingsPlan.md index e6ec4359b34e..4a8811b36501 100644 --- a/src/BillingBenefits/BillingBenefits.Autorest/docs/Update-AzBillingBenefitsSavingsPlan.md +++ b/src/BillingBenefits/BillingBenefits.Autorest/docs/Update-AzBillingBenefitsSavingsPlan.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzBillingBenefitsSavingsPlan ## SYNOPSIS -Update savings plan. +update savings plan. ## SYNTAX @@ -17,34 +17,44 @@ Update savings plan. Update-AzBillingBenefitsSavingsPlan -Id -OrderId [-AppliedScopePropertyDisplayName ] [-AppliedScopePropertyManagementGroupId ] [-AppliedScopePropertyResourceGroupId ] [-AppliedScopePropertySubscriptionId ] [-AppliedScopePropertyTenantId ] - [-AppliedScopeType ] [-DisplayName ] [-Renew] [-RenewProperty ] + [-AppliedScopeType ] [-DisplayName ] [-Renew] [-RenewProperty ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] ``` -### Update +### UpdateViaIdentityExpanded ``` -Update-AzBillingBenefitsSavingsPlan -Id -OrderId -Body - [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] +Update-AzBillingBenefitsSavingsPlan -InputObject + [-AppliedScopePropertyDisplayName ] [-AppliedScopePropertyManagementGroupId ] + [-AppliedScopePropertyResourceGroupId ] [-AppliedScopePropertySubscriptionId ] + [-AppliedScopePropertyTenantId ] [-AppliedScopeType ] [-DisplayName ] [-Renew] + [-RenewProperty ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] + [] ``` -### UpdateViaIdentity +### UpdateViaIdentitySavingsPlanOrderExpanded ``` -Update-AzBillingBenefitsSavingsPlan -InputObject -Body +Update-AzBillingBenefitsSavingsPlan -Id -SavingsPlanOrderInputObject + [-AppliedScopePropertyDisplayName ] [-AppliedScopePropertyManagementGroupId ] + [-AppliedScopePropertyResourceGroupId ] [-AppliedScopePropertySubscriptionId ] + [-AppliedScopePropertyTenantId ] [-AppliedScopeType ] [-DisplayName ] [-Renew] + [-RenewProperty ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] + [] +``` + +### UpdateViaJsonFilePath +``` +Update-AzBillingBenefitsSavingsPlan -Id -OrderId -JsonFilePath [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] ``` -### UpdateViaIdentityExpanded +### UpdateViaJsonString ``` -Update-AzBillingBenefitsSavingsPlan -InputObject - [-AppliedScopePropertyDisplayName ] [-AppliedScopePropertyManagementGroupId ] - [-AppliedScopePropertyResourceGroupId ] [-AppliedScopePropertySubscriptionId ] - [-AppliedScopePropertyTenantId ] [-AppliedScopeType ] [-DisplayName ] - [-Renew] [-RenewProperty ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] - [] +Update-AzBillingBenefitsSavingsPlan -Id -OrderId -JsonString + [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION -Update savings plan. +update savings plan. ## EXAMPLES @@ -68,7 +78,7 @@ Display name ```yaml Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded, UpdateViaIdentitySavingsPlanOrderExpanded Aliases: Required: False @@ -83,7 +93,7 @@ Fully-qualified identifier of the management group where the benefit must be app ```yaml Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded, UpdateViaIdentitySavingsPlanOrderExpanded Aliases: Required: False @@ -98,7 +108,7 @@ Fully-qualified identifier of the resource group. ```yaml Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded, UpdateViaIdentitySavingsPlanOrderExpanded Aliases: Required: False @@ -113,7 +123,7 @@ Fully-qualified identifier of the subscription. ```yaml Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded, UpdateViaIdentitySavingsPlanOrderExpanded Aliases: Required: False @@ -128,7 +138,7 @@ Tenant ID where the benefit is applied. ```yaml Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded, UpdateViaIdentitySavingsPlanOrderExpanded Aliases: Required: False @@ -142,8 +152,8 @@ Accept wildcard characters: False Type of the Applied Scope. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded, UpdateViaIdentitySavingsPlanOrderExpanded Aliases: Required: False @@ -153,22 +163,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Body -Savings plan patch request -To construct, see NOTES section for BODY properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequest -Parameter Sets: Update, UpdateViaIdentity -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - ### -DefaultProfile The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. @@ -190,7 +184,7 @@ Display name ```yaml Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded, UpdateViaIdentitySavingsPlanOrderExpanded Aliases: Required: False @@ -205,7 +199,7 @@ ID of the savings plan ```yaml Type: System.String -Parameter Sets: Update, UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaIdentitySavingsPlanOrderExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: SavingsPlanId Required: True @@ -217,11 +211,10 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IBillingBenefitsIdentity -Parameter Sets: UpdateViaIdentity, UpdateViaIdentityExpanded +Parameter Sets: UpdateViaIdentityExpanded Aliases: Required: True @@ -231,12 +224,42 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Update operation + +```yaml +Type: System.String +Parameter Sets: UpdateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Update operation + +```yaml +Type: System.String +Parameter Sets: UpdateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -OrderId Order ID of the savings plan ```yaml Type: System.String -Parameter Sets: Update, UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: SavingsPlanOrderId Required: True @@ -266,7 +289,7 @@ Setting this to true will automatically purchase a new benefit on the expiration ```yaml Type: System.Management.Automation.SwitchParameter -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded, UpdateViaIdentitySavingsPlanOrderExpanded Aliases: Required: False @@ -278,11 +301,10 @@ Accept wildcard characters: False ### -RenewProperty . -To construct, see NOTES section for RENEWPROPERTY properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewProperties -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IRenewProperties +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded, UpdateViaIdentitySavingsPlanOrderExpanded Aliases: Required: False @@ -292,6 +314,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -SavingsPlanOrderInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IBillingBenefitsIdentity +Parameter Sets: UpdateViaIdentitySavingsPlanOrderExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -Confirm Prompts you for confirmation before running the cmdlet. @@ -328,13 +365,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequest - ### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IBillingBenefitsIdentity ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModel +### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.ISavingsPlanModel ## NOTES diff --git a/src/BillingBenefits/BillingBenefits.Autorest/docs/Update-AzBillingBenefitsSavingsPlanOrderAlias.md b/src/BillingBenefits/BillingBenefits.Autorest/docs/Update-AzBillingBenefitsSavingsPlanOrderAlias.md new file mode 100644 index 000000000000..96e7af91ae7c --- /dev/null +++ b/src/BillingBenefits/BillingBenefits.Autorest/docs/Update-AzBillingBenefitsSavingsPlanOrderAlias.md @@ -0,0 +1,410 @@ +--- +external help file: +Module Name: Az.BillingBenefits +online version: https://learn.microsoft.com/powershell/module/az.billingbenefits/update-azbillingbenefitssavingsplanorderalias +schema: 2.0.0 +--- + +# Update-AzBillingBenefitsSavingsPlanOrderAlias + +## SYNOPSIS +update a savings plan. +Learn more about permissions needed at https://go.microsoft.com/fwlink/?linkid=2215851 + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzBillingBenefitsSavingsPlanOrderAlias -Name [-AppliedScopePropertyDisplayName ] + [-AppliedScopePropertyManagementGroupId ] [-AppliedScopePropertyResourceGroupId ] + [-AppliedScopePropertySubscriptionId ] [-AppliedScopePropertyTenantId ] + [-AppliedScopeType ] [-BillingPlan ] [-BillingScopeId ] [-CommitmentAmount ] + [-CommitmentCurrencyCode ] [-CommitmentGrain ] [-DisplayName ] [-Kind ] + [-SkuName ] [-Term ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzBillingBenefitsSavingsPlanOrderAlias -InputObject + [-AppliedScopePropertyDisplayName ] [-AppliedScopePropertyManagementGroupId ] + [-AppliedScopePropertyResourceGroupId ] [-AppliedScopePropertySubscriptionId ] + [-AppliedScopePropertyTenantId ] [-AppliedScopeType ] [-BillingPlan ] + [-BillingScopeId ] [-CommitmentAmount ] [-CommitmentCurrencyCode ] + [-CommitmentGrain ] [-DisplayName ] [-Kind ] [-SkuName ] [-Term ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +update a savings plan. +Learn more about permissions needed at https://go.microsoft.com/fwlink/?linkid=2215851 + +## EXAMPLES + +### Example 1: Update a savings plan. +```powershell +Update-AzBillingBenefitsSavingsPlanOrderAlias -Name "PSTest1" -AppliedScopeType "Shared" -BillingPlan "P1M" ` +-BillingScopeId "/subscriptions/eef82110-c91b-4395-9420-fcfcbefc5a47" -CommitmentAmount 0.001 -CommitmentCurrencyCode "USD" -CommitmentGrain "Hourly" -SkuName "Compute_Savings_Plan" -DisplayName "PSTest199" -Term "P3Y" +``` + +```output +Name DisplayName SkuName CommitmentAmount CommitmentCurrencyCode CommitmentGrain SavingsPlanOrderId ProvisioningState BillingScopeId +---- ----------- ------- ---------------- ---------------------- --------------- ------------------ ----------------- -------------- +PSTest1 PSTest1 Compute_Savings_Plan 0.001 USD Hourly /providers/Microsoft.BillingBenefits/savingsPlanOrders/955e24a7-6672-4038-9961-619a75c2acf4 Created /subscriptions/eef82110-c91b-4395-9420… +``` + +update a savings plan. +Learn more about permissions needed at https://go.microsoft.com/fwlink/?linkid=2215851 + +## PARAMETERS + +### -AppliedScopePropertyDisplayName +Display name + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AppliedScopePropertyManagementGroupId +Fully-qualified identifier of the management group where the benefit must be applied. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AppliedScopePropertyResourceGroupId +Fully-qualified identifier of the resource group. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AppliedScopePropertySubscriptionId +Fully-qualified identifier of the subscription. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AppliedScopePropertyTenantId +Tenant ID where the benefit is applied. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AppliedScopeType +Type of the Applied Scope. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -BillingPlan +Represents the billing plan in ISO 8601 format. +Required only for monthly billing plans. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -BillingScopeId +Subscription that will be charged for purchasing the benefit + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CommitmentAmount +. + +```yaml +Type: System.Double +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CommitmentCurrencyCode +The ISO 4217 3-letter currency code for the currency used by this purchase record. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CommitmentGrain +Commitment grain. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DisplayName +Display name + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IBillingBenefitsIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Kind +Resource provider kind + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +Name of the savings plan order alias + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: SavingsPlanOrderAliasName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SkuName +Name of the SKU to be applied + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Term +Represent benefit term in ISO 8601 format. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IBillingBenefitsIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.ISavingsPlanOrderAliasModel + +## NOTES + +## RELATED LINKS + +[https://go.microsoft.com/fwlink/?linkid=2215851/](https://go.microsoft.com/fwlink/?linkid=2215851/) + diff --git a/src/BillingBenefits/BillingBenefits.Autorest/examples/Get-AzBillingBenefitsSavingsPlan.md b/src/BillingBenefits/BillingBenefits.Autorest/examples/Get-AzBillingBenefitsSavingsPlan.md index 7383a6e51452..3fb3c1ee8d2f 100644 --- a/src/BillingBenefits/BillingBenefits.Autorest/examples/Get-AzBillingBenefitsSavingsPlan.md +++ b/src/BillingBenefits/BillingBenefits.Autorest/examples/Get-AzBillingBenefitsSavingsPlan.md @@ -22,4 +22,4 @@ Name Status ExpiryDate PurchaseDate Term Scope Applie PSTest7 Succeeded 11/29/2025 2:23:51 AM 11/29/2022 2:20:38 AM P3Y Shared Compute_Savings_Plan 0.001 USD ``` -Get a single savings plan +Get a single savings plan \ No newline at end of file diff --git a/src/BillingBenefits/BillingBenefits.Autorest/examples/Get-AzBillingBenefitsSavingsPlanList.md b/src/BillingBenefits/BillingBenefits.Autorest/examples/Get-AzBillingBenefitsSavingsPlanList.md index a95d18b34de1..7e6871cbf018 100644 --- a/src/BillingBenefits/BillingBenefits.Autorest/examples/Get-AzBillingBenefitsSavingsPlanList.md +++ b/src/BillingBenefits/BillingBenefits.Autorest/examples/Get-AzBillingBenefitsSavingsPlanList.md @@ -31,4 +31,4 @@ PSTesth12 Succeeded 11/29/2025 2:48:30 AM 11/29/2022 PSTesth1 Succeeded 11/29/2025 2:45:28 AM 11/29/2022 2:43:36 AM P3Y Shared Compute_Savings_Plan 0.001 USD ``` -List savings plans with filtering condition. +List savings plans with filtering condition. \ No newline at end of file diff --git a/src/BillingBenefits/BillingBenefits.Autorest/examples/Invoke-AzBillingBenefitsElevateSavingPlanOrder.md b/src/BillingBenefits/BillingBenefits.Autorest/examples/Invoke-AzBillingBenefitsElevateSavingPlanOrder.md index 7e986f08c7cc..0768f413b9a0 100644 --- a/src/BillingBenefits/BillingBenefits.Autorest/examples/Invoke-AzBillingBenefitsElevateSavingPlanOrder.md +++ b/src/BillingBenefits/BillingBenefits.Autorest/examples/Invoke-AzBillingBenefitsElevateSavingPlanOrder.md @@ -11,19 +11,18 @@ Name PrincipalId RoleDe Elevate savings plan order -### Example 2: Elevate savings plan order via identiy -```powershell -$identity = @{ - SavingsPlanOrderId = "e45905d2-9207-4f24-8549-f615c203b49b" -} +### Example 2: Elevate savings plan order via identiy +```powershell +$identity = @{ + SavingsPlanOrderId = "e45905d2-9207-4f24-8549-f615c203b49b" +} +$response = Invoke-AzBillingBenefitsElevateSavingPlanOrder -InputObject $identity +``` -$response = Invoke-AzBillingBenefitsElevateSavingPlanOrder -InputObject $identity -``` +```output +Name PrincipalId RoleDefinitionId Scope +---- ----------- ---------------- ----- +5c545baf-2ef5-4016-9c31-6e0e23c397a0 067e7443-3a55-40b6-a2d8-0a7a12a9da2d /providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb635 /providers/Microsoft.BillingBenefits/savingsplanorders/e45905d2-9207-4f24-8549-f615c203b49b +``` -```output -Name PrincipalId RoleDefinitionId Scope ----- ----------- ---------------- ----- -5c545baf-2ef5-4016-9c31-6e0e23c397a0 067e7443-3a55-40b6-a2d8-0a7a12a9da2d /providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb635 /providers/Microsoft.BillingBenefits/savingsplanorders/e45905d2-9207-4f24-8549-f615c203b49b -``` - -Elevate savings plan order +Elevate savings plan order \ No newline at end of file diff --git a/src/BillingBenefits/BillingBenefits.Autorest/examples/Invoke-AzBillingBenefitsSavingsPlanPurchaseValidation.md b/src/BillingBenefits/BillingBenefits.Autorest/examples/Invoke-AzBillingBenefitsSavingsPlanPurchaseValidation.md index 7a9e8c26d776..6e635f84a0a3 100644 --- a/src/BillingBenefits/BillingBenefits.Autorest/examples/Invoke-AzBillingBenefitsSavingsPlanPurchaseValidation.md +++ b/src/BillingBenefits/BillingBenefits.Autorest/examples/Invoke-AzBillingBenefitsSavingsPlanPurchaseValidation.md @@ -24,17 +24,4 @@ Valid ReasonCode Reason True ``` -Validate savings plan purchase(expended). - -### Example 2: Validate savings plan purchase. -```powershell -Invoke-AzBillingBenefitsSavingsPlanPurchaseValidation -Body $body -``` - -```output -Valid ReasonCode Reason ------ ---------- ------ -True -``` - -Validate savings plan purchase. +Validate savings plan purchase(expended). \ No newline at end of file diff --git a/src/BillingBenefits/BillingBenefits.Autorest/examples/Update-AzBillingBenefitsSavingsPlanOrderAlias.md b/src/BillingBenefits/BillingBenefits.Autorest/examples/Update-AzBillingBenefitsSavingsPlanOrderAlias.md new file mode 100644 index 000000000000..119a6467e67f --- /dev/null +++ b/src/BillingBenefits/BillingBenefits.Autorest/examples/Update-AzBillingBenefitsSavingsPlanOrderAlias.md @@ -0,0 +1,14 @@ +### Example 1: Update a savings plan. +```powershell +Update-AzBillingBenefitsSavingsPlanOrderAlias -Name "PSTest1" -AppliedScopeType "Shared" -BillingPlan "P1M" ` +-BillingScopeId "/subscriptions/eef82110-c91b-4395-9420-fcfcbefc5a47" -CommitmentAmount 0.001 -CommitmentCurrencyCode "USD" -CommitmentGrain "Hourly" -SkuName "Compute_Savings_Plan" -DisplayName "PSTest199" -Term "P3Y" +``` + +```output +Name DisplayName SkuName CommitmentAmount CommitmentCurrencyCode CommitmentGrain SavingsPlanOrderId ProvisioningState BillingScopeId +---- ----------- ------- ---------------- ---------------------- --------------- ------------------ ----------------- -------------- +PSTest1 PSTest1 Compute_Savings_Plan 0.001 USD Hourly /providers/Microsoft.BillingBenefits/savingsPlanOrders/955e24a7-6672-4038-9961-619a75c2acf4 Created /subscriptions/eef82110-c91b-4395-9420… +``` + +update a savings plan. +Learn more about permissions needed at https://go.microsoft.com/fwlink/?linkid=2215851 \ No newline at end of file diff --git a/src/BillingBenefits/BillingBenefits.Autorest/generate-info.json b/src/BillingBenefits/BillingBenefits.Autorest/generate-info.json index 6459448479c2..ca148b5ef5b7 100644 --- a/src/BillingBenefits/BillingBenefits.Autorest/generate-info.json +++ b/src/BillingBenefits/BillingBenefits.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "e8f2fc86-2b2f-4913-b0d8-18ec7d2187cc" + "generate_Id": "eb51c9d3-bad9-4c76-8750-361144278dc9" } diff --git a/src/BillingBenefits/BillingBenefits.Autorest/resources/README.md b/src/BillingBenefits/BillingBenefits.Autorest/resources/README.md new file mode 100644 index 000000000000..937f07f8fec2 --- /dev/null +++ b/src/BillingBenefits/BillingBenefits.Autorest/resources/README.md @@ -0,0 +1,11 @@ +# Resources +This directory can contain any additional resources for module that are not required at runtime. This directory **does not** get packaged with the module. If you have assets for custom implementation, place them into the `..\custom` folder. + +## Info +- Modifiable: yes +- Generated: no +- Committed: yes +- Packaged: no + +## Purpose +Use this folder to put anything you want to keep around as part of the repository for the module, but is not something that is required for the module. For example, development files, packaged builds, or additional information. This is only intended to be used in repositories where the module's output directory is cleaned, but tangential resources for the module want to remain intact. \ No newline at end of file diff --git a/src/BillingBenefits/BillingBenefits.Autorest/test/Invoke-AzBillingBenefitsSavingsPlanPurchaseValidation.Tests.ps1 b/src/BillingBenefits/BillingBenefits.Autorest/test/Invoke-AzBillingBenefitsSavingsPlanPurchaseValidation.Tests.ps1 index 3e31463385fb..aa7062288f39 100644 --- a/src/BillingBenefits/BillingBenefits.Autorest/test/Invoke-AzBillingBenefitsSavingsPlanPurchaseValidation.Tests.ps1 +++ b/src/BillingBenefits/BillingBenefits.Autorest/test/Invoke-AzBillingBenefitsSavingsPlanPurchaseValidation.Tests.ps1 @@ -39,7 +39,7 @@ Describe 'Invoke-AzBillingBenefitsSavingsPlanPurchaseValidation' { $response.Valid | Should -Be "True" } - It 'Validate' { + It 'Validate' -Skip { $response = Invoke-AzBillingBenefitsSavingsPlanPurchaseValidation -Body $body $response | Should -Not -Be $null $response.Valid | Should -Not -Be $null diff --git a/src/BillingBenefits/BillingBenefits.Autorest/test/Invoke-AzBillingBenefitsSavingsPlanUpdateValidation.Tests.ps1 b/src/BillingBenefits/BillingBenefits.Autorest/test/Invoke-AzBillingBenefitsSavingsPlanUpdateValidation.Tests.ps1 index 6a3b6466b2cd..29cab27ef338 100644 --- a/src/BillingBenefits/BillingBenefits.Autorest/test/Invoke-AzBillingBenefitsSavingsPlanUpdateValidation.Tests.ps1 +++ b/src/BillingBenefits/BillingBenefits.Autorest/test/Invoke-AzBillingBenefitsSavingsPlanUpdateValidation.Tests.ps1 @@ -38,7 +38,7 @@ Describe 'Invoke-AzBillingBenefitsSavingsPlanUpdateValidation' { $response.Valid | Should -Be "True" } - It 'Validate' { + It 'Validate' -Skip { $response = Invoke-AzBillingBenefitsSavingsPlanUpdateValidation -SavingsPlanId "9fde2a72-776b-49fc-869c-dca8859d7d62" -SavingsPlanOrderId "d7ea1620-2bba-46e2-8434-11f31bfb984d" -Body $body $response | Should -Not -Be $null $response.Valid | Should -Not -Be $null @@ -52,7 +52,7 @@ Describe 'Invoke-AzBillingBenefitsSavingsPlanUpdateValidation' { $response.Valid | Should -Be "True" } - It 'ValidateViaIdentity' { + It 'ValidateViaIdentity' -Skip { $response = Invoke-AzBillingBenefitsSavingsPlanUpdateValidation -InputObject $identity -Body $body $response | Should -Not -Be $null $response.Valid | Should -Not -Be $null diff --git a/src/BillingBenefits/BillingBenefits.Autorest/test/New-AzBillingBenefitsReservationOrderAlias.Tests.ps1 b/src/BillingBenefits/BillingBenefits.Autorest/test/New-AzBillingBenefitsReservationOrderAlias.Tests.ps1 index 8b56d0871a22..ed95cb5c4b9b 100644 --- a/src/BillingBenefits/BillingBenefits.Autorest/test/New-AzBillingBenefitsReservationOrderAlias.Tests.ps1 +++ b/src/BillingBenefits/BillingBenefits.Autorest/test/New-AzBillingBenefitsReservationOrderAlias.Tests.ps1 @@ -37,7 +37,7 @@ Describe 'New-AzBillingBenefitsReservationOrderAlias' { ExecuteTestCases($response) } - It 'Create' { + It 'Create' -Skip { $purchaseRequest = @{ AppliedScopeType = "Shared" BillingPlan = "P1M" @@ -54,7 +54,7 @@ Describe 'New-AzBillingBenefitsReservationOrderAlias' { ExecuteTestCases($response) } - It 'CreateViaIdentityExpanded' { + It 'CreateViaIdentityExpanded' -Skip { $identity = @{ ReservationOrderAliasName = "PSRITest5" } @@ -62,7 +62,7 @@ Describe 'New-AzBillingBenefitsReservationOrderAlias' { ExecuteTestCases($response) } - It 'CreateViaIdentity' { + It 'CreateViaIdentity' -Skip { $purchaseRequest = @{ AppliedScopeType = "Shared" BillingPlan = "P1M" diff --git a/src/BillingBenefits/BillingBenefits.Autorest/test/New-AzBillingBenefitsSavingsPlanOrderAlias.Tests.ps1 b/src/BillingBenefits/BillingBenefits.Autorest/test/New-AzBillingBenefitsSavingsPlanOrderAlias.Tests.ps1 index 8d33e9f55f18..217a579df2ab 100644 --- a/src/BillingBenefits/BillingBenefits.Autorest/test/New-AzBillingBenefitsSavingsPlanOrderAlias.Tests.ps1 +++ b/src/BillingBenefits/BillingBenefits.Autorest/test/New-AzBillingBenefitsSavingsPlanOrderAlias.Tests.ps1 @@ -38,7 +38,7 @@ Describe 'New-AzBillingBenefitsSavingsPlanOrderAlias' { ExecuteTestCases($response) } - It 'Create' { + It 'Create' -Skip { $request = @{ AppliedScopeType = "Shared" BillingPlan = "P1M" @@ -55,7 +55,7 @@ Describe 'New-AzBillingBenefitsSavingsPlanOrderAlias' { } - It 'CreateViaIdentityExpanded' { + It 'CreateViaIdentityExpanded' -Skip { $request = @{ AppliedScopeType = "Shared" BillingPlan = "P1M" @@ -76,7 +76,7 @@ Describe 'New-AzBillingBenefitsSavingsPlanOrderAlias' { ExecuteTestCases($response) } - It 'CreateViaIdentity' { + It 'CreateViaIdentity' -Skip { $identity = @{ SavingsPlanOrderAliasName = "PSTest10" } diff --git a/src/BillingBenefits/BillingBenefits.Autorest/test/Update-AzBillingBenefitsSavingsPlan.Tests.ps1 b/src/BillingBenefits/BillingBenefits.Autorest/test/Update-AzBillingBenefitsSavingsPlan.Tests.ps1 index fc6fc40cfbc9..6754cfc5b838 100644 --- a/src/BillingBenefits/BillingBenefits.Autorest/test/Update-AzBillingBenefitsSavingsPlan.Tests.ps1 +++ b/src/BillingBenefits/BillingBenefits.Autorest/test/Update-AzBillingBenefitsSavingsPlan.Tests.ps1 @@ -24,7 +24,7 @@ Describe 'Update-AzBillingBenefitsSavingsPlan' { $response2.DisplayName | Should -Not -Be $oldName } - It 'Update' { + It 'Update' -Skip { $response1 = Get-AzBillingBenefitsSavingsPlan -Id "0c382729-4c81-48a9-a350-5b7a8beccea5" -OrderId "e0167471-b48e-4c03-93ca-506ac67a567f" $oldName = $response1.DisplayName $request = @{ @@ -49,7 +49,7 @@ Describe 'Update-AzBillingBenefitsSavingsPlan' { $response2.DisplayName | Should -Not -Be $oldName } - It 'UpdateViaIdentity' { + It 'UpdateViaIdentity' -Skip { $identity = @{ SavingsPlanId = "cd6d708d-068e-4972-8535-410de471558f" SavingsPlanOrderId = "254638e0-2860-4e7b-af3e-92285554fc9d" @@ -65,7 +65,7 @@ Describe 'Update-AzBillingBenefitsSavingsPlan' { $response2.DisplayName | Should -Not -Be $oldName } - It 'UpdateWithRenewalSetting' { + It 'UpdateWithRenewalSetting' -Skip { $response1 = Get-AzBillingBenefitsSavingsPlan -Id "82a298d8-67ca-470d-ae9d-17dc39793fe8" -OrderId "6296d1ad-86dd-4959-a949-64b8a10603a6" $response1.Renew | Should -Be $False diff --git a/src/BillingBenefits/BillingBenefits.Autorest/test/Update-AzBillingBenefitsSavingsPlanOrderAlias.Tests.ps1 b/src/BillingBenefits/BillingBenefits.Autorest/test/Update-AzBillingBenefitsSavingsPlanOrderAlias.Tests.ps1 new file mode 100644 index 000000000000..a1cb736d08a5 --- /dev/null +++ b/src/BillingBenefits/BillingBenefits.Autorest/test/Update-AzBillingBenefitsSavingsPlanOrderAlias.Tests.ps1 @@ -0,0 +1,85 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Update-AzBillingBenefitsSavingsPlanOrderAlias')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzBillingBenefitsSavingsPlanOrderAlias.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +function ExecuteTestCases([object]$response) { + $response | Should -Not -Be $null + $response.Id | Should -Not -Be $null + $response.Name | Should -Not -Be $null + $response.SkuName | Should -Be "Compute_Savings_Plan" + $response.ProvisioningState | Should -Be "Created" + $response.Type | Should -Be "Microsoft.BillingBenefits/savingsPlanOrderAliases" + $response.Term | Should -Be "P3Y" + $response.DisplayName | Should -Not -Be $null + $response.SavingsPlanOrderId | Should -Not -Be $null + $response.AppliedScopeType | Should -Be "Shared" + $response.BillingPlan | Should -Be "P1M" + $response.CommitmentGrain | Should -Be "Hourly" + $response.CommitmentCurrencyCode | Should -Be "USD" + $response.CommitmentAmount | Should -Be 0.001 + $response.BillingScopeId | Should -Be "/subscriptions/eef82110-c91b-4395-9420-fcfcbefc5a47" +} + +Describe 'Update-AzBillingBenefitsSavingsPlanOrderAlias' { + It 'UpdateExpanded' -skip { + $response = Update-AzBillingBenefitsSavingsPlanOrderAlias -Name "PSTest1" -AppliedScopeType "Shared" -BillingPlan "P1M" -BillingScopeId "/subscriptions/eef82110-c91b-4395-9420-fcfcbefc5a47" -CommitmentAmount 0.001 -CommitmentCurrencyCode "USD" -CommitmentGrain "Hourly" -SkuName "Compute_Savings_Plan" -DisplayName "PSTest1" -Term "P3Y" + ExecuteTestCases($response) + } + + It 'Update' -skip { + $request = @{ + AppliedScopeType = "Shared" + BillingPlan = "P1M" + BillingScopeId = "/subscriptions/eef82110-c91b-4395-9420-fcfcbefc5a47" + CommitmentAmount = 0.001 + CommitmentCurrencyCode = "USD" + CommitmentGrain = "Hourly" + SkuName = "Compute_Savings_Plan" + DisplayName = "PSTest2" + Term = "P3Y" + } + $response = Update-AzBillingBenefitsSavingsPlanOrderAlias -Name "PSTest5" -Body $request + ExecuteTestCases($response) + } + + It 'UpdateViaIdentityExpanded' -skip { + $request = @{ + AppliedScopeType = "Shared" + BillingPlan = "P1M" + BillingScopeId = "/subscriptions/eef82110-c91b-4395-9420-fcfcbefc5a47" + CommitmentAmount = 0.001 + CommitmentCurrencyCode = "USD" + CommitmentGrain = "Hourly" + SkuName = "Compute_Savings_Plan" + DisplayName = "PSTest3" + Term = "P3Y" + } + + $identity = @{ + SavingsPlanOrderAliasName = "PSTest3" + } + + $response = Update-AzBillingBenefitsSavingsPlanOrderAlias -InputObject $identity -Body $request + ExecuteTestCases($response) + } + + It 'UpdateViaIdentity' -skip { + $identity = @{ + SavingsPlanOrderAliasName = "PSTest10" + } + $response = Update-AzBillingBenefitsSavingsPlanOrderAlias -InputObject $identity -AppliedScopeType "Shared" -BillingPlan "P1M" -BillingScopeId "/subscriptions/eef82110-c91b-4395-9420-fcfcbefc5a47" -CommitmentAmount 0.001 -CommitmentCurrencyCode "USD" -CommitmentGrain "Hourly" -SkuName "Compute_Savings_Plan" -DisplayName "PSTest10" -Term "P3Y" + ExecuteTestCases($response) + } +} diff --git a/src/BillingBenefits/BillingBenefits.sln b/src/BillingBenefits/BillingBenefits.sln index 21dcdcadbd41..eb4eeb21555a 100644 --- a/src/BillingBenefits/BillingBenefits.sln +++ b/src/BillingBenefits/BillingBenefits.sln @@ -1,4 +1,4 @@ - + Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.0.31903.59 @@ -19,49 +19,119 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accoun EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BillingBenefits", "BillingBenefits\BillingBenefits.csproj", "{191DD75C-7FEF-4F30-BFE5-2817EC26F381}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.BillingBenefits", "..\..\generated\BillingBenefits\BillingBenefits.Autorest\Az.BillingBenefits.csproj", "{692E7C36-F4C3-4D77-B34C-33229417AA70}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "BillingBenefits.Autorest", "BillingBenefits.Autorest", "{C56B0755-5F98-1DBA-A603-3ACB36279AAA}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.BillingBenefits", "..\..\generated\BillingBenefits\BillingBenefits.Autorest\Az.BillingBenefits.csproj", "{796EBE73-FB26-4ABC-B636-39A0932049DC}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE + Release|x64 = Release|x64 + Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {9BD7A1BE-A48C-4D8C-B684-787035C0FC70}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {9BD7A1BE-A48C-4D8C-B684-787035C0FC70}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9BD7A1BE-A48C-4D8C-B684-787035C0FC70}.Debug|x64.ActiveCfg = Debug|Any CPU + {9BD7A1BE-A48C-4D8C-B684-787035C0FC70}.Debug|x64.Build.0 = Debug|Any CPU + {9BD7A1BE-A48C-4D8C-B684-787035C0FC70}.Debug|x86.ActiveCfg = Debug|Any CPU + {9BD7A1BE-A48C-4D8C-B684-787035C0FC70}.Debug|x86.Build.0 = Debug|Any CPU {9BD7A1BE-A48C-4D8C-B684-787035C0FC70}.Release|Any CPU.ActiveCfg = Release|Any CPU {9BD7A1BE-A48C-4D8C-B684-787035C0FC70}.Release|Any CPU.Build.0 = Release|Any CPU + {9BD7A1BE-A48C-4D8C-B684-787035C0FC70}.Release|x64.ActiveCfg = Release|Any CPU + {9BD7A1BE-A48C-4D8C-B684-787035C0FC70}.Release|x64.Build.0 = Release|Any CPU + {9BD7A1BE-A48C-4D8C-B684-787035C0FC70}.Release|x86.ActiveCfg = Release|Any CPU + {9BD7A1BE-A48C-4D8C-B684-787035C0FC70}.Release|x86.Build.0 = Release|Any CPU {F987DD42-074B-4C75-B866-516532EFE9D3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {F987DD42-074B-4C75-B866-516532EFE9D3}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F987DD42-074B-4C75-B866-516532EFE9D3}.Debug|x64.ActiveCfg = Debug|Any CPU + {F987DD42-074B-4C75-B866-516532EFE9D3}.Debug|x64.Build.0 = Debug|Any CPU + {F987DD42-074B-4C75-B866-516532EFE9D3}.Debug|x86.ActiveCfg = Debug|Any CPU + {F987DD42-074B-4C75-B866-516532EFE9D3}.Debug|x86.Build.0 = Debug|Any CPU {F987DD42-074B-4C75-B866-516532EFE9D3}.Release|Any CPU.ActiveCfg = Release|Any CPU {F987DD42-074B-4C75-B866-516532EFE9D3}.Release|Any CPU.Build.0 = Release|Any CPU + {F987DD42-074B-4C75-B866-516532EFE9D3}.Release|x64.ActiveCfg = Release|Any CPU + {F987DD42-074B-4C75-B866-516532EFE9D3}.Release|x64.Build.0 = Release|Any CPU + {F987DD42-074B-4C75-B866-516532EFE9D3}.Release|x86.ActiveCfg = Release|Any CPU + {F987DD42-074B-4C75-B866-516532EFE9D3}.Release|x86.Build.0 = Release|Any CPU {A9365D9C-0A12-4247-A020-9A9272DEFB49}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {A9365D9C-0A12-4247-A020-9A9272DEFB49}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A9365D9C-0A12-4247-A020-9A9272DEFB49}.Debug|x64.ActiveCfg = Debug|Any CPU + {A9365D9C-0A12-4247-A020-9A9272DEFB49}.Debug|x64.Build.0 = Debug|Any CPU + {A9365D9C-0A12-4247-A020-9A9272DEFB49}.Debug|x86.ActiveCfg = Debug|Any CPU + {A9365D9C-0A12-4247-A020-9A9272DEFB49}.Debug|x86.Build.0 = Debug|Any CPU {A9365D9C-0A12-4247-A020-9A9272DEFB49}.Release|Any CPU.ActiveCfg = Release|Any CPU {A9365D9C-0A12-4247-A020-9A9272DEFB49}.Release|Any CPU.Build.0 = Release|Any CPU + {A9365D9C-0A12-4247-A020-9A9272DEFB49}.Release|x64.ActiveCfg = Release|Any CPU + {A9365D9C-0A12-4247-A020-9A9272DEFB49}.Release|x64.Build.0 = Release|Any CPU + {A9365D9C-0A12-4247-A020-9A9272DEFB49}.Release|x86.ActiveCfg = Release|Any CPU + {A9365D9C-0A12-4247-A020-9A9272DEFB49}.Release|x86.Build.0 = Release|Any CPU {27AAD6F6-A19C-4DDB-B75E-326A3A9198AF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {27AAD6F6-A19C-4DDB-B75E-326A3A9198AF}.Debug|Any CPU.Build.0 = Debug|Any CPU + {27AAD6F6-A19C-4DDB-B75E-326A3A9198AF}.Debug|x64.ActiveCfg = Debug|Any CPU + {27AAD6F6-A19C-4DDB-B75E-326A3A9198AF}.Debug|x64.Build.0 = Debug|Any CPU + {27AAD6F6-A19C-4DDB-B75E-326A3A9198AF}.Debug|x86.ActiveCfg = Debug|Any CPU + {27AAD6F6-A19C-4DDB-B75E-326A3A9198AF}.Debug|x86.Build.0 = Debug|Any CPU {27AAD6F6-A19C-4DDB-B75E-326A3A9198AF}.Release|Any CPU.ActiveCfg = Release|Any CPU {27AAD6F6-A19C-4DDB-B75E-326A3A9198AF}.Release|Any CPU.Build.0 = Release|Any CPU + {27AAD6F6-A19C-4DDB-B75E-326A3A9198AF}.Release|x64.ActiveCfg = Release|Any CPU + {27AAD6F6-A19C-4DDB-B75E-326A3A9198AF}.Release|x64.Build.0 = Release|Any CPU + {27AAD6F6-A19C-4DDB-B75E-326A3A9198AF}.Release|x86.ActiveCfg = Release|Any CPU + {27AAD6F6-A19C-4DDB-B75E-326A3A9198AF}.Release|x86.Build.0 = Release|Any CPU {77F4591E-F13D-4351-A865-871654A6892C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {77F4591E-F13D-4351-A865-871654A6892C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {77F4591E-F13D-4351-A865-871654A6892C}.Debug|x64.ActiveCfg = Debug|Any CPU + {77F4591E-F13D-4351-A865-871654A6892C}.Debug|x64.Build.0 = Debug|Any CPU + {77F4591E-F13D-4351-A865-871654A6892C}.Debug|x86.ActiveCfg = Debug|Any CPU + {77F4591E-F13D-4351-A865-871654A6892C}.Debug|x86.Build.0 = Debug|Any CPU {77F4591E-F13D-4351-A865-871654A6892C}.Release|Any CPU.ActiveCfg = Release|Any CPU {77F4591E-F13D-4351-A865-871654A6892C}.Release|Any CPU.Build.0 = Release|Any CPU + {77F4591E-F13D-4351-A865-871654A6892C}.Release|x64.ActiveCfg = Release|Any CPU + {77F4591E-F13D-4351-A865-871654A6892C}.Release|x64.Build.0 = Release|Any CPU + {77F4591E-F13D-4351-A865-871654A6892C}.Release|x86.ActiveCfg = Release|Any CPU + {77F4591E-F13D-4351-A865-871654A6892C}.Release|x86.Build.0 = Release|Any CPU {6769628B-7A5A-4980-A228-254BF6FAC096}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {6769628B-7A5A-4980-A228-254BF6FAC096}.Debug|Any CPU.Build.0 = Debug|Any CPU + {6769628B-7A5A-4980-A228-254BF6FAC096}.Debug|x64.ActiveCfg = Debug|Any CPU + {6769628B-7A5A-4980-A228-254BF6FAC096}.Debug|x64.Build.0 = Debug|Any CPU + {6769628B-7A5A-4980-A228-254BF6FAC096}.Debug|x86.ActiveCfg = Debug|Any CPU + {6769628B-7A5A-4980-A228-254BF6FAC096}.Debug|x86.Build.0 = Debug|Any CPU {6769628B-7A5A-4980-A228-254BF6FAC096}.Release|Any CPU.ActiveCfg = Release|Any CPU {6769628B-7A5A-4980-A228-254BF6FAC096}.Release|Any CPU.Build.0 = Release|Any CPU + {6769628B-7A5A-4980-A228-254BF6FAC096}.Release|x64.ActiveCfg = Release|Any CPU + {6769628B-7A5A-4980-A228-254BF6FAC096}.Release|x64.Build.0 = Release|Any CPU + {6769628B-7A5A-4980-A228-254BF6FAC096}.Release|x86.ActiveCfg = Release|Any CPU + {6769628B-7A5A-4980-A228-254BF6FAC096}.Release|x86.Build.0 = Release|Any CPU {191DD75C-7FEF-4F30-BFE5-2817EC26F381}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {191DD75C-7FEF-4F30-BFE5-2817EC26F381}.Debug|Any CPU.Build.0 = Debug|Any CPU + {191DD75C-7FEF-4F30-BFE5-2817EC26F381}.Debug|x64.ActiveCfg = Debug|Any CPU + {191DD75C-7FEF-4F30-BFE5-2817EC26F381}.Debug|x64.Build.0 = Debug|Any CPU + {191DD75C-7FEF-4F30-BFE5-2817EC26F381}.Debug|x86.ActiveCfg = Debug|Any CPU + {191DD75C-7FEF-4F30-BFE5-2817EC26F381}.Debug|x86.Build.0 = Debug|Any CPU {191DD75C-7FEF-4F30-BFE5-2817EC26F381}.Release|Any CPU.ActiveCfg = Release|Any CPU {191DD75C-7FEF-4F30-BFE5-2817EC26F381}.Release|Any CPU.Build.0 = Release|Any CPU - {692E7C36-F4C3-4D77-B34C-33229417AA70}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {692E7C36-F4C3-4D77-B34C-33229417AA70}.Debug|Any CPU.Build.0 = Debug|Any CPU - {692E7C36-F4C3-4D77-B34C-33229417AA70}.Release|Any CPU.ActiveCfg = Release|Any CPU - {692E7C36-F4C3-4D77-B34C-33229417AA70}.Release|Any CPU.Build.0 = Release|Any CPU + {191DD75C-7FEF-4F30-BFE5-2817EC26F381}.Release|x64.ActiveCfg = Release|Any CPU + {191DD75C-7FEF-4F30-BFE5-2817EC26F381}.Release|x64.Build.0 = Release|Any CPU + {191DD75C-7FEF-4F30-BFE5-2817EC26F381}.Release|x86.ActiveCfg = Release|Any CPU + {191DD75C-7FEF-4F30-BFE5-2817EC26F381}.Release|x86.Build.0 = Release|Any CPU + {796EBE73-FB26-4ABC-B636-39A0932049DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {796EBE73-FB26-4ABC-B636-39A0932049DC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {796EBE73-FB26-4ABC-B636-39A0932049DC}.Debug|x64.ActiveCfg = Debug|Any CPU + {796EBE73-FB26-4ABC-B636-39A0932049DC}.Debug|x64.Build.0 = Debug|Any CPU + {796EBE73-FB26-4ABC-B636-39A0932049DC}.Debug|x86.ActiveCfg = Debug|Any CPU + {796EBE73-FB26-4ABC-B636-39A0932049DC}.Debug|x86.Build.0 = Debug|Any CPU + {796EBE73-FB26-4ABC-B636-39A0932049DC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {796EBE73-FB26-4ABC-B636-39A0932049DC}.Release|Any CPU.Build.0 = Release|Any CPU + {796EBE73-FB26-4ABC-B636-39A0932049DC}.Release|x64.ActiveCfg = Release|Any CPU + {796EBE73-FB26-4ABC-B636-39A0932049DC}.Release|x64.Build.0 = Release|Any CPU + {796EBE73-FB26-4ABC-B636-39A0932049DC}.Release|x86.ActiveCfg = Release|Any CPU + {796EBE73-FB26-4ABC-B636-39A0932049DC}.Release|x86.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE EndGlobalSection GlobalSection(NestedProjects) = preSolution {9BD7A1BE-A48C-4D8C-B684-787035C0FC70} = {C1F40F83-7C79-4C47-B852-D2931038922E} @@ -70,5 +140,6 @@ Global {27AAD6F6-A19C-4DDB-B75E-326A3A9198AF} = {C1F40F83-7C79-4C47-B852-D2931038922E} {77F4591E-F13D-4351-A865-871654A6892C} = {C1F40F83-7C79-4C47-B852-D2931038922E} {6769628B-7A5A-4980-A228-254BF6FAC096} = {C1F40F83-7C79-4C47-B852-D2931038922E} + {796EBE73-FB26-4ABC-B636-39A0932049DC} = {C56B0755-5F98-1DBA-A603-3ACB36279AAA} EndGlobalSection EndGlobal diff --git a/src/BillingBenefits/BillingBenefits/Az.BillingBenefits.psd1 b/src/BillingBenefits/BillingBenefits/Az.BillingBenefits.psd1 index 36e24e4a510d..fbb3dbfde761 100644 --- a/src/BillingBenefits/BillingBenefits/Az.BillingBenefits.psd1 +++ b/src/BillingBenefits/BillingBenefits/Az.BillingBenefits.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 1/9/2025 +# Generated on: 2025-04-17 # @{ @@ -12,13 +12,13 @@ # RootModule = '' # Version number of this module. -ModuleVersion = '0.1.2' +ModuleVersion = '0.1.0' # Supported PSEditions CompatiblePSEditions = 'Core', 'Desktop' # ID used to uniquely identify this module -GUID = '7c220d70-27ec-4403-aedd-429aa925a6a6' +GUID = 'accceef6-8113-453a-a31c-4f2ce57893d6' # Author of this module Author = 'Microsoft Corporation' @@ -30,7 +30,7 @@ CompanyName = 'Microsoft Corporation' Copyright = 'Microsoft Corporation. All rights reserved.' # Description of the functionality provided by this module -Description = 'Microsoft Azure PowerShell: BillingBenefits cmdlets' +Description = 'Microsoft Azure PowerShell: {ModuleNamePlaceHolder} cmdlets' # Minimum version of the PowerShell engine required by this module PowerShellVersion = '5.1' @@ -51,19 +51,19 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '4.0.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '4.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'BillingBenefits.Autorest/bin/Az.BillingBenefits.private.dll' # Script files (.ps1) that are run in the caller's environment prior to importing this module. -# ScriptsToProcess = @() +ScriptsToProcess = @() # Type files (.ps1xml) to be loaded when importing this module -# TypesToProcess = @() +TypesToProcess = @() # Format files (.ps1xml) to be loaded when importing this module -FormatsToProcess = 'BillingBenefits.Autorest\Az.BillingBenefits.format.ps1xml' +FormatsToProcess = 'BillingBenefits.Autorest/Az.BillingBenefits.format.ps1xml' # Modules to import as nested modules of the module specified in RootModule/ModuleToProcess NestedModules = @('BillingBenefits.Autorest/Az.BillingBenefits.psm1') @@ -79,7 +79,8 @@ FunctionsToExport = 'Get-AzBillingBenefitsReservationOrderAlias', 'Invoke-AzBillingBenefitsSavingsPlanUpdateValidation', 'New-AzBillingBenefitsReservationOrderAlias', 'New-AzBillingBenefitsSavingsPlanOrderAlias', - 'Update-AzBillingBenefitsSavingsPlan' + 'Update-AzBillingBenefitsSavingsPlan', + 'Update-AzBillingBenefitsSavingsPlanOrderAlias' # Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. CmdletsToExport = @() @@ -105,7 +106,7 @@ PrivateData = @{ PSData = @{ # Tags applied to this module. These help with module discovery in online galleries. - Tags = 'Azure','ResourceManager','ARM','PSModule','BillingBenefits' + Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', '{ModuleNamePlaceHolder}' # A URL to the license for this module. LicenseUri = 'https://aka.ms/azps-license' @@ -117,7 +118,7 @@ PrivateData = @{ # IconUri = '' # ReleaseNotes of this module - ReleaseNotes = '* Upgraded nuget package to signed package.' + # ReleaseNotes = '' # Prerelease string of this module # Prerelease = '' @@ -130,7 +131,7 @@ PrivateData = @{ } # End of PSData hashtable - } # End of PrivateData hashtable +} # End of PrivateData hashtable # HelpInfo URI of this module # HelpInfoURI = '' diff --git a/src/BillingBenefits/BillingBenefits/ChangeLog.md b/src/BillingBenefits/BillingBenefits/ChangeLog.md index 90221328282b..c58df73f3905 100644 --- a/src/BillingBenefits/BillingBenefits/ChangeLog.md +++ b/src/BillingBenefits/BillingBenefits/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Introduced various new features by upgrading code generator. Please see detail [here](https://github.com/Azure/azure-powershell/blob/main/documentation/Autorest-powershell-v4-new-features.md). ## Version 0.1.2 * Upgraded nuget package to signed package. diff --git a/src/BillingBenefits/BillingBenefits/help/Az.BillingBenefits.md b/src/BillingBenefits/BillingBenefits/help/Az.BillingBenefits.md index 43bf74d8d34a..9a3a45ae5cab 100644 --- a/src/BillingBenefits/BillingBenefits/help/Az.BillingBenefits.md +++ b/src/BillingBenefits/BillingBenefits/help/Az.BillingBenefits.md @@ -36,12 +36,16 @@ Validate savings plan purchase. Validate savings plan patch. ### [New-AzBillingBenefitsReservationOrderAlias](New-AzBillingBenefitsReservationOrderAlias.md) -Create a reservation order alias. +create a reservation order alias. ### [New-AzBillingBenefitsSavingsPlanOrderAlias](New-AzBillingBenefitsSavingsPlanOrderAlias.md) -Create a savings plan. +create a savings plan. Learn more about permissions needed at https://go.microsoft.com/fwlink/?linkid=2215851 ### [Update-AzBillingBenefitsSavingsPlan](Update-AzBillingBenefitsSavingsPlan.md) -Update savings plan. +update savings plan. + +### [Update-AzBillingBenefitsSavingsPlanOrderAlias](Update-AzBillingBenefitsSavingsPlanOrderAlias.md) +update a savings plan. +Learn more about permissions needed at https://go.microsoft.com/fwlink/?linkid=2215851 diff --git a/src/BillingBenefits/BillingBenefits/help/Get-AzBillingBenefitsReservationOrderAlias.md b/src/BillingBenefits/BillingBenefits/help/Get-AzBillingBenefitsReservationOrderAlias.md index 6e9cfe95f063..798be69f4904 100644 --- a/src/BillingBenefits/BillingBenefits/help/Get-AzBillingBenefitsReservationOrderAlias.md +++ b/src/BillingBenefits/BillingBenefits/help/Get-AzBillingBenefitsReservationOrderAlias.md @@ -79,7 +79,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IBillingBenefitsIdentity @@ -117,7 +116,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IReservationOrderAliasResponse +### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IReservationOrderAliasResponse ## NOTES diff --git a/src/BillingBenefits/BillingBenefits/help/Get-AzBillingBenefitsSavingsPlan.md b/src/BillingBenefits/BillingBenefits/help/Get-AzBillingBenefitsSavingsPlan.md index 5819c136cc34..0a5e4cef9066 100644 --- a/src/BillingBenefits/BillingBenefits/help/Get-AzBillingBenefitsSavingsPlan.md +++ b/src/BillingBenefits/BillingBenefits/help/Get-AzBillingBenefitsSavingsPlan.md @@ -18,6 +18,12 @@ Get-AzBillingBenefitsSavingsPlan -OrderId [-DefaultProfile ] [] ``` +### GetViaIdentitySavingsPlanOrder +``` +Get-AzBillingBenefitsSavingsPlan -Id -SavingsPlanOrderInputObject + [-Expand ] [-DefaultProfile ] [] +``` + ### Get ``` Get-AzBillingBenefitsSavingsPlan -Id -OrderId [-Expand ] [-DefaultProfile ] @@ -84,7 +90,7 @@ May be used to expand the detail information of some properties. ```yaml Type: System.String -Parameter Sets: Get, GetViaIdentity +Parameter Sets: GetViaIdentitySavingsPlanOrder, Get, GetViaIdentity Aliases: Required: False @@ -99,7 +105,7 @@ ID of the savings plan ```yaml Type: System.String -Parameter Sets: Get +Parameter Sets: GetViaIdentitySavingsPlanOrder, Get Aliases: SavingsPlanId Required: True @@ -111,7 +117,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IBillingBenefitsIdentity @@ -140,6 +145,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -SavingsPlanOrderInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IBillingBenefitsIdentity +Parameter Sets: GetViaIdentitySavingsPlanOrder +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). @@ -149,7 +169,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModel +### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.ISavingsPlanModel ## NOTES diff --git a/src/BillingBenefits/BillingBenefits/help/Get-AzBillingBenefitsSavingsPlanList.md b/src/BillingBenefits/BillingBenefits/help/Get-AzBillingBenefitsSavingsPlanList.md index 6afd9a889eeb..3452ae042cac 100644 --- a/src/BillingBenefits/BillingBenefits/help/Get-AzBillingBenefitsSavingsPlanList.md +++ b/src/BillingBenefits/BillingBenefits/help/Get-AzBillingBenefitsSavingsPlanList.md @@ -176,7 +176,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModel +### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.ISavingsPlanModel ## NOTES diff --git a/src/BillingBenefits/BillingBenefits/help/Get-AzBillingBenefitsSavingsPlanOrder.md b/src/BillingBenefits/BillingBenefits/help/Get-AzBillingBenefitsSavingsPlanOrder.md index f0df602224e5..082431a963ae 100644 --- a/src/BillingBenefits/BillingBenefits/help/Get-AzBillingBenefitsSavingsPlanOrder.md +++ b/src/BillingBenefits/BillingBenefits/help/Get-AzBillingBenefitsSavingsPlanOrder.md @@ -114,7 +114,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IBillingBenefitsIdentity @@ -137,7 +136,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanOrderModel +### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.ISavingsPlanOrderModel ## NOTES diff --git a/src/BillingBenefits/BillingBenefits/help/Get-AzBillingBenefitsSavingsPlanOrderAlias.md b/src/BillingBenefits/BillingBenefits/help/Get-AzBillingBenefitsSavingsPlanOrderAlias.md index 2624ddfd7c40..378cc9f552fc 100644 --- a/src/BillingBenefits/BillingBenefits/help/Get-AzBillingBenefitsSavingsPlanOrderAlias.md +++ b/src/BillingBenefits/BillingBenefits/help/Get-AzBillingBenefitsSavingsPlanOrderAlias.md @@ -79,7 +79,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IBillingBenefitsIdentity @@ -117,7 +116,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanOrderAliasModel +### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.ISavingsPlanOrderAliasModel ## NOTES diff --git a/src/BillingBenefits/BillingBenefits/help/Invoke-AzBillingBenefitsElevateSavingPlanOrder.md b/src/BillingBenefits/BillingBenefits/help/Invoke-AzBillingBenefitsElevateSavingPlanOrder.md index 4a47f57e1300..764704ce8942 100644 --- a/src/BillingBenefits/BillingBenefits/help/Invoke-AzBillingBenefitsElevateSavingPlanOrder.md +++ b/src/BillingBenefits/BillingBenefits/help/Invoke-AzBillingBenefitsElevateSavingPlanOrder.md @@ -37,24 +37,23 @@ Invoke-AzBillingBenefitsElevateSavingPlanOrder -SavingsPlanOrderId "e0b1f446-568 ```output Name PrincipalId RoleDefinitionId Scope ---- ----------- ---------------- ----- -00001111-aaaa-2222-bbbb-3333cccc4444 067e7443-3a55-40b6-a2d8-0a7a12a9da2d /providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb635 /providers/Microsoft.BillingBenefits/savingsplanorders/e45905d2-9207-4f24-8549-f615c203b49b +5c545baf-2ef5-4016-9c31-6e0e23c397a0 067e7443-3a55-40b6-a2d8-0a7a12a9da2d /providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb635 /providers/Microsoft.BillingBenefits/savingsplanorders/e45905d2-9207-4f24-8549-f615c203b49b ``` Elevate savings plan order -### Example 2: Elevate savings plan order via identiy +### Example 2: Elevate savings plan order via identiy ```powershell -$identity = @{ - SavingsPlanOrderId = "e45905d2-9207-4f24-8549-f615c203b49b" -} - +$identity = @{ + SavingsPlanOrderId = "e45905d2-9207-4f24-8549-f615c203b49b" +} $response = Invoke-AzBillingBenefitsElevateSavingPlanOrder -InputObject $identity ``` ```output -Name PrincipalId RoleDefinitionId Scope ----- ----------- ---------------- ----- -00001111-aaaa-2222-bbbb-3333cccc4444 067e7443-3a55-40b6-a2d8-0a7a12a9da2d /providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb635 /providers/Microsoft.BillingBenefits/savingsplanorders/e45905d2-9207-4f24-8549-f615c203b49b +Name PrincipalId RoleDefinitionId Scope +---- ----------- ---------------- ----- +5c545baf-2ef5-4016-9c31-6e0e23c397a0 067e7443-3a55-40b6-a2d8-0a7a12a9da2d /providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb635 /providers/Microsoft.BillingBenefits/savingsplanorders/e45905d2-9207-4f24-8549-f615c203b49b ``` Elevate savings plan order @@ -79,7 +78,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IBillingBenefitsIdentity @@ -148,7 +146,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRoleAssignmentEntity +### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IRoleAssignmentEntity ## NOTES diff --git a/src/BillingBenefits/BillingBenefits/help/Invoke-AzBillingBenefitsSavingsPlanPurchaseValidation.md b/src/BillingBenefits/BillingBenefits/help/Invoke-AzBillingBenefitsSavingsPlanPurchaseValidation.md index 1a2a58fd8505..3393c3f2e028 100644 --- a/src/BillingBenefits/BillingBenefits/help/Invoke-AzBillingBenefitsSavingsPlanPurchaseValidation.md +++ b/src/BillingBenefits/BillingBenefits/help/Invoke-AzBillingBenefitsSavingsPlanPurchaseValidation.md @@ -18,10 +18,16 @@ Invoke-AzBillingBenefitsSavingsPlanPurchaseValidation [-Benefit ] [-WhatIf] [-Confirm] [] ``` -### Validate +### ValidateViaJsonFilePath ``` -Invoke-AzBillingBenefitsSavingsPlanPurchaseValidation -Body - [-DefaultProfile ] [-WhatIf] [-Confirm] [] +Invoke-AzBillingBenefitsSavingsPlanPurchaseValidation -JsonFilePath [-DefaultProfile ] + [-WhatIf] [-Confirm] [] +``` + +### ValidateViaJsonString +``` +Invoke-AzBillingBenefitsSavingsPlanPurchaseValidation -JsonString [-DefaultProfile ] + [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -55,27 +61,13 @@ True Validate savings plan purchase(expended). -### Example 2: Validate savings plan purchase. -```powershell -Invoke-AzBillingBenefitsSavingsPlanPurchaseValidation -Body $body -``` - -```output -Valid ReasonCode Reason ------ ---------- ------ -True -``` - -Validate savings plan purchase. - ## PARAMETERS ### -Benefit . -To construct, see NOTES section for BENEFIT properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanOrderAliasModel[] +Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.ISavingsPlanOrderAliasModel[] Parameter Sets: ValidateExpanded Aliases: @@ -86,32 +78,46 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Body -. -To construct, see NOTES section for BODY properties and create a hash table. +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanPurchaseValidateRequest -Parameter Sets: Validate +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonFilePath +Path of Json file supplied to the Validate operation + +```yaml +Type: System.String +Parameter Sets: ValidateViaJsonFilePath Aliases: Required: True Position: Named Default value: None -Accept pipeline input: True (ByValue) +Accept pipeline input: False Accept wildcard characters: False ``` -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. +### -JsonString +Json string supplied to the Validate operation ```yaml -Type: System.Management.Automation.PSObject -Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential +Type: System.String +Parameter Sets: ValidateViaJsonString +Aliases: -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False @@ -154,11 +160,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanPurchaseValidateRequest - ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanValidateResponse +### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.ISavingsPlanValidateResponse ## NOTES diff --git a/src/BillingBenefits/BillingBenefits/help/Invoke-AzBillingBenefitsSavingsPlanUpdateValidation.md b/src/BillingBenefits/BillingBenefits/help/Invoke-AzBillingBenefitsSavingsPlanUpdateValidation.md index cf350f3e5306..ba81d7842c0b 100644 --- a/src/BillingBenefits/BillingBenefits/help/Invoke-AzBillingBenefitsSavingsPlanUpdateValidation.md +++ b/src/BillingBenefits/BillingBenefits/help/Invoke-AzBillingBenefitsSavingsPlanUpdateValidation.md @@ -19,24 +19,31 @@ Invoke-AzBillingBenefitsSavingsPlanUpdateValidation -SavingsPlanId -Sav [-WhatIf] [-Confirm] [] ``` -### Validate +### ValidateViaJsonString ``` Invoke-AzBillingBenefitsSavingsPlanUpdateValidation -SavingsPlanId -SavingsPlanOrderId - -Body [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + -JsonString [-DefaultProfile ] [-WhatIf] [-Confirm] + [] ``` -### ValidateViaIdentityExpanded +### ValidateViaJsonFilePath ``` -Invoke-AzBillingBenefitsSavingsPlanUpdateValidation -InputObject - [-Benefit ] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] +Invoke-AzBillingBenefitsSavingsPlanUpdateValidation -SavingsPlanId -SavingsPlanOrderId + -JsonFilePath [-DefaultProfile ] [-WhatIf] [-Confirm] + [] +``` + +### ValidateViaIdentitySavingsPlanOrderExpanded +``` +Invoke-AzBillingBenefitsSavingsPlanUpdateValidation -SavingsPlanId + -SavingsPlanOrderInputObject [-Benefit ] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` -### ValidateViaIdentity +### ValidateViaIdentityExpanded ``` Invoke-AzBillingBenefitsSavingsPlanUpdateValidation -InputObject - -Body [-DefaultProfile ] + [-Benefit ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` @@ -69,11 +76,10 @@ Validate savings plan patch ### -Benefit . -To construct, see NOTES section for BENEFIT properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequestProperties[] -Parameter Sets: ValidateExpanded, ValidateViaIdentityExpanded +Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.ISavingsPlanUpdateRequestProperties[] +Parameter Sets: ValidateExpanded, ValidateViaIdentitySavingsPlanOrderExpanded, ValidateViaIdentityExpanded Aliases: Required: False @@ -83,22 +89,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Body -. -To construct, see NOTES section for BODY properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateValidateRequest -Parameter Sets: Validate, ValidateViaIdentity -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - ### -DefaultProfile The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. @@ -117,11 +107,10 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IBillingBenefitsIdentity -Parameter Sets: ValidateViaIdentityExpanded, ValidateViaIdentity +Parameter Sets: ValidateViaIdentityExpanded Aliases: Required: True @@ -131,12 +120,42 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Validate operation + +```yaml +Type: System.String +Parameter Sets: ValidateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Validate operation + +```yaml +Type: System.String +Parameter Sets: ValidateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SavingsPlanId ID of the savings plan ```yaml Type: System.String -Parameter Sets: ValidateExpanded, Validate +Parameter Sets: ValidateExpanded, ValidateViaJsonString, ValidateViaJsonFilePath, ValidateViaIdentitySavingsPlanOrderExpanded Aliases: Required: True @@ -151,7 +170,7 @@ Order ID of the savings plan ```yaml Type: System.String -Parameter Sets: ValidateExpanded, Validate +Parameter Sets: ValidateExpanded, ValidateViaJsonString, ValidateViaJsonFilePath Aliases: Required: True @@ -161,6 +180,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -SavingsPlanOrderInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IBillingBenefitsIdentity +Parameter Sets: ValidateViaIdentitySavingsPlanOrderExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -Confirm Prompts you for confirmation before running the cmdlet. @@ -197,13 +231,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateValidateRequest - ### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IBillingBenefitsIdentity ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanValidateResponse +### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.ISavingsPlanValidateResponse ## NOTES diff --git a/src/BillingBenefits/BillingBenefits/help/New-AzBillingBenefitsReservationOrderAlias.md b/src/BillingBenefits/BillingBenefits/help/New-AzBillingBenefitsReservationOrderAlias.md index 2541f1df40eb..5b370802d511 100644 --- a/src/BillingBenefits/BillingBenefits/help/New-AzBillingBenefitsReservationOrderAlias.md +++ b/src/BillingBenefits/BillingBenefits/help/New-AzBillingBenefitsReservationOrderAlias.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzBillingBenefitsReservationOrderAlias ## SYNOPSIS -Create a reservation order alias. +create a reservation order alias. ## SYNTAX @@ -17,43 +17,27 @@ Create a reservation order alias. New-AzBillingBenefitsReservationOrderAlias -Name [-AppliedScopePropertyDisplayName ] [-AppliedScopePropertyManagementGroupId ] [-AppliedScopePropertyResourceGroupId ] [-AppliedScopePropertySubscriptionId ] [-AppliedScopePropertyTenantId ] - [-AppliedScopeType ] [-BillingPlan ] [-BillingScopeId ] - [-DisplayName ] [-Location ] [-Quantity ] [-Renew] - [-ReservedResourcePropertyInstanceFlexibility ] - [-ReservedResourceType ] [-ReviewDateTime ] [-SkuName ] [-Term ] + [-AppliedScopeType ] [-BillingPlan ] [-BillingScopeId ] [-DisplayName ] + [-Location ] [-Quantity ] [-Renew] [-ReservedResourcePropertyInstanceFlexibility ] + [-ReservedResourceType ] [-ReviewDateTime ] [-SkuName ] [-Term ] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] ``` -### Create +### CreateViaJsonFilePath ``` -New-AzBillingBenefitsReservationOrderAlias -Name -Body - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] - [] +New-AzBillingBenefitsReservationOrderAlias -Name -JsonFilePath [-DefaultProfile ] + [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] ``` -### CreateViaIdentityExpanded +### CreateViaJsonString ``` -New-AzBillingBenefitsReservationOrderAlias -InputObject - [-AppliedScopePropertyDisplayName ] [-AppliedScopePropertyManagementGroupId ] - [-AppliedScopePropertyResourceGroupId ] [-AppliedScopePropertySubscriptionId ] - [-AppliedScopePropertyTenantId ] [-AppliedScopeType ] [-BillingPlan ] - [-BillingScopeId ] [-DisplayName ] [-Location ] [-Quantity ] [-Renew] - [-ReservedResourcePropertyInstanceFlexibility ] - [-ReservedResourceType ] [-ReviewDateTime ] [-SkuName ] [-Term ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] - [] -``` - -### CreateViaIdentity -``` -New-AzBillingBenefitsReservationOrderAlias -InputObject - -Body [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] +New-AzBillingBenefitsReservationOrderAlias -Name -JsonString [-DefaultProfile ] + [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -Create a reservation order alias. +create a reservation order alias. ## EXAMPLES @@ -77,7 +61,7 @@ Display name ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -92,7 +76,7 @@ Fully-qualified identifier of the management group where the benefit must be app ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -107,7 +91,7 @@ Fully-qualified identifier of the resource group. ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -122,7 +106,7 @@ Fully-qualified identifier of the subscription. ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -137,7 +121,7 @@ Tenant ID where the benefit is applied. ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -151,8 +135,8 @@ Accept wildcard characters: False Type of the Applied Scope. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -182,8 +166,8 @@ Represents the billing plan in ISO 8601 format. Required only for monthly billing plans. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -198,7 +182,7 @@ Subscription that will be charged for purchasing the benefit ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -208,22 +192,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Body -Reservation order alias -To construct, see NOTES section for BODY properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IReservationOrderAliasRequest -Parameter Sets: Create, CreateViaIdentity -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - ### -DefaultProfile The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. @@ -245,7 +213,7 @@ Display name ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -255,19 +223,33 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -InputObject -Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. +### -JsonFilePath +Path of Json file supplied to the Create operation ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IBillingBenefitsIdentity -Parameter Sets: CreateViaIdentityExpanded, CreateViaIdentity +Type: System.String +Parameter Sets: CreateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonString Aliases: Required: True Position: Named Default value: None -Accept pipeline input: True (ByValue) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -276,7 +258,7 @@ The Azure Region where the reservation benefits are applied to. ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -291,7 +273,7 @@ Name of the reservation order alias ```yaml Type: System.String -Parameter Sets: CreateExpanded, Create +Parameter Sets: (All) Aliases: ReservationOrderAliasName Required: True @@ -321,7 +303,7 @@ Total Quantity of the SKUs purchased in the Reservation. ```yaml Type: System.Int32 -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -336,7 +318,7 @@ Setting this to true will automatically purchase a new benefit on the expiration ```yaml Type: System.Management.Automation.SwitchParameter -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -350,8 +332,8 @@ Accept wildcard characters: False Turning this on will apply the reservation discount to other VMs in the same VM size group. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.InstanceFlexibility -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -365,8 +347,8 @@ Accept wildcard characters: False The type of the resource that is being reserved. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.ReservedResourceType -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -381,7 +363,7 @@ This is the date-time when the Azure Hybrid Benefit needs to be reviewed. ```yaml Type: System.DateTime -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -396,7 +378,7 @@ Name of the SKU to be applied ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -410,8 +392,8 @@ Accept wildcard characters: False Represent benefit term in ISO 8601 format. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -457,13 +439,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IReservationOrderAliasRequest - -### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IBillingBenefitsIdentity - ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IReservationOrderAliasResponse +### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IReservationOrderAliasResponse ## NOTES diff --git a/src/BillingBenefits/BillingBenefits/help/New-AzBillingBenefitsSavingsPlanOrderAlias.md b/src/BillingBenefits/BillingBenefits/help/New-AzBillingBenefitsSavingsPlanOrderAlias.md index 82c6ef89a811..f5da0130f8b8 100644 --- a/src/BillingBenefits/BillingBenefits/help/New-AzBillingBenefitsSavingsPlanOrderAlias.md +++ b/src/BillingBenefits/BillingBenefits/help/New-AzBillingBenefitsSavingsPlanOrderAlias.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzBillingBenefitsSavingsPlanOrderAlias ## SYNOPSIS -Create a savings plan. +create a savings plan. Learn more about permissions needed at https://go.microsoft.com/fwlink/?linkid=2215851 ## SYNTAX @@ -18,40 +18,26 @@ Learn more about permissions needed at https://go.microsoft.com/fwlink/?linkid=2 New-AzBillingBenefitsSavingsPlanOrderAlias -Name [-AppliedScopePropertyDisplayName ] [-AppliedScopePropertyManagementGroupId ] [-AppliedScopePropertyResourceGroupId ] [-AppliedScopePropertySubscriptionId ] [-AppliedScopePropertyTenantId ] - [-AppliedScopeType ] [-BillingPlan ] [-BillingScopeId ] - [-CommitmentAmount ] [-CommitmentCurrencyCode ] [-CommitmentGrain ] - [-DisplayName ] [-Kind ] [-SkuName ] [-Term ] [-DefaultProfile ] - [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] -``` - -### Create -``` -New-AzBillingBenefitsSavingsPlanOrderAlias -Name -Body - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] - [] + [-AppliedScopeType ] [-BillingPlan ] [-BillingScopeId ] [-CommitmentAmount ] + [-CommitmentCurrencyCode ] [-CommitmentGrain ] [-DisplayName ] [-Kind ] + [-SkuName ] [-Term ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] ``` -### CreateViaIdentityExpanded +### CreateViaJsonFilePath ``` -New-AzBillingBenefitsSavingsPlanOrderAlias -InputObject - [-AppliedScopePropertyDisplayName ] [-AppliedScopePropertyManagementGroupId ] - [-AppliedScopePropertyResourceGroupId ] [-AppliedScopePropertySubscriptionId ] - [-AppliedScopePropertyTenantId ] [-AppliedScopeType ] [-BillingPlan ] - [-BillingScopeId ] [-CommitmentAmount ] [-CommitmentCurrencyCode ] - [-CommitmentGrain ] [-DisplayName ] [-Kind ] [-SkuName ] - [-Term ] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] - [-Confirm] [] +New-AzBillingBenefitsSavingsPlanOrderAlias -Name -JsonFilePath [-DefaultProfile ] + [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] ``` -### CreateViaIdentity +### CreateViaJsonString ``` -New-AzBillingBenefitsSavingsPlanOrderAlias -InputObject - -Body [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] +New-AzBillingBenefitsSavingsPlanOrderAlias -Name -JsonString [-DefaultProfile ] + [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -Create a savings plan. +create a savings plan. Learn more about permissions needed at https://go.microsoft.com/fwlink/?linkid=2215851 ## EXAMPLES @@ -77,7 +63,7 @@ Display name ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -92,7 +78,7 @@ Fully-qualified identifier of the management group where the benefit must be app ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -107,7 +93,7 @@ Fully-qualified identifier of the resource group. ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -122,7 +108,7 @@ Fully-qualified identifier of the subscription. ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -137,7 +123,7 @@ Tenant ID where the benefit is applied. ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -151,8 +137,8 @@ Accept wildcard characters: False Type of the Applied Scope. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -182,8 +168,8 @@ Represents the billing plan in ISO 8601 format. Required only for monthly billing plans. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.BillingPlan -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -198,7 +184,7 @@ Subscription that will be charged for purchasing the benefit ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -208,28 +194,12 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Body -Savings plan order alias -To construct, see NOTES section for BODY properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanOrderAliasModel -Parameter Sets: Create, CreateViaIdentity -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - ### -CommitmentAmount . ```yaml Type: System.Double -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -244,7 +214,7 @@ The ISO 4217 3-letter currency code for the currency used by this purchase recor ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -258,8 +228,8 @@ Accept wildcard characters: False Commitment grain. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.CommitmentGrain -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -290,7 +260,7 @@ Display name ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -300,19 +270,33 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -InputObject -Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. +### -JsonFilePath +Path of Json file supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Create operation ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IBillingBenefitsIdentity -Parameter Sets: CreateViaIdentityExpanded, CreateViaIdentity +Type: System.String +Parameter Sets: CreateViaJsonString Aliases: Required: True Position: Named Default value: None -Accept pipeline input: True (ByValue) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -321,7 +305,7 @@ Resource provider kind ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -336,7 +320,7 @@ Name of the savings plan order alias ```yaml Type: System.String -Parameter Sets: CreateExpanded, Create +Parameter Sets: (All) Aliases: SavingsPlanOrderAliasName Required: True @@ -366,7 +350,7 @@ Name of the SKU to be applied ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -380,8 +364,8 @@ Accept wildcard characters: False Represent benefit term in ISO 8601 format. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.Term -Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -427,14 +411,12 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanOrderAliasModel - -### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IBillingBenefitsIdentity - ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanOrderAliasModel +### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.ISavingsPlanOrderAliasModel ## NOTES ## RELATED LINKS + +[https://go.microsoft.com/fwlink/?linkid=2215851/](https://go.microsoft.com/fwlink/?linkid=2215851/) diff --git a/src/BillingBenefits/BillingBenefits/help/Update-AzBillingBenefitsSavingsPlan.md b/src/BillingBenefits/BillingBenefits/help/Update-AzBillingBenefitsSavingsPlan.md index 9536e4b509a5..91bb68b52a7d 100644 --- a/src/BillingBenefits/BillingBenefits/help/Update-AzBillingBenefitsSavingsPlan.md +++ b/src/BillingBenefits/BillingBenefits/help/Update-AzBillingBenefitsSavingsPlan.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzBillingBenefitsSavingsPlan ## SYNOPSIS -Update savings plan. +update savings plan. ## SYNTAX @@ -17,37 +17,47 @@ Update savings plan. Update-AzBillingBenefitsSavingsPlan -Id -OrderId [-AppliedScopePropertyDisplayName ] [-AppliedScopePropertyManagementGroupId ] [-AppliedScopePropertyResourceGroupId ] [-AppliedScopePropertySubscriptionId ] [-AppliedScopePropertyTenantId ] - [-AppliedScopeType ] [-DisplayName ] [-Renew] [-RenewProperty ] + [-AppliedScopeType ] [-DisplayName ] [-Renew] [-RenewProperty ] [-DefaultProfile ] [-PassThru] [-WhatIf] [-Confirm] [] ``` -### Update +### UpdateViaJsonString ``` -Update-AzBillingBenefitsSavingsPlan -Id -OrderId -Body +Update-AzBillingBenefitsSavingsPlan -Id -OrderId -JsonString [-DefaultProfile ] [-PassThru] [-WhatIf] [-Confirm] [] ``` -### UpdateViaIdentityExpanded +### UpdateViaJsonFilePath ``` -Update-AzBillingBenefitsSavingsPlan -InputObject +Update-AzBillingBenefitsSavingsPlan -Id -OrderId -JsonFilePath + [-DefaultProfile ] [-PassThru] [-WhatIf] [-Confirm] + [] +``` + +### UpdateViaIdentitySavingsPlanOrderExpanded +``` +Update-AzBillingBenefitsSavingsPlan -Id -SavingsPlanOrderInputObject [-AppliedScopePropertyDisplayName ] [-AppliedScopePropertyManagementGroupId ] [-AppliedScopePropertyResourceGroupId ] [-AppliedScopePropertySubscriptionId ] - [-AppliedScopePropertyTenantId ] [-AppliedScopeType ] [-DisplayName ] - [-Renew] [-RenewProperty ] [-DefaultProfile ] [-PassThru] + [-AppliedScopePropertyTenantId ] [-AppliedScopeType ] [-DisplayName ] [-Renew] + [-RenewProperty ] [-DefaultProfile ] [-PassThru] [-WhatIf] [-Confirm] [] ``` -### UpdateViaIdentity +### UpdateViaIdentityExpanded ``` -Update-AzBillingBenefitsSavingsPlan -InputObject -Body - [-DefaultProfile ] [-PassThru] [-WhatIf] [-Confirm] - [] +Update-AzBillingBenefitsSavingsPlan -InputObject + [-AppliedScopePropertyDisplayName ] [-AppliedScopePropertyManagementGroupId ] + [-AppliedScopePropertyResourceGroupId ] [-AppliedScopePropertySubscriptionId ] + [-AppliedScopePropertyTenantId ] [-AppliedScopeType ] [-DisplayName ] [-Renew] + [-RenewProperty ] [-DefaultProfile ] [-PassThru] + [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -Update savings plan. +update savings plan. ## EXAMPLES @@ -71,7 +81,7 @@ Display name ```yaml Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: UpdateExpanded, UpdateViaIdentitySavingsPlanOrderExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -86,7 +96,7 @@ Fully-qualified identifier of the management group where the benefit must be app ```yaml Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: UpdateExpanded, UpdateViaIdentitySavingsPlanOrderExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -101,7 +111,7 @@ Fully-qualified identifier of the resource group. ```yaml Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: UpdateExpanded, UpdateViaIdentitySavingsPlanOrderExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -116,7 +126,7 @@ Fully-qualified identifier of the subscription. ```yaml Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: UpdateExpanded, UpdateViaIdentitySavingsPlanOrderExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -131,7 +141,7 @@ Tenant ID where the benefit is applied. ```yaml Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: UpdateExpanded, UpdateViaIdentitySavingsPlanOrderExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -145,8 +155,8 @@ Accept wildcard characters: False Type of the Applied Scope. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Support.AppliedScopeType -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentitySavingsPlanOrderExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -156,22 +166,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Body -Savings plan patch request -To construct, see NOTES section for BODY properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequest -Parameter Sets: Update, UpdateViaIdentity -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - ### -DefaultProfile The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. @@ -193,7 +187,7 @@ Display name ```yaml Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: UpdateExpanded, UpdateViaIdentitySavingsPlanOrderExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -208,7 +202,7 @@ ID of the savings plan ```yaml Type: System.String -Parameter Sets: UpdateExpanded, Update +Parameter Sets: UpdateExpanded, UpdateViaJsonString, UpdateViaJsonFilePath, UpdateViaIdentitySavingsPlanOrderExpanded Aliases: SavingsPlanId Required: True @@ -220,11 +214,10 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IBillingBenefitsIdentity -Parameter Sets: UpdateViaIdentityExpanded, UpdateViaIdentity +Parameter Sets: UpdateViaIdentityExpanded Aliases: Required: True @@ -234,12 +227,42 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Update operation + +```yaml +Type: System.String +Parameter Sets: UpdateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Update operation + +```yaml +Type: System.String +Parameter Sets: UpdateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -OrderId Order ID of the savings plan ```yaml Type: System.String -Parameter Sets: UpdateExpanded, Update +Parameter Sets: UpdateExpanded, UpdateViaJsonString, UpdateViaJsonFilePath Aliases: SavingsPlanOrderId Required: True @@ -269,7 +292,7 @@ Setting this to true will automatically purchase a new benefit on the expiration ```yaml Type: System.Management.Automation.SwitchParameter -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Parameter Sets: UpdateExpanded, UpdateViaIdentitySavingsPlanOrderExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -281,11 +304,10 @@ Accept wildcard characters: False ### -RenewProperty . -To construct, see NOTES section for RENEWPROPERTY properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRenewProperties -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IRenewProperties +Parameter Sets: UpdateExpanded, UpdateViaIdentitySavingsPlanOrderExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -295,6 +317,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -SavingsPlanOrderInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IBillingBenefitsIdentity +Parameter Sets: UpdateViaIdentitySavingsPlanOrderExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -Confirm Prompts you for confirmation before running the cmdlet. @@ -331,13 +368,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanUpdateRequest - ### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IBillingBenefitsIdentity ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModel +### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.ISavingsPlanModel ## NOTES diff --git a/src/BillingBenefits/BillingBenefits/help/Update-AzBillingBenefitsSavingsPlanOrderAlias.md b/src/BillingBenefits/BillingBenefits/help/Update-AzBillingBenefitsSavingsPlanOrderAlias.md new file mode 100644 index 000000000000..79cd68d41125 --- /dev/null +++ b/src/BillingBenefits/BillingBenefits/help/Update-AzBillingBenefitsSavingsPlanOrderAlias.md @@ -0,0 +1,410 @@ +--- +external help file: Az.BillingBenefits-help.xml +Module Name: Az.BillingBenefits +online version: https://learn.microsoft.com/powershell/module/az.billingbenefits/update-azbillingbenefitssavingsplanorderalias +schema: 2.0.0 +--- + +# Update-AzBillingBenefitsSavingsPlanOrderAlias + +## SYNOPSIS +update a savings plan. +Learn more about permissions needed at https://go.microsoft.com/fwlink/?linkid=2215851 + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzBillingBenefitsSavingsPlanOrderAlias -Name [-AppliedScopePropertyDisplayName ] + [-AppliedScopePropertyManagementGroupId ] [-AppliedScopePropertyResourceGroupId ] + [-AppliedScopePropertySubscriptionId ] [-AppliedScopePropertyTenantId ] + [-AppliedScopeType ] [-BillingPlan ] [-BillingScopeId ] [-CommitmentAmount ] + [-CommitmentCurrencyCode ] [-CommitmentGrain ] [-DisplayName ] [-Kind ] + [-SkuName ] [-Term ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzBillingBenefitsSavingsPlanOrderAlias -InputObject + [-AppliedScopePropertyDisplayName ] [-AppliedScopePropertyManagementGroupId ] + [-AppliedScopePropertyResourceGroupId ] [-AppliedScopePropertySubscriptionId ] + [-AppliedScopePropertyTenantId ] [-AppliedScopeType ] [-BillingPlan ] + [-BillingScopeId ] [-CommitmentAmount ] [-CommitmentCurrencyCode ] + [-CommitmentGrain ] [-DisplayName ] [-Kind ] [-SkuName ] [-Term ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [] +``` + +## DESCRIPTION +update a savings plan. +Learn more about permissions needed at https://go.microsoft.com/fwlink/?linkid=2215851 + +## EXAMPLES + +### Example 1: Update a savings plan. +```powershell +Update-AzBillingBenefitsSavingsPlanOrderAlias -Name "PSTest1" -AppliedScopeType "Shared" -BillingPlan "P1M" ` +-BillingScopeId "/subscriptions/eef82110-c91b-4395-9420-fcfcbefc5a47" -CommitmentAmount 0.001 -CommitmentCurrencyCode "USD" -CommitmentGrain "Hourly" -SkuName "Compute_Savings_Plan" -DisplayName "PSTest199" -Term "P3Y" +``` + +```output +Name DisplayName SkuName CommitmentAmount CommitmentCurrencyCode CommitmentGrain SavingsPlanOrderId ProvisioningState BillingScopeId +---- ----------- ------- ---------------- ---------------------- --------------- ------------------ ----------------- -------------- +PSTest1 PSTest1 Compute_Savings_Plan 0.001 USD Hourly /providers/Microsoft.BillingBenefits/savingsPlanOrders/955e24a7-6672-4038-9961-619a75c2acf4 Created /subscriptions/eef82110-c91b-4395-9420… +``` + +update a savings plan. +Learn more about permissions needed at https://go.microsoft.com/fwlink/?linkid=2215851 + +## PARAMETERS + +### -AppliedScopePropertyDisplayName +Display name + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AppliedScopePropertyManagementGroupId +Fully-qualified identifier of the management group where the benefit must be applied. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AppliedScopePropertyResourceGroupId +Fully-qualified identifier of the resource group. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AppliedScopePropertySubscriptionId +Fully-qualified identifier of the subscription. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AppliedScopePropertyTenantId +Tenant ID where the benefit is applied. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AppliedScopeType +Type of the Applied Scope. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -BillingPlan +Represents the billing plan in ISO 8601 format. +Required only for monthly billing plans. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -BillingScopeId +Subscription that will be charged for purchasing the benefit + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CommitmentAmount +. + +```yaml +Type: System.Double +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CommitmentCurrencyCode +The ISO 4217 3-letter currency code for the currency used by this purchase record. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CommitmentGrain +Commitment grain. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DisplayName +Display name + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IBillingBenefitsIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Kind +Resource provider kind + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +Name of the savings plan order alias + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: SavingsPlanOrderAliasName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SkuName +Name of the SKU to be applied + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Term +Represent benefit term in ISO 8601 format. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IBillingBenefitsIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.ISavingsPlanOrderAliasModel + +## NOTES + +## RELATED LINKS + +[https://go.microsoft.com/fwlink/?linkid=2215851/](https://go.microsoft.com/fwlink/?linkid=2215851/)