From affd6f87f4860c6ac05ddbbe2deb509779553111 Mon Sep 17 00:00:00 2001 From: Flynn Date: Thu, 9 Jun 2022 17:06:15 +0800 Subject: [PATCH 1/3] fix for issue #18439 --- .../ApiManagement/Commands/NewAzureApiManagement.cs | 8 +++++++- .../ApiManagement/help/New-AzApiManagement.md | 5 ++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/ApiManagement/ApiManagement/Commands/NewAzureApiManagement.cs b/src/ApiManagement/ApiManagement/Commands/NewAzureApiManagement.cs index 79fa36f7900e..4ffe7bca5f9b 100644 --- a/src/ApiManagement/ApiManagement/Commands/NewAzureApiManagement.cs +++ b/src/ApiManagement/ApiManagement/Commands/NewAzureApiManagement.cs @@ -61,7 +61,13 @@ public class NewAzureApiManagement : AzureApiManagementCmdletBase [Parameter( ValueFromPipelineByPropertyName = true, Mandatory = false, - HelpMessage = "The tier of the Azure API Management service. Valid values are Developer, Consumption, Basic, Standard and Premium . Default value is Developer")] + HelpMessage = "The tier of the Azure API Management service. Valid values are : " + + " - Developer " + + " - Basic " + + " - Standard " + + " - Premium " + + " - Consumption " + + "Default value is Developer.")] [ValidateSet("Developer", "Basic", "Standard", "Premium", "Consumption"), PSDefaultValue(Value = "Developer")] public PsApiManagementSku? Sku { get; set; } diff --git a/src/ApiManagement/ApiManagement/help/New-AzApiManagement.md b/src/ApiManagement/ApiManagement/help/New-AzApiManagement.md index 0fdec8d3c81c..2fdf656ce61b 100644 --- a/src/ApiManagement/ApiManagement/help/New-AzApiManagement.md +++ b/src/ApiManagement/ApiManagement/help/New-AzApiManagement.md @@ -508,9 +508,12 @@ Specifies the tier of the API Management service. Valid values are: - Developer +- Basic - Standard - Premium -The default is Developer. +- Consumption + +Default value is Developer. ```yaml Type: System.Nullable`1[Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSku] From 7a6ee54c14a69f8c235843c5adfc07f0f407fecd Mon Sep 17 00:00:00 2001 From: Flynn Date: Tue, 21 Jun 2022 15:39:22 +0800 Subject: [PATCH 2/3] change code in one line --- .../ApiManagement/Commands/NewAzureApiManagement.cs | 8 +------- .../ApiManagement/help/New-AzApiManagement.md | 11 +---------- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/src/ApiManagement/ApiManagement/Commands/NewAzureApiManagement.cs b/src/ApiManagement/ApiManagement/Commands/NewAzureApiManagement.cs index 4ffe7bca5f9b..a619a3fa1ff0 100644 --- a/src/ApiManagement/ApiManagement/Commands/NewAzureApiManagement.cs +++ b/src/ApiManagement/ApiManagement/Commands/NewAzureApiManagement.cs @@ -61,13 +61,7 @@ public class NewAzureApiManagement : AzureApiManagementCmdletBase [Parameter( ValueFromPipelineByPropertyName = true, Mandatory = false, - HelpMessage = "The tier of the Azure API Management service. Valid values are : " + - " - Developer " + - " - Basic " + - " - Standard " + - " - Premium " + - " - Consumption " + - "Default value is Developer.")] + HelpMessage = "The tier of the Azure API Management service. Valid values are Developer, Basic, Standard, Premium and Consumption. The default value is Developer. ")] [ValidateSet("Developer", "Basic", "Standard", "Premium", "Consumption"), PSDefaultValue(Value = "Developer")] public PsApiManagementSku? Sku { get; set; } diff --git a/src/ApiManagement/ApiManagement/help/New-AzApiManagement.md b/src/ApiManagement/ApiManagement/help/New-AzApiManagement.md index 2fdf656ce61b..0439c95d4541 100644 --- a/src/ApiManagement/ApiManagement/help/New-AzApiManagement.md +++ b/src/ApiManagement/ApiManagement/help/New-AzApiManagement.md @@ -504,16 +504,7 @@ Accept wildcard characters: False ### -Sku -Specifies the tier of the API Management service. -Valid values are: - -- Developer -- Basic -- Standard -- Premium -- Consumption - -Default value is Developer. +The tier of the Azure API Management service. Valid values are Developer, Basic, Standard, Premium and Consumption. The default value is Developer. ```yaml Type: System.Nullable`1[Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSku] From 935f83d53071e5909c7836792d05bc20c4f8bbc2 Mon Sep 17 00:00:00 2001 From: Flynn Date: Tue, 21 Jun 2022 16:15:36 +0800 Subject: [PATCH 3/3] format --- src/ApiManagement/ApiManagement/help/New-AzApiManagement.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ApiManagement/ApiManagement/help/New-AzApiManagement.md b/src/ApiManagement/ApiManagement/help/New-AzApiManagement.md index 0439c95d4541..a91f20d1909e 100644 --- a/src/ApiManagement/ApiManagement/help/New-AzApiManagement.md +++ b/src/ApiManagement/ApiManagement/help/New-AzApiManagement.md @@ -504,7 +504,9 @@ Accept wildcard characters: False ### -Sku -The tier of the Azure API Management service. Valid values are Developer, Basic, Standard, Premium and Consumption. The default value is Developer. +The tier of the Azure API Management service. +Valid values are Developer, Basic, Standard, Premium and Consumption. +The default value is Developer. ```yaml Type: System.Nullable`1[Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSku]