-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[Network] az network network-watcher packet-capture
: Support to Packet capture include ring buffer
#30784
base: dev
Are you sure you want to change the base?
[Network] az network network-watcher packet-capture
: Support to Packet capture include ring buffer
#30784
Conversation
️✔️AzureCLI-FullTest
|
|
rule | cmd_name | rule_message | suggest_message |
---|---|---|---|
network network-watcher packet-capture | sub group network network-watcher packet-capture added |
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>
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
az network network-watcher packet-capture
: Support to Packet capture include ring buffer
@v-sapanchal plz kindly fix the linter, thx |
Related command
'az network network-watcher packet-capture'
Description
These commands require that both Azure Network Watcher is enabled for the VMs region and that AzureNetworkWatcherExtension is enabled on the VM.
For more information visit
https://learn.microsoft.com/en-us/azure/network-watcher/network-watcher-packet-capture-manage-cli.
Testing Guide
create
az network network-watcher packet-capture create --network-watcher-name "NetworkWatcher_eastus2euap" --packet-capture-name "clitestpcap" --resource-group "NetworkWatcherRG" --storage-location '{"storageId": "/subscriptions//resourceGroups//providers/Microsoft.Storage/storageAccounts/", "filePath": "C:\Captures\testByCli.cap"}' --target "/subscriptions/*****/resourceGroups//providers/Microsoft.Compute/virtualMachines/testVmName"
Stop
az network network-watcher packet-capture stop --network-watcher-name "NetworkWatcher_eastus2euap" --packet-capture-name "clitestpacp3" --resource-group "NetworkWatcherRG"
Show
az network network-watcher packet-capture show --network-watcher-name "NetworkWatcher_eastus2euap" --packet-capture-name "clitestpacp" --resource-group "NetworkWatcherRG"
Query-Status
az network network-watcher packet-capture query-status --network-watcher-name "NetworkWatcher_eastus2euap" --packet-capture-name "clitestpacp3" --resource-group "NetworkWatcherRG"
List
az network network-watcher packet-capture list --network-watcher-name "NetworkWatcher_eastus2euap" --resource-group "NetworkWatcherRG"
Delete
az network network-watcher packet-capture delete --network-watcher-name "NetworkWatcher_eastus2euap" --packet-capture-name "clitestpacp" --resource-group "NetworkWatcherRG"
It will prompt for confirmation, like
Are you sure you want to perform this operation? (y/n): y
All these above commands worked, and resources got created/deleted.
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 feature
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.