Skip to content

Commit 2fda630

Browse files
authored
[BillingBenefits] Updating some commands (#20691)
1 parent 88e2719 commit 2fda630

13 files changed

+234
-333
lines changed

src/BillingBenefits/README.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ resourcegroup-append: true
6060
nested-object-to-string: true
6161

6262
directive:
63+
### No inline
64+
- no-inline:
65+
- RenewProperties
66+
6367
### Rename Cmdlet names
6468
- where:
6569
verb: Get
@@ -96,20 +100,18 @@ directive:
96100
- PurchaseDateTime
97101
- Term
98102
- UserFriendlyAppliedScopeType
99-
- AppliedScopePropertiesDisplayName
100-
- SkuName1
101-
- Amount
102-
- CurrencyCode
103+
- AppliedScopePropertyDisplayName
104+
- SkuName
105+
- CommitmentAmount
106+
- CommitmentCurrencyCode
103107
labels:
104108
DisplayName: Name
105109
DisplayProvisioningState: Status
106110
ExpiryDateTime: ExpiryDate
107111
PurchaseDateTime: PurchaseDate
108112
UserFriendlyAppliedScopeType: Scope
109-
SkuName1: ProductName
110-
Amount: CommitmentAmount
111-
CurrencyCode: CommitmentCurrency
112-
AppliedScopePropertiesDisplayName: AppliedScopeDisplayName
113+
SkuName: ProductName
114+
AppliedScopePropertyDisplayName: AppliedScopeDisplayName
113115
- where:
114116
model-name: SavingsPlanOrderModel
115117
set:

src/BillingBenefits/docs/Get-AzBillingBenefitsSavingsPlan.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Get-AzBillingBenefitsSavingsPlan -OrderId d7ea1620-2bba-46e2-8434-11f31bfb984d
4040
```
4141

4242
```output
43-
Name Status ExpiryDate PurchaseDate Term Scope AppliedScopeDisplayName ProductName CommitmentAmount CommitmentCurrency
43+
Name Status ExpiryDate PurchaseDate Term Scope AppliedScopeDisplayName ProductName CommitmentAmount CommitmentCurrencyCode
4444
---- ------ ---------- ------------ ---- ----- ----------------------- ----------- ---------------- ------------------
4545
PSTest7 Succeeded 11/29/2025 2:23:51 AM 11/29/2022 2:20:38 AM P3Y Shared Compute_Savings_Plan 0.001 USD
4646
```
@@ -53,7 +53,7 @@ Get-AzBillingBenefitsSavingsPlan -OrderId d7ea1620-2bba-46e2-8434-11f31bfb984d -
5353
```
5454

5555
```output
56-
Name Status ExpiryDate PurchaseDate Term Scope AppliedScopeDisplayName ProductName CommitmentAmount CommitmentCurrency
56+
Name Status ExpiryDate PurchaseDate Term Scope AppliedScopeDisplayName ProductName CommitmentAmount CommitmentCurrencyCode
5757
---- ------ ---------- ------------ ---- ----- ----------------------- ----------- ---------------- ------------------
5858
PSTest7 Succeeded 11/29/2025 2:23:51 AM 11/29/2022 2:20:38 AM P3Y Shared Compute_Savings_Plan 0.001 USD
5959
```

src/BillingBenefits/docs/Get-AzBillingBenefitsSavingsPlanList.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Get-AzBillingBenefitsSavingsPlanList
2929
```
3030

3131
```output
32-
Name Status ExpiryDate PurchaseDate Term Scope AppliedScopeDisplayName ProductName CommitmentAmount CommitmentCurrency
32+
Name Status ExpiryDate PurchaseDate Term Scope AppliedScopeDisplayName ProductName CommitmentAmount CommitmentCurrencyCode
3333
---- ------ ---------- ------------ ---- ----- ----------------------- ----------- ---------------- ------------------
3434
Compute_SavingsPlan_11-30-2022_15-19 Succeeded 11/30/2023 11:22:53 PM 11/30/2022 11:19:31 PM P1Y Shared Compute_Savings_Plan 0.001 USD
3535
PSTesth1234 Succeeded 11/30/2025 12:36:25 AM 11/30/2022 12:34:31 AM P3Y Shared Compute_Savings_Plan 0.001 USD
@@ -47,7 +47,7 @@ Get-AzBillingBenefitsSavingsPlanList -Filter "properties/userFriendlyAppliedScop
4747
```
4848

4949
```output
50-
Name Status ExpiryDate PurchaseDate Term Scope AppliedScopeDisplayName ProductName CommitmentAmount CommitmentCurrency
50+
Name Status ExpiryDate PurchaseDate Term Scope AppliedScopeDisplayName ProductName CommitmentAmount CommitmentCurrencyCode
5151
---- ------ ---------- ------------ ---- ----- ----------------------- ----------- ---------------- ------------------
5252
Compute_SavingsPlan_11-30-2022_15-19 Succeeded 11/30/2023 11:22:53 PM 11/30/2022 11:19:31 PM P1Y Shared Compute_Savings_Plan 0.001 USD
5353
PSTesth1234 Succeeded 11/30/2025 12:36:25 AM 11/30/2022 12:34:31 AM P3Y Shared Compute_Savings_Plan 0.001 USD

src/BillingBenefits/docs/Invoke-AzBillingBenefitsSavingsPlanUpdateValidation.md

Lines changed: 44 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -214,55 +214,59 @@ To create the parameters described below, construct a hash table containing the
214214
215215
216216
`BENEFIT <ISavingsPlanUpdateRequestProperties[]>`: .
217-
- `[AppliedScopePropertiesDisplayName <String>]`: Display name
218-
- `[AppliedScopePropertiesManagementGroupId <String>]`: Fully-qualified identifier of the management group where the benefit must be applied.
219-
- `[AppliedScopePropertiesResourceGroupId <String>]`: Fully-qualified identifier of the resource group.
220-
- `[AppliedScopePropertiesSubscriptionId <String>]`: Fully-qualified identifier of the subscription.
221-
- `[AppliedScopePropertiesTenantId <String>]`: Tenant ID where the benefit is applied.
217+
- `[AppliedScopePropertyDisplayName <String>]`: Display name
218+
- `[AppliedScopePropertyManagementGroupId <String>]`: Fully-qualified identifier of the management group where the benefit must be applied.
219+
- `[AppliedScopePropertyResourceGroupId <String>]`: Fully-qualified identifier of the resource group.
220+
- `[AppliedScopePropertySubscriptionId <String>]`: Fully-qualified identifier of the subscription.
221+
- `[AppliedScopePropertyTenantId <String>]`: Tenant ID where the benefit is applied.
222222
- `[AppliedScopeType <AppliedScopeType?>]`: Type of the Applied Scope.
223-
- `[BillingPlan <BillingPlan?>]`: Represents the billing plan in ISO 8601 format. Required only for monthly billing plans.
224-
- `[BillingScopeId <String>]`: Subscription that will be charged for purchasing the benefit
225-
- `[CommitmentAmount <Double?>]`:
226-
- `[CommitmentCurrencyCode <String>]`: The ISO 4217 3-letter currency code for the currency used by this purchase record.
227-
- `[CommitmentGrain <CommitmentGrain?>]`: Commitment grain.
228223
- `[DisplayName <String>]`: Display name
229224
- `[Renew <Boolean?>]`: Setting this to true will automatically purchase a new benefit on the expiration date time.
230-
- `[RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName <String>]`: Display name
231-
- `[RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId <String>]`: Fully-qualified identifier of the management group where the benefit must be applied.
232-
- `[RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId <String>]`: Fully-qualified identifier of the resource group.
233-
- `[RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId <String>]`: Fully-qualified identifier of the subscription.
234-
- `[RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId <String>]`: Tenant ID where the benefit is applied.
235-
- `[RenewPropertiesPurchasePropertiesAppliedScopeType <AppliedScopeType?>]`: Type of the Applied Scope.
236-
- `[RenewPropertiesPurchasePropertiesDisplayName <String>]`: Friendly name of the savings plan
237-
- `[RenewPropertiesPurchasePropertiesRenew <Boolean?>]`: Setting this to true will automatically purchase a new benefit on the expiration date time.
238-
- `[SkuName <String>]`: Name of the SKU to be applied
239-
- `[Term <Term?>]`: Represent benefit term in ISO 8601 format.
225+
- `[RenewProperty <IRenewProperties>]`:
226+
- `[PurchaseProperty <IPurchaseRequest>]`:
227+
- `[AppliedScopePropertyDisplayName <String>]`: Display name
228+
- `[AppliedScopePropertyManagementGroupId <String>]`: Fully-qualified identifier of the management group where the benefit must be applied.
229+
- `[AppliedScopePropertyResourceGroupId <String>]`: Fully-qualified identifier of the resource group.
230+
- `[AppliedScopePropertySubscriptionId <String>]`: Fully-qualified identifier of the subscription.
231+
- `[AppliedScopePropertyTenantId <String>]`: Tenant ID where the benefit is applied.
232+
- `[AppliedScopeType <AppliedScopeType?>]`: Type of the Applied Scope.
233+
- `[BillingPlan <BillingPlan?>]`: Represents the billing plan in ISO 8601 format. Required only for monthly billing plans.
234+
- `[BillingScopeId <String>]`: Subscription that will be charged for purchasing the benefit
235+
- `[CommitmentAmount <Double?>]`:
236+
- `[CommitmentCurrencyCode <String>]`: The ISO 4217 3-letter currency code for the currency used by this purchase record.
237+
- `[CommitmentGrain <CommitmentGrain?>]`: Commitment grain.
238+
- `[DisplayName <String>]`: Friendly name of the savings plan
239+
- `[Renew <Boolean?>]`: Setting this to true will automatically purchase a new benefit on the expiration date time.
240+
- `[SkuName <String>]`: Name of the SKU to be applied
241+
- `[Term <Term?>]`: Represent benefit term in ISO 8601 format.
240242

241243
`BODY <ISavingsPlanUpdateValidateRequest>`: .
242244
- `[Benefit <ISavingsPlanUpdateRequestProperties[]>]`:
243-
- `[AppliedScopePropertiesDisplayName <String>]`: Display name
244-
- `[AppliedScopePropertiesManagementGroupId <String>]`: Fully-qualified identifier of the management group where the benefit must be applied.
245-
- `[AppliedScopePropertiesResourceGroupId <String>]`: Fully-qualified identifier of the resource group.
246-
- `[AppliedScopePropertiesSubscriptionId <String>]`: Fully-qualified identifier of the subscription.
247-
- `[AppliedScopePropertiesTenantId <String>]`: Tenant ID where the benefit is applied.
245+
- `[AppliedScopePropertyDisplayName <String>]`: Display name
246+
- `[AppliedScopePropertyManagementGroupId <String>]`: Fully-qualified identifier of the management group where the benefit must be applied.
247+
- `[AppliedScopePropertyResourceGroupId <String>]`: Fully-qualified identifier of the resource group.
248+
- `[AppliedScopePropertySubscriptionId <String>]`: Fully-qualified identifier of the subscription.
249+
- `[AppliedScopePropertyTenantId <String>]`: Tenant ID where the benefit is applied.
248250
- `[AppliedScopeType <AppliedScopeType?>]`: Type of the Applied Scope.
249-
- `[BillingPlan <BillingPlan?>]`: Represents the billing plan in ISO 8601 format. Required only for monthly billing plans.
250-
- `[BillingScopeId <String>]`: Subscription that will be charged for purchasing the benefit
251-
- `[CommitmentAmount <Double?>]`:
252-
- `[CommitmentCurrencyCode <String>]`: The ISO 4217 3-letter currency code for the currency used by this purchase record.
253-
- `[CommitmentGrain <CommitmentGrain?>]`: Commitment grain.
254251
- `[DisplayName <String>]`: Display name
255252
- `[Renew <Boolean?>]`: Setting this to true will automatically purchase a new benefit on the expiration date time.
256-
- `[RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName <String>]`: Display name
257-
- `[RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId <String>]`: Fully-qualified identifier of the management group where the benefit must be applied.
258-
- `[RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId <String>]`: Fully-qualified identifier of the resource group.
259-
- `[RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId <String>]`: Fully-qualified identifier of the subscription.
260-
- `[RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId <String>]`: Tenant ID where the benefit is applied.
261-
- `[RenewPropertiesPurchasePropertiesAppliedScopeType <AppliedScopeType?>]`: Type of the Applied Scope.
262-
- `[RenewPropertiesPurchasePropertiesDisplayName <String>]`: Friendly name of the savings plan
263-
- `[RenewPropertiesPurchasePropertiesRenew <Boolean?>]`: Setting this to true will automatically purchase a new benefit on the expiration date time.
264-
- `[SkuName <String>]`: Name of the SKU to be applied
265-
- `[Term <Term?>]`: Represent benefit term in ISO 8601 format.
253+
- `[RenewProperty <IRenewProperties>]`:
254+
- `[PurchaseProperty <IPurchaseRequest>]`:
255+
- `[AppliedScopePropertyDisplayName <String>]`: Display name
256+
- `[AppliedScopePropertyManagementGroupId <String>]`: Fully-qualified identifier of the management group where the benefit must be applied.
257+
- `[AppliedScopePropertyResourceGroupId <String>]`: Fully-qualified identifier of the resource group.
258+
- `[AppliedScopePropertySubscriptionId <String>]`: Fully-qualified identifier of the subscription.
259+
- `[AppliedScopePropertyTenantId <String>]`: Tenant ID where the benefit is applied.
260+
- `[AppliedScopeType <AppliedScopeType?>]`: Type of the Applied Scope.
261+
- `[BillingPlan <BillingPlan?>]`: Represents the billing plan in ISO 8601 format. Required only for monthly billing plans.
262+
- `[BillingScopeId <String>]`: Subscription that will be charged for purchasing the benefit
263+
- `[CommitmentAmount <Double?>]`:
264+
- `[CommitmentCurrencyCode <String>]`: The ISO 4217 3-letter currency code for the currency used by this purchase record.
265+
- `[CommitmentGrain <CommitmentGrain?>]`: Commitment grain.
266+
- `[DisplayName <String>]`: Friendly name of the savings plan
267+
- `[Renew <Boolean?>]`: Setting this to true will automatically purchase a new benefit on the expiration date time.
268+
- `[SkuName <String>]`: Name of the SKU to be applied
269+
- `[Term <Term?>]`: Represent benefit term in ISO 8601 format.
266270

267271
`INPUTOBJECT <IBillingBenefitsIdentity>`: Identity Parameter
268272
- `[Id <String>]`: Resource identity path

src/BillingBenefits/docs/New-AzBillingBenefitsReservationOrderAlias.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ New-AzBillingBenefitsReservationOrderAlias -Name "PSRITest1" -AppliedScopeType "
6262
```output
6363
Name DisplayName SkuName Location Term BillingPlan ReservedResourceType ReservationOrderId ProvisioningState BillingScopeId AppliedScopeType
6464
---- ----------- ------- -------- ---- ----------- -------------------- ------------------ ----------------- -------------- --------
65-
PSRITest1 PSRITest1 Standard_B1ls westus P1Y P1M VirtualMachines /providers/Micro...
66-
Created /subscriptions/eef82110-c91b-4395-9420-fcfcbefc5a47 Shared
65+
PSRITest1 PSRITest1 Standard_B1ls westus P1Y P1M VirtualMachines /providers/Micro... Created /subscriptions/eef82110-c91b-4395-9420-fcfcbefc5a47 Shared
6766
```
6867

6968
Create a reservation order alias.

src/BillingBenefits/docs/New-AzBillingBenefitsSavingsPlanOrderAlias.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -454,15 +454,15 @@ To create the parameters described below, construct a hash table containing the
454454
- `[AppliedScopePropertySubscriptionId <String>]`: Fully-qualified identifier of the subscription.
455455
- `[AppliedScopePropertyTenantId <String>]`: Tenant ID where the benefit is applied.
456456
- `[AppliedScopeType <AppliedScopeType?>]`: Type of the Applied Scope.
457-
- `[AzureAsyncOperation <String>]`:
457+
- `[AzureAsyncOperation <String>]`:
458458
- `[BillingPlan <BillingPlan?>]`: Represents the billing plan in ISO 8601 format. Required only for monthly billing plans.
459459
- `[BillingScopeId <String>]`: Subscription that will be charged for purchasing the benefit
460-
- `[CommitmentAmount <Double?>]`:
460+
- `[CommitmentAmount <Double?>]`:
461461
- `[CommitmentCurrencyCode <String>]`: The ISO 4217 3-letter currency code for the currency used by this purchase record.
462462
- `[CommitmentGrain <CommitmentGrain?>]`: Commitment grain.
463463
- `[DisplayName <String>]`: Display name
464464
- `[Kind <String>]`: Resource provider kind
465-
- `[RetryAfter <Int32?>]`:
465+
- `[RetryAfter <Int32?>]`:
466466
- `[SkuName <String>]`: Name of the SKU to be applied
467467
- `[Term <Term?>]`: Represent benefit term in ISO 8601 format.
468468

0 commit comments

Comments
 (0)