Conversation
️✔️AzureCLI-FullTest
|
|
| rule | cmd_name | rule_message | suggest_message |
|---|---|---|---|
| network network-watcher packet-capture create | cmd network network-watcher packet-capture create update parameter time_limit_in_seconds: removed property aaz_default=18000 |
||
| network network-watcher packet-capture create | cmd network network-watcher packet-capture create update parameter time_limit_in_seconds: removed property default=18000 |
||
| network network-watcher packet-capture create | cmd network network-watcher packet-capture create update parameter total_bytes_per_session: removed property aaz_default=1073741824 |
||
| network network-watcher packet-capture create | cmd network network-watcher packet-capture create update parameter total_bytes_per_session: removed property default=1073741824 |
||
| network network-watcher packet-capture wait | cmd network network-watcher packet-capture wait removed |
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
|
The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR. Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions). pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>
|
az network network-watcher packet-capture create: Make ring buffer command working
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
There was a problem hiding this comment.
Pull Request Overview
This PR removes default values for the time-limit and total-bytes parameters in the packet capture create command to support the ring buffer functionality.
- Removed default value for --time-limit-in-seconds
- Removed default value for --total-bytes/--total-bytes-per-session
Comments suppressed due to low confidence (2)
src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/network_watcher/packet_capture/_create.py:116
- [nitpick] Consider adding an inline comment explaining the rationale for removing the default value for --time-limit-in-seconds to help future maintainers understand this change.
default=18000,
src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/network_watcher/packet_capture/_create.py:125
- [nitpick] Consider adding an inline comment clarifying the removal of the default value for --total-bytes/--total-bytes-per-session to support continuous-capture scenarios.
default=1073741824,
|
Please do not merge it now, need to get reviewed by team and then we are good. |
|
Please merge this PR, review part is done. |
Related command
az network network-watcher packet-capture create'
Description
Removed the default values from old parameters to make ring buffer command working, as continuous-capture nullable parameter.
Testing Guide
az network network-watcher packet-capture create --network-watcher-name "NetworkWatcher_region" --packet-capture-name "clitestpcap24" --resource-group "RGName" --storage-location '{"storageId":"/subscriptions/SubId/resourceGroups/rg/providers/Microsoft.Storage/storageAccounts/SA"}' --target "/subscriptions/SubId/resourceGroups/rg/providers/Microsoft.Compute/virtualMachineScaleSets/vmssname" --continuous-capture true --capture-settings '{"FileCount":"10","FileSizeInBytes":"102400 ","SessionTimeLimitInSeconds":"100"}'
History Notes
[Component Name 1] BREAKING CHANGE:
az command a: Make some customer-facing breaking change[Component Name 2]
az command b: Add some customer-facing featureThis 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.