<?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: Unable to create Cluster via REST API in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/unable-to-create-cluster-via-rest-api/m-p/113927#M44682</link>
    <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/155706"&gt;@jeffn&lt;/a&gt;&amp;nbsp; - I was able to successfully create a cluster using the same Azure documentation, both via the REST API and the Databricks SDK. Hopefully it helps.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from databricks.sdk import WorkspaceClient
from databricks.sdk.service.compute import CreateCluster
w = WorkspaceClient(
    host="&amp;lt;workspace_url&amp;gt;",
    token="&amp;lt;databricks_token&amp;gt;"
)

cluster = w.clusters.create(
    cluster_name="test-cluster-api",
    spark_version="14.3.x-scala2.12",
    node_type_id="Standard_DS3_v2",
    driver_node_type_id="Standard_DS3_v2",
    num_workers=1,
    autotermination_minutes=30,
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Mar 2025 19:04:13 GMT</pubDate>
    <dc:creator>Panda</dc:creator>
    <dc:date>2025-03-28T19:04:13Z</dc:date>
    <item>
      <title>Unable to create Cluster via REST API</title>
      <link>https://community.databricks.com/t5/data-engineering/unable-to-create-cluster-via-rest-api/m-p/113908#M44674</link>
      <description>&lt;P&gt;I have tried all 3 of the example payloads listed here to create a Compute Cluster:&amp;nbsp;&lt;A href="https://docs.databricks.com/api/azure/workspace/clusters/create" target="_blank" rel="noopener"&gt;https://docs.databricks.com/api/azure/workspace/clusters/create&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;All return the same error:&amp;nbsp;&lt;STRONG&gt;Invalid JSON given in the body of the request - expected a map&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;Other Compute Cluster REST APIs work just fine (List clusters, etc). Also, this documentation seems to be incorrect for the Azure flavor of Databricks. Has anyone else run into this issue and solved it?&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>Fri, 28 Mar 2025 15:15:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/unable-to-create-cluster-via-rest-api/m-p/113908#M44674</guid>
      <dc:creator>jeffn</dc:creator>
      <dc:date>2025-03-28T15:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create Cluster via REST API</title>
      <link>https://community.databricks.com/t5/data-engineering/unable-to-create-cluster-via-rest-api/m-p/113927#M44682</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/155706"&gt;@jeffn&lt;/a&gt;&amp;nbsp; - I was able to successfully create a cluster using the same Azure documentation, both via the REST API and the Databricks SDK. Hopefully it helps.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from databricks.sdk import WorkspaceClient
from databricks.sdk.service.compute import CreateCluster
w = WorkspaceClient(
    host="&amp;lt;workspace_url&amp;gt;",
    token="&amp;lt;databricks_token&amp;gt;"
)

cluster = w.clusters.create(
    cluster_name="test-cluster-api",
    spark_version="14.3.x-scala2.12",
    node_type_id="Standard_DS3_v2",
    driver_node_type_id="Standard_DS3_v2",
    num_workers=1,
    autotermination_minutes=30,
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2025 19:04:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/unable-to-create-cluster-via-rest-api/m-p/113927#M44682</guid>
      <dc:creator>Panda</dc:creator>
      <dc:date>2025-03-28T19:04:13Z</dc:date>
    </item>
  </channel>
</rss>

