Network security group support for private endpoints subnet (#333)
This commit is contained in:
Родитель
e069a4b6ac
Коммит
2a6042d38c
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче