Skip to content

Commit

Permalink
Add Bastion native client support (#607)
Browse files Browse the repository at this point in the history
Co-authored-by: Jack Tracey <[email protected]>
Co-authored-by: Juan Gallardo <[email protected]>
  • Loading branch information
3 people authored Aug 14, 2023
1 parent 800ae63 commit d96464b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ parPublicIpSuffix | No | Optional Suffix for Public IPs. Include a precedi
parAzBastionEnabled | No | Switch to enable/disable Azure Bastion deployment.
parAzBastionName | No | Name Associated with Bastion Service.
parAzBastionSku | No | Azure Bastion SKU.
parAzBastionTunneling | No | Switch to enable/disable Bastion native client support. This is only supported when the Standard SKU is used for Bastion as documented here: https://learn.microsoft.com/azure/bastion/native-client
parAzBastionNsgName | No | Name for Azure Bastion Subnet NSG.
parDdosEnabled | No | Switch to enable/disable DDoS Network Protection deployment.
parDdosPlanName | No | DDoS Plan Name.
Expand Down Expand Up @@ -137,6 +138,14 @@ Azure Bastion SKU.

- Allowed values: `Basic`, `Standard`

### parAzBastionTunneling

![Parameter Setting](https://img.shields.io/badge/parameter-optional-green?style=flat-square)

Switch to enable/disable Bastion native client support. This is only supported when the Standard SKU is used for Bastion as documented here: https://learn.microsoft.com/azure/bastion/native-client

- Default value: `False`

### parAzBastionNsgName

![Parameter Setting](https://img.shields.io/badge/parameter-optional-green?style=flat-square)
Expand Down Expand Up @@ -404,6 +413,9 @@ outHubVirtualNetworkId | string |
"parAzBastionSku": {
"value": "Standard"
},
"parAzBastionTunneling": {
"value": false
},
"parAzBastionNsgName": {
"value": "nsg-AzureBastionSubnet"
},
Expand Down
4 changes: 4 additions & 0 deletions infra-as-code/bicep/modules/hubNetworking/hubNetworking.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ param parAzBastionName string = '${parCompanyPrefix}-bastion'
])
param parAzBastionSku string = 'Standard'

@sys.description('Switch to enable/disable Bastion native client support. This is only supported when the Standard SKU is used for Bastion as documented here: https://learn.microsoft.com/azure/bastion/native-client')
param parAzBastionTunneling bool = false

@sys.description('Name for Azure Bastion Subnet NSG.')
param parAzBastionNsgName string = 'nsg-AzureBastionSubnet'

Expand Down Expand Up @@ -526,6 +529,7 @@ resource resBastion 'Microsoft.Network/bastionHosts@2023-02-01' = if (parAzBasti
}
properties: {
dnsName: uniqueString(resourceGroup().id)
enableTunneling: (parAzBastionSku == 'Standard' && parAzBastionTunneling) ? parAzBastionTunneling : false
ipConfigurations: [
{
name: 'IpConf'
Expand Down

0 comments on commit d96464b

Please sign in to comment.