Skip to content

Commit f63dbbd

Browse files
jmegha123VeryEarly
andauthored
Allowing TA interval to be set as 0 when TA is disabled (#26740)
* Allowing TA interval to be set as 0 when TA is disabled * Adding changeLog * Update ChangeLog.md --------- Co-authored-by: Yabo Hu <[email protected]>
1 parent 022dc29 commit f63dbbd

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

src/Network/Network/ChangeLog.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
--->
2020

2121
## Upcoming Release
22+
* Allowed TA interval to be set as 0 incase TA is disabled
2223
* Onboarded Azure Virtual Network Manager Cmdlets for IpamPool
2324
- `Get-AzNetworkManagerAssociatedResourcesList`
2425
- `Get-AzNetworkManagerIpamPool`
@@ -1336,4 +1337,4 @@
13361337
- New-AzApplicationGatewaySslCertificate
13371338
- Set-AzApplicationGatewaySslCertificate
13381339
- New-AzApplicationGateway cmdlet updated with optional parameter -UserAssignedIdentityId, -UserAssignedIdentity
1339-
* Add MaxCapacity property in ApplicationGatewayAutoscaleConfiguration
1340+
* Add MaxCapacity property in ApplicationGatewayAutoscaleConfiguration

src/Network/Network/NetworkWatcher/FlowLog/FlowLogBaseCmdlet.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public void ValidateFlowLogParameters(string targetResourceId, string storageId,
105105
throw new PSArgumentException(Properties.Resources.TrafficAnalyticsWorkspaceResourceIdIsMissing);
106106
}
107107

108-
if (trafficAnalyticsInterval != null && trafficAnalyticsInterval != 10 && trafficAnalyticsInterval != 60)
108+
if (trafficAnalyticsInterval != null && trafficAnalyticsInterval != 10 && trafficAnalyticsInterval != 60 && trafficAnalyticsInterval != 0)
109109
{
110110
throw new PSArgumentException(Properties.Resources.InvalidTrafficAnalyticsInterval);
111111
}

src/Network/Network/NetworkWatcher/FlowLog/NewAzNetworkWatcherFlowLogCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ public class NewAzNetworkWatcherFlowLogCommand : FlowLogBaseCmdlet
185185
HelpMessage = "The interval in minutes which would decide how frequently TA service should do flow analytics.",
186186
ParameterSetName = SetByLocationWithTA)]
187187
[ValidateNotNull]
188-
[ValidateRange(1, int.MaxValue)]
188+
[ValidateRange(0, int.MaxValue)]
189189
public int? TrafficAnalyticsInterval { get; set; }
190190

191191
[Parameter(

src/Network/Network/NetworkWatcher/FlowLog/SetAzNetworkWatcherFlowLogCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ public class SetAzNetworkWatcherFlowLogCommand : FlowLogBaseCmdlet
513513
HelpMessage = "The interval in minutes which would decide how frequently TA service should do flow analytics.",
514514
ParameterSetName = SetByResourceIdWithTA)]
515515
[ValidateNotNull]
516-
[ValidateRange(1, int.MaxValue)]
516+
[ValidateRange(0, int.MaxValue)]
517517
public int? TrafficAnalyticsInterval { get; set; }
518518

519519
[Parameter(

0 commit comments

Comments
 (0)