-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[Service Fabric] Add managed application cli commands #17404
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
Conversation
|
/azp run |
|
Commenter does not have sufficient privileges for PR 17404 in repo Azure/azure-cli |
|
@qwordy The pipeline failures dont seem to be directly related to the changes i've made here. Any ideas? |
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
@LukeSlev Failure of "Test Extensions Loading Python36" is fixed. Let's retry. You may need to pull from dev branch and push. |
3a70095 to
c4817e2
Compare
|
@qwordy I rebased on dev and checks seem to be passing, should be ready for a review |
|
@qwordy I see you're the assigned reviewer, do you have any comments on the PR? |
| namespace.primary_default_load is None or namespace.secondary_default_load is None: | ||
| raise CLIError("--metric-name, --weight, --primary-default-load and --secondary-default-load are required") | ||
| if namespace.default_load is not None: | ||
| raise CLIError("--default-load can only be used for stateless services.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I recommend to use ValidationError instead of CLIError. Definition is in src/azure-cli-core/azure/cli/core/azclierror.py.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I changed those
|
@LukeSlev Did you write these code manually? I know a package that can generate CLI code. https://www.npmjs.com/package/@autorest/az |
I did write it manually, I wasn't aware of that package. Thanks for letting me know, we will look into using it in the future |
|
@qwordy Made your suggested change |
Description
These cmdlets will support a New offering (resource type) - Service Fabric managed clusters for our customers. In this new model, Service Fabric resource provider (SFRP) manages the entire resource group for the essential components of the cluster, including VMSS, VNet/Load Balancer and storage account for diagnostics and bootstrap. These commands are to support the creation and management applications, applicationtypes, applicationtypeversions and services on the new service fabric managed clusters.
Testing Guide
see src\azure-cli\azure\cli\command_modules\servicefabric_help.py for examples and descriptions
History Notes
This checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.