File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
ApiManagement.ServiceManagement/Commands Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ public class NewAzureApiManagementProduct : AzureApiManagementCmdletBase
74
74
ValueFromPipelineByPropertyName = true ,
75
75
Mandatory = false ,
76
76
HelpMessage = "Maximum number of simultaneous subscriptions. This parameter is optional." +
77
- " Default value is 1 ." ) ]
77
+ " Default value is None ." ) ]
78
78
public Int32 ? SubscriptionsLimit { get ; set ; }
79
79
80
80
[ Parameter (
@@ -89,11 +89,9 @@ public override void ExecuteApiManagementCmdlet()
89
89
string productId = ProductId ?? Guid . NewGuid ( ) . ToString ( "N" ) ;
90
90
91
91
bool ? approvalRequired = null ;
92
- Int32 ? subscriptionsLimit = null ;
93
92
if ( SubscriptionRequired . HasValue && SubscriptionRequired . Value )
94
93
{
95
94
approvalRequired = ApprovalRequired ?? false ;
96
- subscriptionsLimit = SubscriptionsLimit ?? 1 ;
97
95
}
98
96
99
97
var product = Client . ProductCreate (
@@ -104,7 +102,7 @@ public override void ExecuteApiManagementCmdlet()
104
102
LegalTerms ,
105
103
SubscriptionRequired ?? true ,
106
104
approvalRequired ,
107
- subscriptionsLimit ,
105
+ SubscriptionsLimit ,
108
106
State ) ;
109
107
110
108
WriteObject ( product ) ;
Original file line number Diff line number Diff line change 18
18
- Additional information about change #1
19
19
-->
20
20
## Upcoming Release
21
+ * [ Breaking change] ` New-AzApiManagementProduct ` by default has no subscription limit.
21
22
22
23
## Version 2.1.0
23
24
* Added new ` Add-AzApiManagementApiToGateway ` cmdlet.
You can’t perform that action at this time.
0 commit comments