Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bastion: updated API and added features #396

Merged
merged 4 commits into from
Nov 7, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading