Skip to content

Commit

Permalink
Small updates to test & alignment with latest subnet structure
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderSehr committed Oct 29, 2024
1 parent 2669ad1 commit 4b0ec2f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 18 deletions.
18 changes: 2 additions & 16 deletions avm/ptn/data/private-analytical-workspace/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -273,28 +273,14 @@ var subnets = concat(
name: subnetNameDbwFrontend
addressPrefix: subnetDbwFrontendDefaultAddressPrefix
networkSecurityGroupResourceId: nsgDbwFrontend.outputs.resourceId
delegations: [
{
name: 'Microsoft.Databricks/workspaces'
properties: {
serviceName: 'Microsoft.Databricks/workspaces'
}
}
]
delegation: 'Microsoft.Databricks/workspaces'
}
{
// a container subnet (sometimes called the private subnet)
name: subnetNameDbwBackend
addressPrefix: subnetDbwBackendDefaultAddressPrefix
networkSecurityGroupResourceId: nsgDbwBackend.outputs.resourceId
delegations: [
{
name: 'Microsoft.Databricks/workspaces'
properties: {
serviceName: 'Microsoft.Databricks/workspaces'
}
}
]
delegation: 'Microsoft.Databricks/workspaces'
}
]
: []
Expand Down
4 changes: 2 additions & 2 deletions avm/ptn/data/private-analytical-workspace/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"_generator": {
"name": "bicep",
"version": "0.30.23.60470",
"templateHash": "5240327924338956496"
"templateHash": "12082535146794341987"
},
"name": "private-analytical-workspace",
"description": "This pattern module enables you to use Azure services that are typical for data analytics solutions. The goal is to help data scientists establish an environment for data analysis simply. It is secure by default for enterprise use. Data scientists should not spend much time on how to build infrastructure solution. They should mainly concentrate on the data analytics components they require for the solution.",
Expand Down Expand Up @@ -637,7 +637,7 @@
"value": "[parameters('lock')]"
},
"subnets": {
"value": "[concat(createArray(createObject('name', variables('subnetNamePrivateLink'), 'addressPrefix', variables('subnetPrivateLinkDefaultAddressPrefix'), 'networkSecurityGroupResourceId', reference('nsgPrivateLink').outputs.resourceId.value)), if(parameters('enableDatabricks'), createArray(createObject('name', variables('subnetNameDbwFrontend'), 'addressPrefix', variables('subnetDbwFrontendDefaultAddressPrefix'), 'networkSecurityGroupResourceId', reference('nsgDbwFrontend').outputs.resourceId.value, 'delegations', createArray(createObject('name', 'Microsoft.Databricks/workspaces', 'properties', createObject('serviceName', 'Microsoft.Databricks/workspaces')))), createObject('name', variables('subnetNameDbwBackend'), 'addressPrefix', variables('subnetDbwBackendDefaultAddressPrefix'), 'networkSecurityGroupResourceId', reference('nsgDbwBackend').outputs.resourceId.value, 'delegations', createArray(createObject('name', 'Microsoft.Databricks/workspaces', 'properties', createObject('serviceName', 'Microsoft.Databricks/workspaces'))))), createArray()))]"
"value": "[concat(createArray(createObject('name', variables('subnetNamePrivateLink'), 'addressPrefix', variables('subnetPrivateLinkDefaultAddressPrefix'), 'networkSecurityGroupResourceId', reference('nsgPrivateLink').outputs.resourceId.value)), if(parameters('enableDatabricks'), createArray(createObject('name', variables('subnetNameDbwFrontend'), 'addressPrefix', variables('subnetDbwFrontendDefaultAddressPrefix'), 'networkSecurityGroupResourceId', reference('nsgDbwFrontend').outputs.resourceId.value, 'delegation', 'Microsoft.Databricks/workspaces'), createObject('name', variables('subnetNameDbwBackend'), 'addressPrefix', variables('subnetDbwBackendDefaultAddressPrefix'), 'networkSecurityGroupResourceId', reference('nsgDbwBackend').outputs.resourceId.value, 'delegation', 'Microsoft.Databricks/workspaces')), createArray()))]"
},
"tags": {
"value": "[parameters('tags')]"
Expand Down

0 comments on commit 4b0ec2f

Please sign in to comment.