<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Mounting adls gen2 from databricks RBAC issue in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/mounting-adls-gen2-from-databricks-rbac-issue/m-p/45201#M5826</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to mount my Gen 2 storage account in databricks. I have added permission of Storage blob data contributor to the storage account. But I am getting below error:&lt;BR /&gt;Invalid permissions on the specified KeyVault &lt;A href="https://kvmigrationnew.vault.azure.net/" target="_blank"&gt;https://kvmigrationnew.vault.azure.net/&lt;/A&gt;. Wrapped Message: Status code 403, {"error":{"code":"Forbidden","message":"Caller is not authorized to perform action on resource.\r\nIf role assignments, deny assignments or role definitions were changed recently, please observe propagation time.\r\nCaller: name=AzureDatabricks;appid=123abcdbhjdllajddaddd;iss=&lt;A href="https://sts.windows.net/984433r41f5ssadfgfsf/\" target="_blank"&gt;https://sts.windows.net/984433r41f5ssadfgfsf/\&lt;/A&gt;r\nAction: 'Microsoft.KeyVault/vaults/secrets/getSecret/action'\r\nResource: '/subscriptions/xxxx-xxx-xxx/resourcegroups/rsggen2demo/providers/microsoft.keyvault/vaults/kvmigrationnew/secrets/clientid'\r\nAssignment: (not found)\r\nDecisionReason: 'DeniedWithNoValidRBAC' \r\nVault: kvmigrationnew;location=eastus2\r\n","innererror":{"code":"ForbiddenByRbac"}}}&lt;BR /&gt;------------------------------------&lt;BR /&gt;Configuration&lt;BR /&gt;---------------&lt;BR /&gt;Resource group: rsggen2demo&lt;BR /&gt;Storage acc name: stggen2demo&lt;BR /&gt;Keyvault: kvmigrationnew&lt;BR /&gt;DB Scope: gen2mig&lt;BR /&gt;&lt;BR /&gt;Code:&lt;BR /&gt;adlsAccountName = "stggen2demo"&lt;BR /&gt;adlsContainerName = "output"&lt;BR /&gt;adlsFolderName = "schemas_new"&lt;BR /&gt;mountPoint = "/mnt/schemas_new"&lt;BR /&gt;&lt;BR /&gt;# Application (Client) ID&lt;BR /&gt;applicationId = dbutils.secrets.get(scope="gen2mig",key="ClientID")&lt;BR /&gt;&lt;BR /&gt;# Application (Client) Secret Key&lt;BR /&gt;authenticationKey = dbutils.secrets.get(scope="gen2mig",key="ClientSecret")&lt;BR /&gt;&lt;BR /&gt;# Directory (Tenant) ID&lt;BR /&gt;tenandId = dbutils.secrets.get(scope="gen2mig",key="TenantID")&lt;BR /&gt;&lt;BR /&gt;endpoint = "&lt;A href="https://login.microsoftonline.com/" target="_blank"&gt;https://login.microsoftonline.com/&lt;/A&gt;" + tenandId + "/oauth2/token"&lt;BR /&gt;source = "abfss://" + adlsContainerName + "@" + adlsAccountName + ".dfs.core.windows.net/" + adlsFolderName&lt;BR /&gt;&lt;BR /&gt;# Connecting using Service Principal secrets and OAuth&lt;BR /&gt;configs = {"fs.azure.account.auth.type": "OAuth",&lt;BR /&gt;"fs.azure.account.oauth.provider.type": "org.apache.hadoop.fs.azurebfs.oauth2.ClientCredsTokenProvider",&lt;BR /&gt;"fs.azure.account.oauth2.client.id": applicationId,&lt;BR /&gt;"fs.azure.account.oauth2.client.secret": authenticationKey,&lt;BR /&gt;"fs.azure.account.oauth2.client.endpoint": endpoint}&lt;BR /&gt;&lt;BR /&gt;# Mount ADLS Storage to DBFS only if the directory is not already mounted&lt;BR /&gt;if not any(mount.mountPoint == mountPoint for mount in dbutils.fs.mounts()):&lt;BR /&gt;dbutils.fs.mount(&lt;BR /&gt;source = source,&lt;BR /&gt;mount_point = mountPoint,&lt;BR /&gt;extra_configs = configs)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Sep 2023 05:29:53 GMT</pubDate>
    <dc:creator>keer1392</dc:creator>
    <dc:date>2023-09-18T05:29:53Z</dc:date>
    <item>
      <title>Mounting adls gen2 from databricks RBAC issue</title>
      <link>https://community.databricks.com/t5/get-started-discussions/mounting-adls-gen2-from-databricks-rbac-issue/m-p/45201#M5826</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to mount my Gen 2 storage account in databricks. I have added permission of Storage blob data contributor to the storage account. But I am getting below error:&lt;BR /&gt;Invalid permissions on the specified KeyVault &lt;A href="https://kvmigrationnew.vault.azure.net/" target="_blank"&gt;https://kvmigrationnew.vault.azure.net/&lt;/A&gt;. Wrapped Message: Status code 403, {"error":{"code":"Forbidden","message":"Caller is not authorized to perform action on resource.\r\nIf role assignments, deny assignments or role definitions were changed recently, please observe propagation time.\r\nCaller: name=AzureDatabricks;appid=123abcdbhjdllajddaddd;iss=&lt;A href="https://sts.windows.net/984433r41f5ssadfgfsf/\" target="_blank"&gt;https://sts.windows.net/984433r41f5ssadfgfsf/\&lt;/A&gt;r\nAction: 'Microsoft.KeyVault/vaults/secrets/getSecret/action'\r\nResource: '/subscriptions/xxxx-xxx-xxx/resourcegroups/rsggen2demo/providers/microsoft.keyvault/vaults/kvmigrationnew/secrets/clientid'\r\nAssignment: (not found)\r\nDecisionReason: 'DeniedWithNoValidRBAC' \r\nVault: kvmigrationnew;location=eastus2\r\n","innererror":{"code":"ForbiddenByRbac"}}}&lt;BR /&gt;------------------------------------&lt;BR /&gt;Configuration&lt;BR /&gt;---------------&lt;BR /&gt;Resource group: rsggen2demo&lt;BR /&gt;Storage acc name: stggen2demo&lt;BR /&gt;Keyvault: kvmigrationnew&lt;BR /&gt;DB Scope: gen2mig&lt;BR /&gt;&lt;BR /&gt;Code:&lt;BR /&gt;adlsAccountName = "stggen2demo"&lt;BR /&gt;adlsContainerName = "output"&lt;BR /&gt;adlsFolderName = "schemas_new"&lt;BR /&gt;mountPoint = "/mnt/schemas_new"&lt;BR /&gt;&lt;BR /&gt;# Application (Client) ID&lt;BR /&gt;applicationId = dbutils.secrets.get(scope="gen2mig",key="ClientID")&lt;BR /&gt;&lt;BR /&gt;# Application (Client) Secret Key&lt;BR /&gt;authenticationKey = dbutils.secrets.get(scope="gen2mig",key="ClientSecret")&lt;BR /&gt;&lt;BR /&gt;# Directory (Tenant) ID&lt;BR /&gt;tenandId = dbutils.secrets.get(scope="gen2mig",key="TenantID")&lt;BR /&gt;&lt;BR /&gt;endpoint = "&lt;A href="https://login.microsoftonline.com/" target="_blank"&gt;https://login.microsoftonline.com/&lt;/A&gt;" + tenandId + "/oauth2/token"&lt;BR /&gt;source = "abfss://" + adlsContainerName + "@" + adlsAccountName + ".dfs.core.windows.net/" + adlsFolderName&lt;BR /&gt;&lt;BR /&gt;# Connecting using Service Principal secrets and OAuth&lt;BR /&gt;configs = {"fs.azure.account.auth.type": "OAuth",&lt;BR /&gt;"fs.azure.account.oauth.provider.type": "org.apache.hadoop.fs.azurebfs.oauth2.ClientCredsTokenProvider",&lt;BR /&gt;"fs.azure.account.oauth2.client.id": applicationId,&lt;BR /&gt;"fs.azure.account.oauth2.client.secret": authenticationKey,&lt;BR /&gt;"fs.azure.account.oauth2.client.endpoint": endpoint}&lt;BR /&gt;&lt;BR /&gt;# Mount ADLS Storage to DBFS only if the directory is not already mounted&lt;BR /&gt;if not any(mount.mountPoint == mountPoint for mount in dbutils.fs.mounts()):&lt;BR /&gt;dbutils.fs.mount(&lt;BR /&gt;source = source,&lt;BR /&gt;mount_point = mountPoint,&lt;BR /&gt;extra_configs = configs)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2023 05:29:53 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/mounting-adls-gen2-from-databricks-rbac-issue/m-p/45201#M5826</guid>
      <dc:creator>keer1392</dc:creator>
      <dc:date>2023-09-18T05:29:53Z</dc:date>
    </item>
  </channel>
</rss>

