Skip to content

Commit

Permalink
bastion: updated API and added features (#396)
Browse files Browse the repository at this point in the history
Co-authored-by: Vallentyne
Co-authored-by: Barrington Willis <[email protected]>
Co-authored-by: Senthuran Sivananthan <[email protected]>
  • Loading branch information
3 people authored Nov 7, 2024
1 parent 1cdd2dc commit 4fb3c81
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion azresources/network/bastion.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,22 @@ param tags object = {}
@description('Subnet Resource Id.')
param subnetId string

// Bastion Features
@description('Copy and paste')
param enableFileCopy bool = true

@description('IP-based connection - available only for Standard SKU')
param enableIpConnect bool = false

@description('Kerberos authentication - available only for Basic and Standard SKU')
param enableKerberos bool = false

@description('Native client support - available only for Standard SKU')
param enableTunneling bool = false

@description('Shareable Link - available only for Standard SKU')
param enableShareableLink bool = false

resource bastionPublicIP 'Microsoft.Network/publicIPAddresses@2020-06-01' = {
location: location
name: '${name}PublicIp'
Expand All @@ -45,7 +61,7 @@ resource bastionPublicIP 'Microsoft.Network/publicIPAddresses@2020-06-01' = {
}
}

resource bastion 'Microsoft.Network/bastionHosts@2021-03-01' = {
resource bastion 'Microsoft.Network/bastionHosts@2023-09-01' = {
location: location
name: name
tags: tags
Expand All @@ -55,6 +71,11 @@ resource bastion 'Microsoft.Network/bastionHosts@2021-03-01' = {
properties: {
dnsName: uniqueString(resourceGroup().id)
scaleUnits: sku == 'Standard' ? scaleUnits : json('null')
enableFileCopy: enableFileCopy
enableIpConnect: enableIpConnect
enableKerberos: enableKerberos
enableTunneling: enableTunneling
enableShareableLink: enableShareableLink
ipConfigurations: [
{
name: 'IpConf'
Expand Down

0 comments on commit 4fb3c81

Please sign in to comment.