From ac1f25932784c26673ad18384514059954373fe1 Mon Sep 17 00:00:00 2001
From: Azure PowerShell
<65331932+azure-powershell-bot@users.noreply.github.com>
Date: Thu, 19 Jan 2023 11:31:44 +0800
Subject: [PATCH] Move BillingBenefits to main (#20706)
---
.../Az.BillingBenefits.format.ps1xml | 10 +-
src/BillingBenefits/Az.BillingBenefits.psd1 | 2 +-
src/BillingBenefits/BillingBenefits.sln | 70 ++--
src/BillingBenefits/README.md | 18 +-
.../Get-AzBillingBenefitsSavingsPlan.md | 4 +-
.../Get-AzBillingBenefitsSavingsPlanList.md | 4 +-
...ingBenefitsSavingsPlanUpdateValidation.ps1 | 84 ++--
.../exports/ProxyCmdletDefinitions.ps1 | 264 +++++-------
.../Update-AzBillingBenefitsSavingsPlan.ps1 | 180 +++-----
src/BillingBenefits/generate-info.json | 2 +-
.../Api20221101/RenewProperties.PowerShell.cs | 160 -------
.../api/Models/Api20221101/RenewProperties.cs | 275 +-----------
.../SavingsPlanModel.PowerShell.cs | 256 ++----------
.../Models/Api20221101/SavingsPlanModel.cs | 394 +++---------------
.../SavingsPlanModelProperties.PowerShell.cs | 248 ++---------
.../Api20221101/SavingsPlanModelProperties.cs | 382 +++--------------
.../SavingsPlanModelProperties.json.cs | 4 +-
.../SavingsPlanUpdateRequest.PowerShell.cs | 224 ++--------
.../Api20221101/SavingsPlanUpdateRequest.cs | 313 +-------------
...sPlanUpdateRequestProperties.PowerShell.cs | 216 ++--------
.../SavingsPlanUpdateRequestProperties.cs | 330 ++-------------
...SavingsPlanUpdateRequestProperties.json.cs | 4 +-
...llingBenefitsSavingsPlan_UpdateExpanded.cs | 188 +--------
...tsSavingsPlan_UpdateViaIdentityExpanded.cs | 188 +--------
.../help/Get-AzBillingBenefitsSavingsPlan.md | 4 +-
.../Get-AzBillingBenefitsSavingsPlanList.md | 4 +-
...lingBenefitsSavingsPlanUpdateValidation.md | 84 ++--
.../Update-AzBillingBenefitsSavingsPlan.md | 325 +++------------
...Get-AzBillingBenefitsSavingsPlan.Tests.ps1 | 4 +-
...AzBillingBenefitsSavingsPlanList.Tests.ps1 | 6 +-
...zBillingBenefitsSavingsPlan.Recording.json | 79 ++++
...ate-AzBillingBenefitsSavingsPlan.Tests.ps1 | 26 ++
32 files changed, 791 insertions(+), 3561 deletions(-)
diff --git a/src/BillingBenefits/Az.BillingBenefits.format.ps1xml b/src/BillingBenefits/Az.BillingBenefits.format.ps1xml
index 157708a55f8d..3e2340ad3169 100644
--- a/src/BillingBenefits/Az.BillingBenefits.format.ps1xml
+++ b/src/BillingBenefits/Az.BillingBenefits.format.ps1xml
@@ -1078,7 +1078,7 @@
-
+
@@ -1103,16 +1103,16 @@
UserFriendlyAppliedScopeType
- AppliedScopePropertiesDisplayName
+ AppliedScopePropertyDisplayName
- SkuName1
+ SkuName
- Amount
+ CommitmentAmount
- CurrencyCode
+ CommitmentCurrencyCode
diff --git a/src/BillingBenefits/Az.BillingBenefits.psd1 b/src/BillingBenefits/Az.BillingBenefits.psd1
index f743e429db29..e579dd4a29c3 100644
--- a/src/BillingBenefits/Az.BillingBenefits.psd1
+++ b/src/BillingBenefits/Az.BillingBenefits.psd1
@@ -3,7 +3,7 @@
#
# Generated by: Microsoft Corporation
#
-# Generated on: 1/11/2023
+# Generated on: 1/19/2023
#
@{
diff --git a/src/BillingBenefits/BillingBenefits.sln b/src/BillingBenefits/BillingBenefits.sln
index 049551c477de..1fd27ab66e1d 100644
--- a/src/BillingBenefits/BillingBenefits.sln
+++ b/src/BillingBenefits/BillingBenefits.sln
@@ -3,19 +3,19 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 10.0.40219.1
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{33A2E5B4-9EF4-4CF7-91E9-40539CE59A7C}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{99F1752D-0E5C-47E8-A67C-C9D8833A7BBB}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyLoading", "..\Accounts\AssemblyLoading\AssemblyLoading.csproj", "{EB5E1131-2EAF-47A9-8D13-55F58A14879E}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyLoading", "..\Accounts\AssemblyLoading\AssemblyLoading.csproj", "{54BE211D-66E1-4899-A230-DCA272ADA937}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{765E59E6-7980-49A1-B2DF-6FB34FC95111}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{E578F206-13D8-4437-9196-DB230FA890F2}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{1A7B7B23-2FB4-4473-900B-F0F35BC367BA}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{80027DE0-BD6E-4D9E-AB2B-4EC1B6B92C5D}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{D9A3DEB2-B4D9-44A7-B835-769AB4213B5D}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{376057D3-585E-4C31-BAC4-F490214F2873}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{F762B24A-2EFB-4E9C-9C95-620357E7716F}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{B899099B-CAE8-4A64-A920-435AD57BBDBE}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.BillingBenefits", "Az.BillingBenefits.csproj", "{3F5307B5-C120-49AA-B742-5C5D5F99D014}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.BillingBenefits", "Az.BillingBenefits.csproj", "{F249873B-F533-4D8C-9EDF-E0B197684B36}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -26,33 +26,33 @@ Global
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {33A2E5B4-9EF4-4CF7-91E9-40539CE59A7C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {33A2E5B4-9EF4-4CF7-91E9-40539CE59A7C}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {33A2E5B4-9EF4-4CF7-91E9-40539CE59A7C}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {33A2E5B4-9EF4-4CF7-91E9-40539CE59A7C}.Release|Any CPU.Build.0 = Release|Any CPU
- {EB5E1131-2EAF-47A9-8D13-55F58A14879E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {EB5E1131-2EAF-47A9-8D13-55F58A14879E}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {EB5E1131-2EAF-47A9-8D13-55F58A14879E}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {EB5E1131-2EAF-47A9-8D13-55F58A14879E}.Release|Any CPU.Build.0 = Release|Any CPU
- {765E59E6-7980-49A1-B2DF-6FB34FC95111}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {765E59E6-7980-49A1-B2DF-6FB34FC95111}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {765E59E6-7980-49A1-B2DF-6FB34FC95111}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {765E59E6-7980-49A1-B2DF-6FB34FC95111}.Release|Any CPU.Build.0 = Release|Any CPU
- {1A7B7B23-2FB4-4473-900B-F0F35BC367BA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {1A7B7B23-2FB4-4473-900B-F0F35BC367BA}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {1A7B7B23-2FB4-4473-900B-F0F35BC367BA}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {1A7B7B23-2FB4-4473-900B-F0F35BC367BA}.Release|Any CPU.Build.0 = Release|Any CPU
- {D9A3DEB2-B4D9-44A7-B835-769AB4213B5D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {D9A3DEB2-B4D9-44A7-B835-769AB4213B5D}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {D9A3DEB2-B4D9-44A7-B835-769AB4213B5D}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {D9A3DEB2-B4D9-44A7-B835-769AB4213B5D}.Release|Any CPU.Build.0 = Release|Any CPU
- {F762B24A-2EFB-4E9C-9C95-620357E7716F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {F762B24A-2EFB-4E9C-9C95-620357E7716F}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {F762B24A-2EFB-4E9C-9C95-620357E7716F}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {F762B24A-2EFB-4E9C-9C95-620357E7716F}.Release|Any CPU.Build.0 = Release|Any CPU
- {3F5307B5-C120-49AA-B742-5C5D5F99D014}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {3F5307B5-C120-49AA-B742-5C5D5F99D014}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {3F5307B5-C120-49AA-B742-5C5D5F99D014}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {3F5307B5-C120-49AA-B742-5C5D5F99D014}.Release|Any CPU.Build.0 = Release|Any CPU
+ {99F1752D-0E5C-47E8-A67C-C9D8833A7BBB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {99F1752D-0E5C-47E8-A67C-C9D8833A7BBB}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {99F1752D-0E5C-47E8-A67C-C9D8833A7BBB}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {99F1752D-0E5C-47E8-A67C-C9D8833A7BBB}.Release|Any CPU.Build.0 = Release|Any CPU
+ {54BE211D-66E1-4899-A230-DCA272ADA937}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {54BE211D-66E1-4899-A230-DCA272ADA937}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {54BE211D-66E1-4899-A230-DCA272ADA937}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {54BE211D-66E1-4899-A230-DCA272ADA937}.Release|Any CPU.Build.0 = Release|Any CPU
+ {E578F206-13D8-4437-9196-DB230FA890F2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {E578F206-13D8-4437-9196-DB230FA890F2}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {E578F206-13D8-4437-9196-DB230FA890F2}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {E578F206-13D8-4437-9196-DB230FA890F2}.Release|Any CPU.Build.0 = Release|Any CPU
+ {80027DE0-BD6E-4D9E-AB2B-4EC1B6B92C5D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {80027DE0-BD6E-4D9E-AB2B-4EC1B6B92C5D}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {80027DE0-BD6E-4D9E-AB2B-4EC1B6B92C5D}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {80027DE0-BD6E-4D9E-AB2B-4EC1B6B92C5D}.Release|Any CPU.Build.0 = Release|Any CPU
+ {376057D3-585E-4C31-BAC4-F490214F2873}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {376057D3-585E-4C31-BAC4-F490214F2873}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {376057D3-585E-4C31-BAC4-F490214F2873}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {376057D3-585E-4C31-BAC4-F490214F2873}.Release|Any CPU.Build.0 = Release|Any CPU
+ {B899099B-CAE8-4A64-A920-435AD57BBDBE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {B899099B-CAE8-4A64-A920-435AD57BBDBE}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {B899099B-CAE8-4A64-A920-435AD57BBDBE}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {B899099B-CAE8-4A64-A920-435AD57BBDBE}.Release|Any CPU.Build.0 = Release|Any CPU
+ {F249873B-F533-4D8C-9EDF-E0B197684B36}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {F249873B-F533-4D8C-9EDF-E0B197684B36}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {F249873B-F533-4D8C-9EDF-E0B197684B36}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {F249873B-F533-4D8C-9EDF-E0B197684B36}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
diff --git a/src/BillingBenefits/README.md b/src/BillingBenefits/README.md
index 12cf7b51848f..12362f473272 100644
--- a/src/BillingBenefits/README.md
+++ b/src/BillingBenefits/README.md
@@ -60,6 +60,10 @@ resourcegroup-append: true
nested-object-to-string: true
directive:
+ ### No inline
+ - no-inline:
+ - RenewProperties
+
### Rename Cmdlet names
- where:
verb: Get
@@ -96,20 +100,18 @@ directive:
- PurchaseDateTime
- Term
- UserFriendlyAppliedScopeType
- - AppliedScopePropertiesDisplayName
- - SkuName1
- - Amount
- - CurrencyCode
+ - AppliedScopePropertyDisplayName
+ - SkuName
+ - CommitmentAmount
+ - CommitmentCurrencyCode
labels:
DisplayName: Name
DisplayProvisioningState: Status
ExpiryDateTime: ExpiryDate
PurchaseDateTime: PurchaseDate
UserFriendlyAppliedScopeType: Scope
- SkuName1: ProductName
- Amount: CommitmentAmount
- CurrencyCode: CommitmentCurrency
- AppliedScopePropertiesDisplayName: AppliedScopeDisplayName
+ SkuName: ProductName
+ AppliedScopePropertyDisplayName: AppliedScopeDisplayName
- where:
model-name: SavingsPlanOrderModel
set:
diff --git a/src/BillingBenefits/examples/Get-AzBillingBenefitsSavingsPlan.md b/src/BillingBenefits/examples/Get-AzBillingBenefitsSavingsPlan.md
index c17e968fd533..7383a6e51452 100644
--- a/src/BillingBenefits/examples/Get-AzBillingBenefitsSavingsPlan.md
+++ b/src/BillingBenefits/examples/Get-AzBillingBenefitsSavingsPlan.md
@@ -4,7 +4,7 @@ Get-AzBillingBenefitsSavingsPlan -OrderId d7ea1620-2bba-46e2-8434-11f31bfb984d
```
```output
-Name Status ExpiryDate PurchaseDate Term Scope AppliedScopeDisplayName ProductName CommitmentAmount CommitmentCurrency
+Name Status ExpiryDate PurchaseDate Term Scope AppliedScopeDisplayName ProductName CommitmentAmount CommitmentCurrencyCode
---- ------ ---------- ------------ ---- ----- ----------------------- ----------- ---------------- ------------------
PSTest7 Succeeded 11/29/2025 2:23:51 AM 11/29/2022 2:20:38 AM P3Y Shared Compute_Savings_Plan 0.001 USD
```
@@ -17,7 +17,7 @@ Get-AzBillingBenefitsSavingsPlan -OrderId d7ea1620-2bba-46e2-8434-11f31bfb984d -
```
```output
-Name Status ExpiryDate PurchaseDate Term Scope AppliedScopeDisplayName ProductName CommitmentAmount CommitmentCurrency
+Name Status ExpiryDate PurchaseDate Term Scope AppliedScopeDisplayName ProductName CommitmentAmount CommitmentCurrencyCode
---- ------ ---------- ------------ ---- ----- ----------------------- ----------- ---------------- ------------------
PSTest7 Succeeded 11/29/2025 2:23:51 AM 11/29/2022 2:20:38 AM P3Y Shared Compute_Savings_Plan 0.001 USD
```
diff --git a/src/BillingBenefits/examples/Get-AzBillingBenefitsSavingsPlanList.md b/src/BillingBenefits/examples/Get-AzBillingBenefitsSavingsPlanList.md
index a2a4f8e85e59..a95d18b34de1 100644
--- a/src/BillingBenefits/examples/Get-AzBillingBenefitsSavingsPlanList.md
+++ b/src/BillingBenefits/examples/Get-AzBillingBenefitsSavingsPlanList.md
@@ -4,7 +4,7 @@ Get-AzBillingBenefitsSavingsPlanList
```
```output
-Name Status ExpiryDate PurchaseDate Term Scope AppliedScopeDisplayName ProductName CommitmentAmount CommitmentCurrency
+Name Status ExpiryDate PurchaseDate Term Scope AppliedScopeDisplayName ProductName CommitmentAmount CommitmentCurrencyCode
---- ------ ---------- ------------ ---- ----- ----------------------- ----------- ---------------- ------------------
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
PSTesth1234 Succeeded 11/30/2025 12:36:25 AM 11/30/2022 12:34:31 AM P3Y Shared Compute_Savings_Plan 0.001 USD
@@ -22,7 +22,7 @@ Get-AzBillingBenefitsSavingsPlanList -Filter "properties/userFriendlyAppliedScop
```
```output
-Name Status ExpiryDate PurchaseDate Term Scope AppliedScopeDisplayName ProductName CommitmentAmount CommitmentCurrency
+Name Status ExpiryDate PurchaseDate Term Scope AppliedScopeDisplayName ProductName CommitmentAmount CommitmentCurrencyCode
---- ------ ---------- ------------ ---- ----- ----------------------- ----------- ---------------- ------------------
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
PSTesth1234 Succeeded 11/30/2025 12:36:25 AM 11/30/2022 12:34:31 AM P3Y Shared Compute_Savings_Plan 0.001 USD
diff --git a/src/BillingBenefits/exports/Invoke-AzBillingBenefitsSavingsPlanUpdateValidation.ps1 b/src/BillingBenefits/exports/Invoke-AzBillingBenefitsSavingsPlanUpdateValidation.ps1
index 3193afc79efd..915b1d6f41b6 100644
--- a/src/BillingBenefits/exports/Invoke-AzBillingBenefitsSavingsPlanUpdateValidation.ps1
+++ b/src/BillingBenefits/exports/Invoke-AzBillingBenefitsSavingsPlanUpdateValidation.ps1
@@ -41,55 +41,59 @@ COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
BENEFIT : .
- [AppliedScopePropertiesDisplayName ]: Display name
- [AppliedScopePropertiesManagementGroupId ]: Fully-qualified identifier of the management group where the benefit must be applied.
- [AppliedScopePropertiesResourceGroupId ]: Fully-qualified identifier of the resource group.
- [AppliedScopePropertiesSubscriptionId ]: Fully-qualified identifier of the subscription.
- [AppliedScopePropertiesTenantId ]: Tenant ID where the benefit is applied.
+ [AppliedScopePropertyDisplayName ]: Display name
+ [AppliedScopePropertyManagementGroupId ]: Fully-qualified identifier of the management group where the benefit must be applied.
+ [AppliedScopePropertyResourceGroupId ]: Fully-qualified identifier of the resource group.
+ [AppliedScopePropertySubscriptionId ]: Fully-qualified identifier of the subscription.
+ [AppliedScopePropertyTenantId ]: Tenant ID where the benefit is applied.
[AppliedScopeType ]: Type of the Applied Scope.
- [BillingPlan ]: Represents the billing plan in ISO 8601 format. Required only for monthly billing plans.
- [BillingScopeId ]: Subscription that will be charged for purchasing the benefit
- [CommitmentAmount ]:
- [CommitmentCurrencyCode ]: The ISO 4217 3-letter currency code for the currency used by this purchase record.
- [CommitmentGrain ]: Commitment grain.
[DisplayName ]: Display name
[Renew ]: Setting this to true will automatically purchase a new benefit on the expiration date time.
- [RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName ]: Display name
- [RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId ]: Fully-qualified identifier of the management group where the benefit must be applied.
- [RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId ]: Fully-qualified identifier of the resource group.
- [RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId ]: Fully-qualified identifier of the subscription.
- [RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId ]: Tenant ID where the benefit is applied.
- [RenewPropertiesPurchasePropertiesAppliedScopeType ]: Type of the Applied Scope.
- [RenewPropertiesPurchasePropertiesDisplayName ]: Friendly name of the savings plan
- [RenewPropertiesPurchasePropertiesRenew ]: Setting this to true will automatically purchase a new benefit on the expiration date time.
- [SkuName ]: Name of the SKU to be applied
- [Term ]: Represent benefit term in ISO 8601 format.
+ [RenewProperty ]:
+ [PurchaseProperty ]:
+ [AppliedScopePropertyDisplayName ]: Display name
+ [AppliedScopePropertyManagementGroupId ]: Fully-qualified identifier of the management group where the benefit must be applied.
+ [AppliedScopePropertyResourceGroupId ]: Fully-qualified identifier of the resource group.
+ [AppliedScopePropertySubscriptionId ]: Fully-qualified identifier of the subscription.
+ [AppliedScopePropertyTenantId ]: Tenant ID where the benefit is applied.
+ [AppliedScopeType ]: Type of the Applied Scope.
+ [BillingPlan ]: Represents the billing plan in ISO 8601 format. Required only for monthly billing plans.
+ [BillingScopeId ]: Subscription that will be charged for purchasing the benefit
+ [CommitmentAmount ]:
+ [CommitmentCurrencyCode ]: The ISO 4217 3-letter currency code for the currency used by this purchase record.
+ [CommitmentGrain ]: Commitment grain.
+ [DisplayName ]: Friendly name of the savings plan
+ [Renew ]: Setting this to true will automatically purchase a new benefit on the expiration date time.
+ [SkuName ]: Name of the SKU to be applied
+ [Term ]: Represent benefit term in ISO 8601 format.
BODY : .
[Benefit ]:
- [AppliedScopePropertiesDisplayName ]: Display name
- [AppliedScopePropertiesManagementGroupId ]: Fully-qualified identifier of the management group where the benefit must be applied.
- [AppliedScopePropertiesResourceGroupId ]: Fully-qualified identifier of the resource group.
- [AppliedScopePropertiesSubscriptionId ]: Fully-qualified identifier of the subscription.
- [AppliedScopePropertiesTenantId ]: Tenant ID where the benefit is applied.
+ [AppliedScopePropertyDisplayName ]: Display name
+ [AppliedScopePropertyManagementGroupId ]: Fully-qualified identifier of the management group where the benefit must be applied.
+ [AppliedScopePropertyResourceGroupId ]: Fully-qualified identifier of the resource group.
+ [AppliedScopePropertySubscriptionId ]: Fully-qualified identifier of the subscription.
+ [AppliedScopePropertyTenantId ]: Tenant ID where the benefit is applied.
[AppliedScopeType ]: Type of the Applied Scope.
- [BillingPlan ]: Represents the billing plan in ISO 8601 format. Required only for monthly billing plans.
- [BillingScopeId ]: Subscription that will be charged for purchasing the benefit
- [CommitmentAmount ]:
- [CommitmentCurrencyCode ]: The ISO 4217 3-letter currency code for the currency used by this purchase record.
- [CommitmentGrain ]: Commitment grain.
[DisplayName ]: Display name
[Renew ]: Setting this to true will automatically purchase a new benefit on the expiration date time.
- [RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName ]: Display name
- [RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId ]: Fully-qualified identifier of the management group where the benefit must be applied.
- [RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId ]: Fully-qualified identifier of the resource group.
- [RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId ]: Fully-qualified identifier of the subscription.
- [RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId ]: Tenant ID where the benefit is applied.
- [RenewPropertiesPurchasePropertiesAppliedScopeType ]: Type of the Applied Scope.
- [RenewPropertiesPurchasePropertiesDisplayName ]: Friendly name of the savings plan
- [RenewPropertiesPurchasePropertiesRenew ]: Setting this to true will automatically purchase a new benefit on the expiration date time.
- [SkuName ]: Name of the SKU to be applied
- [Term ]: Represent benefit term in ISO 8601 format.
+ [RenewProperty ]:
+ [PurchaseProperty ]:
+ [AppliedScopePropertyDisplayName ]: Display name
+ [AppliedScopePropertyManagementGroupId ]: Fully-qualified identifier of the management group where the benefit must be applied.
+ [AppliedScopePropertyResourceGroupId ]: Fully-qualified identifier of the resource group.
+ [AppliedScopePropertySubscriptionId ]: Fully-qualified identifier of the subscription.
+ [AppliedScopePropertyTenantId ]: Tenant ID where the benefit is applied.
+ [AppliedScopeType ]: Type of the Applied Scope.
+ [BillingPlan ]: Represents the billing plan in ISO 8601 format. Required only for monthly billing plans.
+ [BillingScopeId ]: Subscription that will be charged for purchasing the benefit
+ [CommitmentAmount ]:
+ [CommitmentCurrencyCode ]: The ISO 4217 3-letter currency code for the currency used by this purchase record.
+ [CommitmentGrain ]: Commitment grain.
+ [DisplayName ]: Friendly name of the savings plan
+ [Renew ]: Setting this to true will automatically purchase a new benefit on the expiration date time.
+ [SkuName ]: Name of the SKU to be applied
+ [Term ]: Represent benefit term in ISO 8601 format.
INPUTOBJECT : Identity Parameter
[Id ]: Resource identity path
diff --git a/src/BillingBenefits/exports/ProxyCmdletDefinitions.ps1 b/src/BillingBenefits/exports/ProxyCmdletDefinitions.ps1
index 38beff4f8366..52b1e671e5fd 100644
--- a/src/BillingBenefits/exports/ProxyCmdletDefinitions.ps1
+++ b/src/BillingBenefits/exports/ProxyCmdletDefinitions.ps1
@@ -1328,55 +1328,59 @@ COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
BENEFIT : .
- [AppliedScopePropertiesDisplayName ]: Display name
- [AppliedScopePropertiesManagementGroupId ]: Fully-qualified identifier of the management group where the benefit must be applied.
- [AppliedScopePropertiesResourceGroupId ]: Fully-qualified identifier of the resource group.
- [AppliedScopePropertiesSubscriptionId ]: Fully-qualified identifier of the subscription.
- [AppliedScopePropertiesTenantId ]: Tenant ID where the benefit is applied.
+ [AppliedScopePropertyDisplayName ]: Display name
+ [AppliedScopePropertyManagementGroupId ]: Fully-qualified identifier of the management group where the benefit must be applied.
+ [AppliedScopePropertyResourceGroupId ]: Fully-qualified identifier of the resource group.
+ [AppliedScopePropertySubscriptionId ]: Fully-qualified identifier of the subscription.
+ [AppliedScopePropertyTenantId ]: Tenant ID where the benefit is applied.
[AppliedScopeType ]: Type of the Applied Scope.
- [BillingPlan ]: Represents the billing plan in ISO 8601 format. Required only for monthly billing plans.
- [BillingScopeId ]: Subscription that will be charged for purchasing the benefit
- [CommitmentAmount ]:
- [CommitmentCurrencyCode ]: The ISO 4217 3-letter currency code for the currency used by this purchase record.
- [CommitmentGrain ]: Commitment grain.
[DisplayName ]: Display name
[Renew ]: Setting this to true will automatically purchase a new benefit on the expiration date time.
- [RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName ]: Display name
- [RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId ]: Fully-qualified identifier of the management group where the benefit must be applied.
- [RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId ]: Fully-qualified identifier of the resource group.
- [RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId ]: Fully-qualified identifier of the subscription.
- [RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId ]: Tenant ID where the benefit is applied.
- [RenewPropertiesPurchasePropertiesAppliedScopeType ]: Type of the Applied Scope.
- [RenewPropertiesPurchasePropertiesDisplayName ]: Friendly name of the savings plan
- [RenewPropertiesPurchasePropertiesRenew ]: Setting this to true will automatically purchase a new benefit on the expiration date time.
- [SkuName ]: Name of the SKU to be applied
- [Term ]: Represent benefit term in ISO 8601 format.
+ [RenewProperty ]:
+ [PurchaseProperty ]:
+ [AppliedScopePropertyDisplayName ]: Display name
+ [AppliedScopePropertyManagementGroupId ]: Fully-qualified identifier of the management group where the benefit must be applied.
+ [AppliedScopePropertyResourceGroupId ]: Fully-qualified identifier of the resource group.
+ [AppliedScopePropertySubscriptionId ]: Fully-qualified identifier of the subscription.
+ [AppliedScopePropertyTenantId ]: Tenant ID where the benefit is applied.
+ [AppliedScopeType ]: Type of the Applied Scope.
+ [BillingPlan ]: Represents the billing plan in ISO 8601 format. Required only for monthly billing plans.
+ [BillingScopeId ]: Subscription that will be charged for purchasing the benefit
+ [CommitmentAmount ]:
+ [CommitmentCurrencyCode ]: The ISO 4217 3-letter currency code for the currency used by this purchase record.
+ [CommitmentGrain ]: Commitment grain.
+ [DisplayName ]: Friendly name of the savings plan
+ [Renew ]: Setting this to true will automatically purchase a new benefit on the expiration date time.
+ [SkuName ]: Name of the SKU to be applied
+ [Term ]: Represent benefit term in ISO 8601 format.
BODY : .
[Benefit ]:
- [AppliedScopePropertiesDisplayName ]: Display name
- [AppliedScopePropertiesManagementGroupId ]: Fully-qualified identifier of the management group where the benefit must be applied.
- [AppliedScopePropertiesResourceGroupId ]: Fully-qualified identifier of the resource group.
- [AppliedScopePropertiesSubscriptionId ]: Fully-qualified identifier of the subscription.
- [AppliedScopePropertiesTenantId ]: Tenant ID where the benefit is applied.
+ [AppliedScopePropertyDisplayName ]: Display name
+ [AppliedScopePropertyManagementGroupId ]: Fully-qualified identifier of the management group where the benefit must be applied.
+ [AppliedScopePropertyResourceGroupId ]: Fully-qualified identifier of the resource group.
+ [AppliedScopePropertySubscriptionId ]: Fully-qualified identifier of the subscription.
+ [AppliedScopePropertyTenantId ]: Tenant ID where the benefit is applied.
[AppliedScopeType ]: Type of the Applied Scope.
- [BillingPlan ]: Represents the billing plan in ISO 8601 format. Required only for monthly billing plans.
- [BillingScopeId ]: Subscription that will be charged for purchasing the benefit
- [CommitmentAmount ]:
- [CommitmentCurrencyCode ]: The ISO 4217 3-letter currency code for the currency used by this purchase record.
- [CommitmentGrain ]: Commitment grain.
[DisplayName ]: Display name
[Renew ]: Setting this to true will automatically purchase a new benefit on the expiration date time.
- [RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName ]: Display name
- [RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId ]: Fully-qualified identifier of the management group where the benefit must be applied.
- [RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId ]: Fully-qualified identifier of the resource group.
- [RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId ]: Fully-qualified identifier of the subscription.
- [RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId ]: Tenant ID where the benefit is applied.
- [RenewPropertiesPurchasePropertiesAppliedScopeType ]: Type of the Applied Scope.
- [RenewPropertiesPurchasePropertiesDisplayName ]: Friendly name of the savings plan
- [RenewPropertiesPurchasePropertiesRenew ]: Setting this to true will automatically purchase a new benefit on the expiration date time.
- [SkuName ]: Name of the SKU to be applied
- [Term ]: Represent benefit term in ISO 8601 format.
+ [RenewProperty ]:
+ [PurchaseProperty ]:
+ [AppliedScopePropertyDisplayName ]: Display name
+ [AppliedScopePropertyManagementGroupId ]: Fully-qualified identifier of the management group where the benefit must be applied.
+ [AppliedScopePropertyResourceGroupId ]: Fully-qualified identifier of the resource group.
+ [AppliedScopePropertySubscriptionId ]: Fully-qualified identifier of the subscription.
+ [AppliedScopePropertyTenantId ]: Tenant ID where the benefit is applied.
+ [AppliedScopeType ]: Type of the Applied Scope.
+ [BillingPlan ]: Represents the billing plan in ISO 8601 format. Required only for monthly billing plans.
+ [BillingScopeId ]: Subscription that will be charged for purchasing the benefit
+ [CommitmentAmount ]:
+ [CommitmentCurrencyCode ]: The ISO 4217 3-letter currency code for the currency used by this purchase record.
+ [CommitmentGrain ]: Commitment grain.
+ [DisplayName ]: Friendly name of the savings plan
+ [Renew ]: Setting this to true will automatically purchase a new benefit on the expiration date time.
+ [SkuName ]: Name of the SKU to be applied
+ [Term ]: Represent benefit term in ISO 8601 format.
INPUTOBJECT : Identity Parameter
[Id ]: Resource identity path
@@ -2249,29 +2253,31 @@ COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
BODY : Savings plan patch request
- [AppliedScopePropertiesDisplayName ]: Display name
- [AppliedScopePropertiesManagementGroupId ]: Fully-qualified identifier of the management group where the benefit must be applied.
- [AppliedScopePropertiesResourceGroupId ]: Fully-qualified identifier of the resource group.
- [AppliedScopePropertiesSubscriptionId ]: Fully-qualified identifier of the subscription.
- [AppliedScopePropertiesTenantId ]: Tenant ID where the benefit is applied.
+ [AppliedScopePropertyDisplayName ]: Display name
+ [AppliedScopePropertyManagementGroupId ]: Fully-qualified identifier of the management group where the benefit must be applied.
+ [AppliedScopePropertyResourceGroupId ]: Fully-qualified identifier of the resource group.
+ [AppliedScopePropertySubscriptionId ]: Fully-qualified identifier of the subscription.
+ [AppliedScopePropertyTenantId ]: Tenant ID where the benefit is applied.
[AppliedScopeType ]: Type of the Applied Scope.
- [BillingPlan ]: Represents the billing plan in ISO 8601 format. Required only for monthly billing plans.
- [BillingScopeId ]: Subscription that will be charged for purchasing the benefit
- [CommitmentAmount ]:
- [CommitmentCurrencyCode ]: The ISO 4217 3-letter currency code for the currency used by this purchase record.
- [CommitmentGrain ]: Commitment grain.
[DisplayName ]: Display name
[Renew ]: Setting this to true will automatically purchase a new benefit on the expiration date time.
- [RenewPropertiesPurchasePropertiesAppliedScopePropertiesDisplayName ]: Display name
- [RenewPropertiesPurchasePropertiesAppliedScopePropertiesManagementGroupId ]: Fully-qualified identifier of the management group where the benefit must be applied.
- [RenewPropertiesPurchasePropertiesAppliedScopePropertiesResourceGroupId ]: Fully-qualified identifier of the resource group.
- [RenewPropertiesPurchasePropertiesAppliedScopePropertiesSubscriptionId ]: Fully-qualified identifier of the subscription.
- [RenewPropertiesPurchasePropertiesAppliedScopePropertiesTenantId ]: Tenant ID where the benefit is applied.
- [RenewPropertiesPurchasePropertiesAppliedScopeType ]: Type of the Applied Scope.
- [RenewPropertiesPurchasePropertiesDisplayName ]: Friendly name of the savings plan
- [RenewPropertiesPurchasePropertiesRenew ]: Setting this to true will automatically purchase a new benefit on the expiration date time.
- [SkuName ]: Name of the SKU to be applied
- [Term ]: Represent benefit term in ISO 8601 format.
+ [RenewProperty ]:
+ [PurchaseProperty ]:
+ [AppliedScopePropertyDisplayName ]: Display name
+ [AppliedScopePropertyManagementGroupId ]: Fully-qualified identifier of the management group where the benefit must be applied.
+ [AppliedScopePropertyResourceGroupId ]: Fully-qualified identifier of the resource group.
+ [AppliedScopePropertySubscriptionId ]: Fully-qualified identifier of the subscription.
+ [AppliedScopePropertyTenantId ]: Tenant ID where the benefit is applied.
+ [AppliedScopeType ]: Type of the Applied Scope.
+ [BillingPlan ]: Represents the billing plan in ISO 8601 format. Required only for monthly billing plans.
+ [BillingScopeId ]: Subscription that will be charged for purchasing the benefit
+ [CommitmentAmount ]:
+ [CommitmentCurrencyCode ]: The ISO 4217 3-letter currency code for the currency used by this purchase record.
+ [CommitmentGrain ]: Commitment grain.
+ [DisplayName ]: Friendly name of the savings plan
+ [Renew ]: Setting this to true will automatically purchase a new benefit on the expiration date time.
+ [SkuName ]: Name of the SKU to be applied
+ [Term ]: Represent benefit term in ISO 8601 format.
INPUTOBJECT : Identity Parameter
[Id ]: Resource identity path
@@ -2279,6 +2285,24 @@ INPUTOBJECT : Identity Parameter
[SavingsPlanId ]: ID of the savings plan
[SavingsPlanOrderAliasName ]: Name of the savings plan order alias
[SavingsPlanOrderId ]: Order ID of the savings plan
+
+RENEWPROPERTY : .
+ [PurchaseProperty ]:
+ [AppliedScopePropertyDisplayName ]: Display name
+ [AppliedScopePropertyManagementGroupId ]: Fully-qualified identifier of the management group where the benefit must be applied.
+ [AppliedScopePropertyResourceGroupId ]: Fully-qualified identifier of the resource group.
+ [AppliedScopePropertySubscriptionId ]: Fully-qualified identifier of the subscription.
+ [AppliedScopePropertyTenantId ]: Tenant ID where the benefit is applied.
+ [AppliedScopeType ]: Type of the Applied Scope.
+ [BillingPlan ]: Represents the billing plan in ISO 8601 format. Required only for monthly billing plans.
+ [BillingScopeId ]: Subscription that will be charged for purchasing the benefit
+ [CommitmentAmount ]:
+ [CommitmentCurrencyCode