From d87ccc5346568e3a1d1ebdbdd0293b7c4e597830 Mon Sep 17 00:00:00 2001 From: Yufan Yang <95342181+CaptainFanZzz@users.noreply.github.com> Date: Thu, 9 Jun 2022 21:41:06 +0800 Subject: [PATCH] fix for issue #18398 (#18452) --- .../Commands/NewAzureApiManagementSubscription.cs | 4 ++-- .../ApiManagement/help/New-AzApiManagementSubscription.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ApiManagement/ApiManagement.ServiceManagement/Commands/NewAzureApiManagementSubscription.cs b/src/ApiManagement/ApiManagement.ServiceManagement/Commands/NewAzureApiManagementSubscription.cs index a9aec2cecb14..7cfa777ec6ef 100644 --- a/src/ApiManagement/ApiManagement.ServiceManagement/Commands/NewAzureApiManagementSubscription.cs +++ b/src/ApiManagement/ApiManagement.ServiceManagement/Commands/NewAzureApiManagementSubscription.cs @@ -80,14 +80,14 @@ public class NewAzureApiManagementSubscription : AzureApiManagementCmdletBase ValueFromPipelineByPropertyName = true, Mandatory = false, HelpMessage = "Subscription primary key. This parameter is optional. If not specified will be generated automatically." + - " Must be 1 to 300 characters long.")] + " Must be 1 to 256 characters long.")] public String PrimaryKey { get; set; } [Parameter( ValueFromPipelineByPropertyName = true, Mandatory = false, HelpMessage = "Subscription secondary key. This parameter is optional. If not specified will be generated automatically." + - " Must be 1 to 300 characters long.")] + " Must be 1 to 256 characters long.")] public String SecondaryKey { get; set; } [Parameter( diff --git a/src/ApiManagement/ApiManagement/help/New-AzApiManagementSubscription.md b/src/ApiManagement/ApiManagement/help/New-AzApiManagementSubscription.md index b0cf9ae2ba42..d75d35dad2a6 100644 --- a/src/ApiManagement/ApiManagement/help/New-AzApiManagementSubscription.md +++ b/src/ApiManagement/ApiManagement/help/New-AzApiManagementSubscription.md @@ -117,7 +117,7 @@ Accept wildcard characters: False ### -PrimaryKey Specifies the subscription primary key. If this parameter is not specified the key is generated automatically. -This parameter must be 1 to 300 characters long. +This parameter must be 1 to 256 characters long. ```yaml Type: System.String @@ -164,7 +164,7 @@ Accept wildcard characters: False ### -SecondaryKey Specifies the subscription secondary key. This parameter is generated automatically if it is not specified. -This parameter must be 1 to 300 characters long. +This parameter must be 1 to 256 characters long. ```yaml Type: System.String