Skip to content

Commit 923c041

Browse files
authored
[Network] - Add DefaultOutboundConnectivityEnabled property in PSNetworkInterface (#26512)
* [Network] - Add DefaultOutboundConnectivityEnabled property in PSNetworkInterface * update changelog.md
1 parent ab5124e commit 923c041

File tree

4 files changed

+775
-579
lines changed

4 files changed

+775
-579
lines changed

src/Network/Network.Test/ScenarioTests/NetworkInterfaceTests.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ function Test-NetworkInterfaceCRUD
147147
Assert-AreEqual $expectedNic.IpConfigurations[0].PublicIpAddress.Id $actualNic.IpConfigurations[0].PublicIpAddress.Id
148148
Assert-AreEqual $expectedNic.IpConfigurations[0].Subnet.Id $actualNic.IpConfigurations[0].Subnet.Id
149149
Assert-NotNull $expectedNic.IpConfigurations[0].PrivateIpAddress
150+
Assert-NotNull $expectedNic.DefaultOutboundConnectivityEnabled
150151
Assert-AreEqual $expectedNic.IpConfigurations[0].PrivateIpAllocationMethod $actualNic.IpConfigurations[0].PrivateIpAllocationMethod
151152

152153
$expectedNic = Get-AzNetworkInterface -ResourceId $actualNic.Id

src/Network/Network.Test/SessionRecords/Commands.Network.Test.ScenarioTests.NetworkInterfaceTests/TestNetworkInterfaceCRUD.json

Lines changed: 770 additions & 579 deletions
Large diffs are not rendered by default.

src/Network/Network/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
--->
2020

2121
## Upcoming Release
22+
* Added `DefaultOutboundConnectivityEnabled` property in PSNetworkInterface
2223

2324
## Version 7.10.0
2425
* Onboarded Azure Virtual Network Manager Cmdlets for UDR and NSG Management

src/Network/Network/Models/PSNetworkInterface.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ public class PSNetworkInterface : PSTopLevelResource, INetworkInterfaceReference
5858
[Ps1Xml(Target = ViewControl.Table)]
5959
public bool VnetEncryptionSupported { get; set; }
6060

61+
[Ps1Xml(Target = ViewControl.Table)]
62+
public bool DefaultOutboundConnectivityEnabled { get; set; }
63+
6164
[Ps1Xml(Target = ViewControl.Table)]
6265
public string AuxiliaryMode { get; set; }
6366

0 commit comments

Comments
 (0)