-
Notifications
You must be signed in to change notification settings - Fork 4k
[Az.Network] Updated New-AzNetworkWatcherPacketCaptureV2 command and added a new sub command 'New-AzPacketCaptureSettingsConfig' for Network watcher Packet capture include ring buffer change. #27880
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
Merged
vidai-msft
merged 19 commits into
Azure:main
from
v-sapanchal:spanchal/pcap_ring_buffer_new
Jun 20, 2025
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
6985eb0
Added a new command and related update for continuous capture and its…
v-sapanchal 5b063be
Added help doc, mapped in network command,Test case and session records
v-sapanchal b7522c4
Merge branch 'main' into spanchal/pcap_ring_buffer_new
v-sapanchal 0ec50e2
Modified the change log as per the new offerings
v-sapanchal 252f3cd
StaticAnalysis issue
v-sapanchal 2d2eccc
reverted to the old file format and added our records for supress
v-sapanchal 2df74d7
Added some Test assert regarding capture settings
v-sapanchal 7afeea3
Resolve PR comments
v-sapanchal 83ca579
Added a test case for VM ring buffer
v-sapanchal ae9d955
Updated the md file new-aznetworkwatcherpacketcapturev2
v-sapanchal cafad9a
Add confirmation for default values in true case and updated the defa…
v-sapanchal ae7418b
resolve the PR comments for changing the default information and remo…
v-sapanchal 34a8a33
Resolved PR comments
v-sapanchal 50d50bf
revert the file as before changes anything
v-sapanchal 4f47bef
revert exampleissue file
v-sapanchal 1a3e3e7
Change for test failing in PS build
v-sapanchal 3d08897
resolve static analysis issue for SupportsShouldProcess
v-sapanchal 8a28d8e
Suppress the command error for ShouldProcess
v-sapanchal 32c6ee3
nit, PR comment
v-sapanchal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4,484 changes: 4,484 additions & 0 deletions
4,484
...etwork.Test.ScenarioTests.NetworkWatcherAPITests/TestPacketCaptureVMSSWithRingBuffer.json
Large diffs are not rendered by default.
Oops, something went wrong.
3,167 changes: 3,167 additions & 0 deletions
3,167
....Network.Test.ScenarioTests.NetworkWatcherAPITests/TestPacketCaptureVMWithRingBuffer.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// ---------------------------------------------------------------------------------- | ||
// | ||
// Copyright Microsoft Corporation | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// ---------------------------------------------------------------------------------- | ||
|
||
namespace Microsoft.Azure.Commands.Network.Models | ||
{ | ||
using Microsoft.WindowsAzure.Commands.Common.Attributes; | ||
using Newtonsoft.Json; | ||
|
||
public class PSPacketCaptureSettings | ||
{ | ||
/// <summary> | ||
/// Gets or sets number of file count. | ||
/// </summary> | ||
[JsonProperty(Order = 1)] | ||
[Ps1Xml(Target = ViewControl.Table)] | ||
public int? FileCount { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets number of bytes captured per packet. | ||
/// </summary> | ||
[JsonProperty(Order = 2)] | ||
[Ps1Xml(Target = ViewControl.Table)] | ||
public long? FileSizeInBytes { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets maximum duration of the capture session in seconds. | ||
/// </summary> | ||
[JsonProperty(Order = 3)] | ||
[Ps1Xml(Target = ViewControl.Table)] | ||
public int? SessionTimeLimitInSeconds { get; set; } | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.