Skip to content
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

Sql vm minor changes + new property in sql vm create #9875

Merged
merged 9 commits into from
Jul 9, 2019
Merged

Sql vm minor changes + new property in sql vm create #9875

merged 9 commits into from
Jul 9, 2019

Conversation

yareyes
Copy link
Member

@yareyes yareyes commented Jul 5, 2019

This PR contains small changes as:

Adding a new property --sql-mgmt-type, not required with a default value.
Modifying tests accordingly.
Removing a deprecated parameter.
Small update in sql vm group that did not allow customers to set the new storage account key in update.


This checklist is used to make sure that common guidelines for a pull request are followed.

  • The PR has modified HISTORY.rst describing any customer-facing, functional changes. Note that this does not include changes only to help content. (see Modifying change log).

  • I adhere to the Command Guidelines.

@yareyes
Copy link
Member Author

yareyes commented Jul 8, 2019

@tjprescott could you please help me review this PR?
Also, the CLI Linter test is failing:

  • FAIL: faulty_help_type_rule |  
    -- | --
      | Help-Entry: batch pool supported-images list - Command should be of help-type command

But this is not related to my changes.

Appreciate the help, we want to merge soon :)

@tjprescott
Copy link
Member

/azurepipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@tjprescott tjprescott left a comment

Choose a reason for hiding this comment

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

Overall LGTM. A couple suggestions.

@@ -168,6 +175,9 @@ def load_arguments(self, _):
options_list=['--image-sku'],
help='SQL image sku.',
arg_type=get_enum_type(SqlImageSku))
c.argument('sql_image_offer',
options_list=['--image-offer'],
help='SQL image offer. Examples include SQL2008R2-WS2008R2, SQL2008R2-WS2008, SQL2008-WS2008, SQL2008-WS2008R2.')
Copy link
Member

Choose a reason for hiding this comment

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

Where do these values come from? It seems like this might need to use the populator_commands kwarg in help.py.

Copy link
Member Author

Choose a reason for hiding this comment

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

These were just examples of possible combinations. I reduced the amount of examples just to give an idea of what the pattern should look like.

Copy link
Member

Choose a reason for hiding this comment

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

Is it purely pattern based? Is there an endpoint that provides actual supported values?

Copy link
Member Author

Choose a reason for hiding this comment

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

No there is no endpoint that provides the supported values unfortunately. This parameter (image-offer) is only required if customer provides sql-mgmt-type as NoAgent, which is a minimal portion of customers (what we call End of Support Customers that have WS 2008).

src/azure-cli/HISTORY.rst Show resolved Hide resolved
@tjprescott tjprescott added this to the Sprint 65 milestone Jul 9, 2019
Copy link

@SeliuMSFT SeliuMSFT left a comment

Choose a reason for hiding this comment

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

:shipit:

@tjprescott tjprescott merged commit be2c1d1 into Azure:dev Jul 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants