Azure / bicep-registry-modules

Bicep registry modules
MIT License
507 stars 353 forks source link

[AVM Module Issue]: Private Endpoint creation in Databricks fails with Index out of Bounds error #3784

Open Gossef opened 7 hours ago

Gossef commented 7 hours ago

Check for previous/existing GitHub issues

Issue Type?

Bug

Module Name

avm/res/databricks/workspace

(Optional) Module Version

0.8.5

Description

The below deployment of a Databricks workspace fails whenever the Private Endpoint is added. If the entire privateEndpoints section is removed, it deploys properly. When it's added it throws this error: 'The language expression property array index '1' is out of bounds.'

What are we doing wrong, or is the module broken?

module workspace 'br/public:avm/res/databricks/workspace:0.8.5' = {
  name: 'workspaceDeployment'
  params: {
    // Required params
    name: 'dbw-emc-hdp-${environment}-weu-001'
    // Non-required params
    location: location
    skuName: 'premium'
    accessConnectorResourceId: databricksAccessConnector.id
    privateEndpoints: [
      {
        privateDnsZoneGroup: {
          privateDnsZoneGroupConfigs: [
            {
              privateDnsZoneResourceId: privateDnsZoneDatabricks.id
            }
          ]
        }
        service: 'databricks_ui_api'
        subnetResourceId: subnetPrivateDatabricks.id
        tags: {
          Environment: environment
          Role: 'DeploymentValidation'
        }
      }
    ]
    tags: {
      Environment: environment
      'hidden-title': 'AVM bouwblokken development'
      Role: 'DeploymentValidation'
      Application: 'Databricks'
      Maintainer: 'Team Platform'
      Contact: 'healthdataplatform@erasmusmc.nl'
    }
  }
}

(Optional) Correlation Id

No response

microsoft-github-policy-service[bot] commented 7 hours ago

[!IMPORTANT] The "Needs: Triage :mag:" label must be removed once the triage process is complete!

[!TIP] For additional guidance on how to triage this issue/PR, see the BRM Issue Triage documentation.

avm-team-linter[bot] commented 7 hours ago

@Gossef, thanks for submitting this issue for the avm/res/databricks/workspace module!

[!IMPORTANT] A member of the @Azure/avm-res-databricks-workspace-module-owners-bicep or @Azure/avm-res-databricks-workspace-module-contributors-bicep team will review it soon!