Skip to content

Commit

Permalink
Change default value of -PrivateEndpointNetworkPoliciesFlag and `-P…
Browse files Browse the repository at this point in the history
…rivateLinkServiceNetworkPoliciesFlag` to `Disabled`
  • Loading branch information
dingmeng-xue committed Jun 24, 2022
1 parent f8a293b commit ce9d68b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions src/Network/Network/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
- Added `CustomV2` to the validation set of `PolicyType`
- Added `TLSv1_3` to the validation set of `MinProtocolVersion`
- Removed validation for null or empty cipher suites list since there can be empty cipher suites list for min protocol version of tls1.3
* [Breaking Change] Changed default value of `-PrivateEndpointNetworkPoliciesFlag` and `-PrivateLinkServiceNetworkPoliciesFlag` to `Disabled` in `New-AzVirtualNetworkSubnetConfig` and `Add-AzVirtualNetworkSubnetConfig`

## Version 4.17.0
* Supported `Microsoft.Network/privateLinkServices` in `Get-AzPrivateEndpointConnection` [#16984].
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ public override void Execute()
subnet.Delegations = this.Delegation?.ToList();
}

subnet.PrivateEndpointNetworkPolicies = this.PrivateEndpointNetworkPoliciesFlag ?? "Enabled";
subnet.PrivateLinkServiceNetworkPolicies = this.PrivateLinkServiceNetworkPoliciesFlag ?? "Enabled";
subnet.PrivateEndpointNetworkPolicies = this.PrivateEndpointNetworkPoliciesFlag ?? "Disabled";
subnet.PrivateLinkServiceNetworkPolicies = this.PrivateLinkServiceNetworkPoliciesFlag ?? "Disabled";

this.VirtualNetwork.Subnets.Add(subnet);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ public override void Execute()
subnet.Delegations = this.Delegation?.ToList();
}

subnet.PrivateEndpointNetworkPolicies = this.PrivateEndpointNetworkPoliciesFlag ?? "Enabled";
subnet.PrivateLinkServiceNetworkPolicies = this.PrivateLinkServiceNetworkPoliciesFlag ?? "Enabled";
subnet.PrivateEndpointNetworkPolicies = this.PrivateEndpointNetworkPoliciesFlag ?? "Disabled";
subnet.PrivateLinkServiceNetworkPolicies = this.PrivateLinkServiceNetworkPoliciesFlag ?? "Disabled";

WriteObject(subnet);
}
Expand Down
4 changes: 2 additions & 2 deletions src/Network/Network/help/Add-AzVirtualNetworkSubnetConfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ Accept wildcard characters: False
```
### -PrivateEndpointNetworkPoliciesFlag
Configure to enable or disable applying network policies on private endpoint in the subnet.
Configure to enable or disable applying network policies on private endpoint in the subnet. Default value is Disabled.
```yaml
Type: System.String
Expand All @@ -201,7 +201,7 @@ Accept wildcard characters: False
```
### -PrivateLinkServiceNetworkPoliciesFlag
Configure to enable or disable applying network policies on private link service in the subnet.
Configure to enable or disable applying network policies on private link service in the subnet. Default value is Disabled.
```yaml
Type: System.String
Expand Down
4 changes: 2 additions & 2 deletions src/Network/Network/help/New-AzVirtualNetworkSubnetConfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ Accept wildcard characters: False
```
### -PrivateEndpointNetworkPoliciesFlag
Configure to enable or disable applying network policies on private endpoint in the subnet.
Configure to enable or disable applying network policies on private endpoint in the subnet. Default value is Disabled.
```yaml
Type: System.String
Expand All @@ -213,7 +213,7 @@ Accept wildcard characters: False
```
### -PrivateLinkServiceNetworkPoliciesFlag
Configure to enable or disable applying network policies on private link service in the subnet.
Configure to enable or disable applying network policies on private link service in the subnet. Default value is Disabled.
```yaml
Type: System.String
Expand Down

0 comments on commit ce9d68b

Please sign in to comment.