<?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 Re: Configure cluster single node with service principal in Azure in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/configure-cluster-single-node-with-service-principal-in-azure/m-p/101980#M40922</link>
    <description>&lt;P&gt;Hello has this user been given with the CAN_BIND permission?&lt;BR /&gt;&lt;BR /&gt;The manager role for SP does not allow users to run notebooks on behalf this clusters as this is part of private preview, to make if work you need to grant can bind permission as follow:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;$ vim grant-service-principal.json
{
  "access_control_list": [
    {
      "user_name": "{username}",
      "permission_level": "CAN_BIND"
    }
  ]
}

$ curl -X PATCH  {DATABRICKS_HOST}/api/2.0/permissions/service-principals/{SP_ID} --header "Content-type: application/json" --header "Authorization: Bearer ${DATABRICKS_TOKEN}" --data &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/29981"&gt;@Grant&lt;/a&gt;-service-principal.json
&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 12 Dec 2024 19:48:42 GMT</pubDate>
    <dc:creator>Walter_C</dc:creator>
    <dc:date>2024-12-12T19:48:42Z</dc:date>
    <item>
      <title>Configure cluster single node with service principal in Azure</title>
      <link>https://community.databricks.com/t5/data-engineering/configure-cluster-single-node-with-service-principal-in-azure/m-p/101978#M40920</link>
      <description>&lt;P&gt;Hi! We can configure a cluster single node with single user as service principal using this command:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;databricks clusters create --json '
{
    "cluster_name": "my-cluster",
    "spark_version": "13.3.x-scala2.12",
    "node_type_id": "Standard_DS3_v2",
    "driver_node_type_id": "Standard_DS3_v2",
    "single_user_name": "&amp;lt;CLIENTID&amp;gt;",
    "data_security_mode": "SINGLE_USER",
    "runtime_engine": "STANDARD",
    "num_workers": 0,
    "spark_conf": {
     "spark.databricks.cluster.profile":"singleNode",
     "spark.master":"local[*, 4]"
    },
    "custom_tags": {
        "ResourceClass":"SingleNode"
    }
}
'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;But when we want to use this cluster in a notebook we get this error:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Single-user check failed: user '&amp;lt;reserved&amp;gt;@&amp;lt;reserved&amp;gt;.com' attempted to run a command on single-user cluster &amp;lt;CLUSTERID&amp;gt;, but the single user of this cluster is '&amp;lt;CLIENTID&amp;gt;'&lt;/LI-CODE&gt;&lt;P&gt;We want to get a cluster with a service principal because we know that multiple people may use the cluster with the correct configuration. What we don't know is that it may be missing configuration. In Settings -&amp;gt; Identity and Access -&amp;gt; Service Principal -&amp;gt; Permissions we are managers and users.&lt;/P&gt;&lt;P&gt;If anyone knows we would appreciate it&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 19:22:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/configure-cluster-single-node-with-service-principal-in-azure/m-p/101978#M40920</guid>
      <dc:creator>wallystart</dc:creator>
      <dc:date>2024-12-12T19:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Configure cluster single node with service principal in Azure</title>
      <link>https://community.databricks.com/t5/data-engineering/configure-cluster-single-node-with-service-principal-in-azure/m-p/101980#M40922</link>
      <description>&lt;P&gt;Hello has this user been given with the CAN_BIND permission?&lt;BR /&gt;&lt;BR /&gt;The manager role for SP does not allow users to run notebooks on behalf this clusters as this is part of private preview, to make if work you need to grant can bind permission as follow:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;$ vim grant-service-principal.json
{
  "access_control_list": [
    {
      "user_name": "{username}",
      "permission_level": "CAN_BIND"
    }
  ]
}

$ curl -X PATCH  {DATABRICKS_HOST}/api/2.0/permissions/service-principals/{SP_ID} --header "Content-type: application/json" --header "Authorization: Bearer ${DATABRICKS_TOKEN}" --data &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/29981"&gt;@Grant&lt;/a&gt;-service-principal.json
&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 12 Dec 2024 19:48:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/configure-cluster-single-node-with-service-principal-in-azure/m-p/101980#M40922</guid>
      <dc:creator>Walter_C</dc:creator>
      <dc:date>2024-12-12T19:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: Configure cluster single node with service principal in Azure</title>
      <link>https://community.databricks.com/t5/data-engineering/configure-cluster-single-node-with-service-principal-in-azure/m-p/102310#M41065</link>
      <description>&lt;P&gt;Hello Walter_C! Thanks for your answer&lt;/P&gt;&lt;P&gt;We ran this command but got the error "&lt;SPAN&gt;ENDPOINT_NOT_FOUND&lt;/SPAN&gt;". Do we need to activate any preview function? Do we have any mistake?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="wallystart_0-1734384923666.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/13566i43832538CDB21C85/image-size/medium?v=v2&amp;amp;px=400" role="button" title="wallystart_0-1734384923666.png" alt="wallystart_0-1734384923666.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2024 21:36:24 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/configure-cluster-single-node-with-service-principal-in-azure/m-p/102310#M41065</guid>
      <dc:creator>wallystart</dc:creator>
      <dc:date>2024-12-16T21:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Configure cluster single node with service principal in Azure</title>
      <link>https://community.databricks.com/t5/data-engineering/configure-cluster-single-node-with-service-principal-in-azure/m-p/102314#M41066</link>
      <description>&lt;P&gt;Can you share an screenshot of the cluster on the UI side please, if you are creating a cluster assigned to a service principal this means that it should have already the Private preview enabled.&lt;/P&gt;
&lt;P&gt;If the private preview is not enabled it will throw the error message you got.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2024 23:17:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/configure-cluster-single-node-with-service-principal-in-azure/m-p/102314#M41066</guid>
      <dc:creator>Walter_C</dc:creator>
      <dc:date>2024-12-16T23:17:19Z</dc:date>
    </item>
  </channel>
</rss>

