-
Notifications
You must be signed in to change notification settings - Fork 1
/
bastion.bicep
47 lines (40 loc) · 1.26 KB
/
bastion.bicep
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
@description('Specifies the location of AKS cluster.')
param location string = resourceGroup().location
//@description('Specifies the Bastion subnet IP prefix. This prefix must be within vnet IP prefix address space.')
//param bastionSubnetAddressPrefix string = '10.1.1.0/26'
//@description('Specifies the name of the AKS cluster.')
//param aksClusterName string = 'aks-${uniqueString(resourceGroup().id)}'
@description('Specifies the name of the Azure Bastion resource.')
param bastionHostName string
@description('Specifies the id of the Azure Bastion subnet resource id.')
param bastionSubnetId string
var bastionPublicIpAddressName = '${bastionHostName}PublicIp'
resource bastionPublicIpAddress 'Microsoft.Network/publicIPAddresses@2020-08-01' = {
name: bastionPublicIpAddressName
location: location
sku: {
name: 'Standard'
}
properties: {
publicIPAllocationMethod: 'Static'
}
}
resource bastionHost 'Microsoft.Network/bastionHosts@2020-08-01' = {
name: bastionHostName
location: location
properties: {
ipConfigurations: [
{
name: 'IpConf'
properties: {
subnet: {
id: bastionSubnetId
}
publicIPAddress: {
id: bastionPublicIpAddress.id
}
}
}
]
}
}