-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[Breadth Coverage] Log Analytics Solution #1545
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
|
If this PR is for a new extension or change to an existing extension, use the following to try out the changes in this PR: |
99c8fda to
a255492
Compare
|
add to S168 |
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.
- Please don't set maxCliCoreVersion here
- "azext.minCliCoreVersion" should be at least "2.3.0"; otherwise 'experimental' tag is not available. Please test if 'experimental' tag works first.
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.
Please don't set maxCliCoreVersion here
"azext.minCliCoreVersion" should be at least "2.3.0"
Done
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.
otherwise 'experimental' tag is not available. Please test if 'experimental' tag works first.
Yeah, tag had been tested and can be used normally #Closed
qianwens
left a comment
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.
![]()
src/log-analytics-solution/setup.py
Outdated
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.
remove python 2, 2.7 as we will not support them any longer. #Closed
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.
add 'confirmation=True' for delete command #Closed
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.
parameter cmd is not used, remove it. please also check not used cmd in other methods.
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.
please support workspace name as well #Closed
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 mean use one argument "workspace" that supports both name and resource id as storage_account does.
In reply to: 415257345 [](ancestors = 415257345)
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.
unnecessary to add resource_group here as it's a global argument added by cli core automatically.
please also remove it in other methods. #Closed
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.
name [](start = 20, length = 4)
name [](start = 20, length = 4)
use solution_name here and define a CLIArgumentType for reuse #Closed
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.
resource_group [](start = 42, length = 14)
resource_group [](start = 42, length = 14)
resource_group_name #Closed
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.
name [](start = 42, length = 4)
name [](start = 42, length = 4)
solution_name #Closed
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.
use update (which is a patch) instead. #Closed
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.
add supports_no_wait=True for create/update/delete #Closed
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.
Could the example be more specific for some arguments such a publisher, product? #Closed
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.
location=None to make it optional as it can be extracted from resource group. #Closed
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.
plan_name is same as solution name? #Closed
09f5681 to
ee45bfb
Compare
3d4990f to
c1101e9
Compare
| } | ||
| } | ||
|
|
||
| return client.create_or_update(resource_group_name=resource_group_name, solution_name=solution_name, parameters=body) |
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.
wrap with "sdk_no_wait", like "return sdk_no_wait(no_wait, client.create_or_update, resource_group_name, cluster_name, cluster_instance)". Please also update other commands that support no wait. #Closed
| helps['monitor log-analytics solution'] = """ | ||
| type: group | ||
| short-summary: Commands to manage monitor log-analytics solution. | ||
| """ |
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.
No need to indent the help. Ctrl+A to select all, then press Shift+Tab to remove the indentations.
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.
Got it~
jsntcy
left a comment
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.
![]()
|
|
||
| if not is_valid_resource_id(namespace.workspace_resource_id): | ||
| raise CLIError('usage error: --workspace-resource-id is invalid') | ||
| raise CLIError('usage error: --workspace is invalid, it must be name of resource id of workspace') |
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.
or
Close: Azure/azure-cli#12706
This checklist is used to make sure that common guidelines for a pull request are followed.
General Guidelines
azdev style <YOUR_EXT>locally? (pip install azdevrequired)python scripts/ci/test_index.py -qlocally?For new extensions:
About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your PR is merged into master branch, a new PR will be created to update
src/index.jsonautomatically.The precondition is to put your code inside this repo and upgrade the version in the PR but do not modify
src/index.json.