Skip to content

Commit

Permalink
Added return type boolean log for Remove Flow Log Command (#26958)
Browse files Browse the repository at this point in the history
Co-authored-by: Riddhi Nilawar <[email protected]>
  • Loading branch information
riddhinilawar and Riddhi Nilawar authored Jan 6, 2025
1 parent 705bbe3 commit e6c98e5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/Network/Network/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
--->

## Upcoming Release
* Updated `Remove-AzNetworkWatcherFlowLog` command to return boolean value
* Updated vnv and ipam cmdlets
* Allowed TA interval to be set as 0 incase TA is disabled
* Onboarded Azure Virtual Network Manager Cmdlets for IpamPool
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,20 @@ public override void Execute()
this.Name,
() =>
{
this.FlowLogs.Delete(this.ResourceGroupName, this.NetworkWatcherName, this.Name);

if (PassThru)
try
{
this.FlowLogs.Delete(this.ResourceGroupName, this.NetworkWatcherName, this.Name);
WriteObject(true);
}
catch (Exception ex)
{
WriteObject(false);
throw ex;
}
if (PassThru)
{
WriteObject("PassThru: " + true);
}
});
}
}
Expand Down

0 comments on commit e6c98e5

Please sign in to comment.