Skip to content

New-AzApiManagementProduct: Change SubscriptionsLimit parameter default value to None #13457

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Nov 25, 2020

Conversation

SteppingRazor
Copy link
Contributor

@SteppingRazor SteppingRazor commented Nov 7, 2020

Description

You can read the whole story here
Short story: using Azure Rest Api or Azure portal it is possible to create product with SubscriptionRequired set to true but leave SubscriptionsLimit unlimited. As for New-AzApiManagementProduct command there is no reason to default SubscriptionsLimit to 1 when user set SubscriptionRequired to true

Checklist

  • I have read the Submitting Changes section of CONTRIBUTING.md
  • The title of the PR is clear and informative
  • The appropriate ChangeLog.md file(s) has been updated:
    • For any service, the ChangeLog.md file can be found at src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md
    • A snippet outlining the change(s) made in the PR should be written under the ## Upcoming Release header -- no new version header should be added
  • The PR does not introduce breaking changes
  • If applicable, the changes made in the PR have proper test coverage
  • For public API changes to cmdlets:
    • a cmdlet design review was approved for the changes in this repository (Microsoft internal only)
    • the markdown help files have been regenerated using the commands listed here

@ghost ghost added the customer-reported label Nov 7, 2020
@ghost
Copy link

ghost commented Nov 7, 2020

Thank you for your contribution SteppingRazor! We will review the pull request and get back to you soon.

@ghost
Copy link

ghost commented Nov 7, 2020

CLA assistant check
All CLA requirements met.

@isra-fel isra-fel self-assigned this Nov 9, 2020
@isra-fel
Copy link
Member

isra-fel commented Nov 9, 2020

Hi @SteppingRazor thanks for your contribution 👍
@solankisamir could you help review this change because you updated the cmdlet? Thanks!

@isra-fel
Copy link
Member

isra-fel commented Nov 24, 2020

I just checked Azure portal, the default behavior when you enable "Requires subscription" is to have no limit, so I agree with the proposed changes.

I will work on your pull request (if you don't mind) with:

  1. Update test cases to cover this new behavior
  2. Modify the change log to mention this is a breaking change

@isra-fel
Copy link
Member

/azp run

@azure-pipelines
Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

Copy link
Member

@isra-fel isra-fel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@isra-fel
Copy link
Member

/azp run

@azure-pipelines
Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@isra-fel isra-fel merged commit d1e906e into Azure:master Nov 25, 2020
@SteppingRazor SteppingRazor deleted the subscriptionslimit branch November 28, 2020 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants