Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/databricks/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,19 @@

Release History
===============
1.3.1
+++++
* Upgrading to 2026-01-01 API version
* Set default SKU to Premium for serverless workspaces

1.3.0
+++++
* Revert the change of upgrading to 2026-01-01 API version

1.2.1
+++++
* Upgrade API version from 2025-10-01-preview to 2026-01-01
Comment on lines +14 to +16
Copy link

Copilot AI Feb 17, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The HISTORY.rst entry for version 1.2.1 states "Upgrade API version from 2025-10-01-preview to 2026-01-01", but this appears to be misleading since version 1.3.0 shows this change was reverted. This historical entry might confuse users about which version actually contains the API upgrade. Consider clarifying that 1.2.1 was never released or that the change was reverted in 1.3.0 and re-applied in 1.3.1.

Suggested change
1.2.1
+++++
* Upgrade API version from 2025-10-01-preview to 2026-01-01
1.2.1 (unreleased)
+++++
* Upgrade API version from 2025-10-01-preview to 2026-01-01 (this change was later reverted in 1.3.0 and re-applied in 1.3.1)

Copilot uses AI. Check for mistakes.

1.2.0
+++++
* az databricks workspace create: Add --compute-mode to set the compute mode for the workspace. Allowed values: 'Hybrid', 'Serverless'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ class Create(AAZCommand):
"""

_aaz_info = {
"version": "2025-10-01-preview",
"version": "2026-01-01",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.databricks/accessconnectors/{}", "2025-10-01-preview"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.databricks/accessconnectors/{}", "2026-01-01"],
]
}

Expand Down Expand Up @@ -173,7 +173,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2025-10-01-preview",
"api-version", "2026-01-01",
required=True,
),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ class Delete(AAZCommand):
"""

_aaz_info = {
"version": "2025-10-01-preview",
"version": "2026-01-01",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.databricks/accessconnectors/{}", "2025-10-01-preview"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.databricks/accessconnectors/{}", "2026-01-01"],
]
}

Expand Down Expand Up @@ -146,7 +146,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2025-10-01-preview",
"api-version", "2026-01-01",
required=True,
),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ class List(AAZCommand):
"""

_aaz_info = {
"version": "2025-10-01-preview",
"version": "2026-01-01",
"resources": [
["mgmt-plane", "/subscriptions/{}/providers/microsoft.databricks/accessconnectors", "2025-10-01-preview"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.databricks/accessconnectors", "2025-10-01-preview"],
["mgmt-plane", "/subscriptions/{}/providers/microsoft.databricks/accessconnectors", "2026-01-01"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.databricks/accessconnectors", "2026-01-01"],
]
}

Expand Down Expand Up @@ -119,7 +119,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2025-10-01-preview",
"api-version", "2026-01-01",
required=True,
),
}
Expand Down Expand Up @@ -288,7 +288,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2025-10-01-preview",
"api-version", "2026-01-01",
required=True,
),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ class Show(AAZCommand):
"""

_aaz_info = {
"version": "2025-10-01-preview",
"version": "2026-01-01",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.databricks/accessconnectors/{}", "2025-10-01-preview"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.databricks/accessconnectors/{}", "2026-01-01"],
]
}

Expand Down Expand Up @@ -124,7 +124,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2025-10-01-preview",
"api-version", "2026-01-01",
required=True,
),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ class Update(AAZCommand):
"""

_aaz_info = {
"version": "2025-10-01-preview",
"version": "2026-01-01",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.databricks/accessconnectors/{}", "2025-10-01-preview"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.databricks/accessconnectors/{}", "2026-01-01"],
]
}

Expand Down Expand Up @@ -171,7 +171,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2025-10-01-preview",
"api-version", "2026-01-01",
required=True,
),
}
Expand Down Expand Up @@ -270,7 +270,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2025-10-01-preview",
"api-version", "2026-01-01",
required=True,
),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Wait(AAZWaitCommand):

_aaz_info = {
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.databricks/accessconnectors/{}", "2025-10-01-preview"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.databricks/accessconnectors/{}", "2026-01-01"],
]
}

Expand Down Expand Up @@ -120,7 +120,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2025-10-01-preview",
"api-version", "2026-01-01",
required=True,
),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ class Create(AAZCommand):
"""

_aaz_info = {
"version": "2025-10-01-preview",
"version": "2026-01-01",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.databricks/workspaces/{}", "2025-10-01-preview"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.databricks/workspaces/{}", "2026-01-01"],
]
}

Expand Down Expand Up @@ -440,7 +440,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2025-10-01-preview",
"api-version", "2026-01-01",
required=True,
),
}
Expand Down Expand Up @@ -628,8 +628,14 @@ def content(self):
if require_infrastructure_encryption is not None:
require_infrastructure_encryption.set_prop("value", AAZBoolType, ".require_infrastructure_encryption", typ_kwargs={"flags": {"required": True}})

# Set sku.name to 'premium' if sku is not set and compute_mode is 'Serverless'
sku = _builder.get(".sku")
if sku is not None:
compute_mode = args.get("compute_mode", None)
sku_value = args.get("sku", None)
if (not sku_value or sku_value == "") and compute_mode and compute_mode.lower() == "serverless":
Copy link

Copilot AI Feb 17, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The condition checking whether to set a default SKU uses (not sku_value or sku_value == ""). This condition will evaluate to True for various falsy values including 0, False, empty list, etc., which may not be the intended behavior. Consider using a more explicit check like if sku_value is None or sku_value == "" or if not sku_value alone (without the redundant or sku_value == "" part) to make the intention clearer. The current condition with both checks suggests uncertainty about what values to expect.

Suggested change
if (not sku_value or sku_value == "") and compute_mode and compute_mode.lower() == "serverless":
if (sku_value is None or sku_value == "") and compute_mode and compute_mode.lower() == "serverless":

Copilot uses AI. Check for mistakes.
if sku is not None:
sku.set_const("name", "premium", AAZStrType)
elif sku is not None:
sku.set_prop("name", AAZStrType, ".sku", typ_kwargs={"flags": {"required": True}})

tags = _builder.get(".tags")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ class Delete(AAZCommand):
"""

_aaz_info = {
"version": "2025-10-01-preview",
"version": "2026-01-01",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.databricks/workspaces/{}", "2025-10-01-preview"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.databricks/workspaces/{}", "2026-01-01"],
]
}

Expand Down Expand Up @@ -155,7 +155,7 @@ def query_parameters(self):
"forceDeletion", self.ctx.args.force_deletion,
),
**self.serialize_query_param(
"api-version", "2025-10-01-preview",
"api-version", "2026-01-01",
required=True,
),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ class List(AAZCommand):
"""

_aaz_info = {
"version": "2025-10-01-preview",
"version": "2026-01-01",
"resources": [
["mgmt-plane", "/subscriptions/{}/providers/microsoft.databricks/workspaces", "2025-10-01-preview"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.databricks/workspaces", "2025-10-01-preview"],
["mgmt-plane", "/subscriptions/{}/providers/microsoft.databricks/workspaces", "2026-01-01"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.databricks/workspaces", "2026-01-01"],
]
}

Expand Down Expand Up @@ -119,7 +119,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2025-10-01-preview",
"api-version", "2026-01-01",
required=True,
),
}
Expand Down Expand Up @@ -596,7 +596,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2025-10-01-preview",
"api-version", "2026-01-01",
required=True,
),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ class Show(AAZCommand):
"""

_aaz_info = {
"version": "2025-10-01-preview",
"version": "2026-01-01",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.databricks/workspaces/{}", "2025-10-01-preview"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.databricks/workspaces/{}", "2026-01-01"],
]
}

Expand Down Expand Up @@ -124,7 +124,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2025-10-01-preview",
"api-version", "2026-01-01",
required=True,
),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ class Update(AAZCommand):
"""

_aaz_info = {
"version": "2025-10-01-preview",
"version": "2026-01-01",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.databricks/workspaces/{}", "2025-10-01-preview"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.databricks/workspaces/{}", "2026-01-01"],
]
}

Expand Down Expand Up @@ -483,7 +483,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2025-10-01-preview",
"api-version", "2026-01-01",
required=True,
),
}
Expand Down Expand Up @@ -582,7 +582,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2025-10-01-preview",
"api-version", "2026-01-01",
required=True,
),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Wait(AAZWaitCommand):

_aaz_info = {
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.databricks/workspaces/{}", "2025-10-01-preview"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.databricks/workspaces/{}", "2026-01-01"],
]
}

Expand Down Expand Up @@ -120,7 +120,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2025-10-01-preview",
"api-version", "2026-01-01",
required=True,
),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ class List(AAZCommand):
"""

_aaz_info = {
"version": "2025-10-01-preview",
"version": "2026-01-01",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.databricks/workspaces/{}/outboundnetworkdependenciesendpoints", "2025-10-01-preview"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.databricks/workspaces/{}/outboundnetworkdependenciesendpoints", "2026-01-01"],
]
}

Expand Down Expand Up @@ -120,7 +120,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2025-10-01-preview",
"api-version", "2026-01-01",
required=True,
),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ class Create(AAZCommand):
"""

_aaz_info = {
"version": "2025-10-01-preview",
"version": "2026-01-01",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.databricks/workspaces/{}/privateendpointconnections/{}", "2025-10-01-preview"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.databricks/workspaces/{}/privateendpointconnections/{}", "2026-01-01"],
]
}

Expand Down Expand Up @@ -183,7 +183,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2025-10-01-preview",
"api-version", "2026-01-01",
required=True,
),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ class Delete(AAZCommand):
"""

_aaz_info = {
"version": "2025-10-01-preview",
"version": "2026-01-01",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.databricks/workspaces/{}/privateendpointconnections/{}", "2025-10-01-preview"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.databricks/workspaces/{}/privateendpointconnections/{}", "2026-01-01"],
]
}

Expand Down Expand Up @@ -153,7 +153,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2025-10-01-preview",
"api-version", "2026-01-01",
required=True,
),
}
Expand Down
Loading
Loading