Azure Databricks create secret scope fails when policy is there that disables public access

Jamie G 5 Reputation points
2023-02-15T07:16:36.06+00:00

In Azure Databricks we try to create a secret scope from our devops pipeline into a keyvault that is connected by private endpoint.

We setup the exception "Allow trusted Microsoft services to bypass this firewall".

But when the policy is assigned that disables public access for keyvaults, the secret scope cannot be created. When we exempt this resource, the secret scope creation works, after this we can delete the exemptions. Is this normal behaviour?

Kind regards,
Jamie

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,448 questions
Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
2,514 questions
Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
1,014 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Bhargava-MSFT 31,261 Reputation points Microsoft Employee Moderator
    2023-02-24T19:35:35.74+00:00

    Hello @Jamie G,

    Welcome to the MS Q&A platform.

    My understanding is that if you properly configure the private endpoint to the key vault and connect to the virtual network that your Azure Databricks workspace is connected to, then you shouldn't see any error.

    Can you please check the below?

    1. Check if the Key Vault is accessible from within the virtual network using Azure PowerShell?
    2. If you have already created the private endpoint connected to the virtual network, you can try updating the policy to allow access to the private endpoint. You can create a new policy that allows access to the private endpoint and assign it to the Key Vault. This will allow the Azure Databricks workspace to access the Key Vault via the private endpoint.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.