Skip to content

Commit 4a96e0c

Browse files
authored
Merge pull request Azure#10389 from Khushboo-Baheti/BastionFix
Subnet name AzureBastionSubnet should be case insensitive
2 parents 2e52060 + b0773ae commit 4a96e0c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Network/Network/ChangeLog.md

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

2121
## Upcoming Release
2222
* Fix incorrect parameter description in `New-AzApplicationGatewaySku` reference documentation
23+
* Fix required subnet with name AzureBastionSubnet in `PSBastion` can be case insensitive
2324

2425
## Version 1.15.0
2526
* Add new cmdlet Get-AzAvailableServiceAlias which can be called to get the aliases that can be used for Service Endpoint Policies.

src/Network/Network/Models/Bastion/PSBastion.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public void Allocate(PSVirtualNetwork virtualNetwork, PSPublicIpAddress publicIp
5353
PSSubnet BastionSubnet = null;
5454
try
5555
{
56-
BastionSubnet = virtualNetwork.Subnets.Single(subnet => BastionSubnetName.Equals(subnet.Name));
56+
BastionSubnet = virtualNetwork.Subnets.Single(subnet => BastionSubnetName.Equals(subnet.Name, StringComparison.OrdinalIgnoreCase));
5757
}
5858

5959
catch (InvalidOperationException)

0 commit comments

Comments
 (0)