Network security group support for private endpoints subnet (#333)

This commit is contained in:
Senthuran Sivananthan 2022-08-17 17:59:13 -04:00 коммит произвёл GitHub
Родитель e069a4b6ac
Коммит 2a6042d38c
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 24 добавлений и 2 удалений

Просмотреть файл

@ -209,6 +209,14 @@ resource nsg 'Microsoft.Network/networkSecurityGroups@2021-02-01' = [for subnet
}
}]
module nsgPrivateEndpoints '../../azresources/network/nsg/nsg-empty.bicep' = {
name: 'deploy-nsg-private-endpoints'
params: {
name: '${network.subnets.privateEndpoints.name}Nsg'
location: location
}
}
module nsgDatabricks '../../azresources/network/nsg/nsg-databricks.bicep' = {
name: 'deploy-nsg-databricks'
params: {
@ -273,7 +281,10 @@ var requiredSubnets = [
name: network.subnets.privateEndpoints.name
properties: {
addressPrefix: network.subnets.privateEndpoints.addressPrefix
privateEndpointNetworkPolicies: 'Disabled'
privateEndpointNetworkPolicies: 'Enabled'
networkSecurityGroup: {
id: nsgPrivateEndpoints.outputs.nsgId
}
serviceEndpoints: [
{
service: 'Microsoft.Storage'

Просмотреть файл

@ -230,6 +230,14 @@ resource nsg 'Microsoft.Network/networkSecurityGroups@2021-02-01' = [for subnet
}
}]
module nsgPrivateEndpoints '../../azresources/network/nsg/nsg-empty.bicep' = {
name: 'deploy-nsg-private-endpoints'
params: {
name: '${network.subnets.privateEndpoints.name}Nsg'
location: location
}
}
module nsgDatabricks '../../azresources/network/nsg/nsg-databricks.bicep' = {
name: 'deploy-nsg-databricks'
params: {
@ -310,7 +318,10 @@ var requiredSubnets = [
name: network.subnets.privateEndpoints.name
properties: {
addressPrefix: network.subnets.privateEndpoints.addressPrefix
privateEndpointNetworkPolicies: 'Disabled'
privateEndpointNetworkPolicies: 'Enabled'
networkSecurityGroup: {
id: nsgPrivateEndpoints.outputs.nsgId
}
}
}
{