Skip to content
Draft
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
4 changes: 2 additions & 2 deletions src/Databricks/Databricks.Autorest/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - Databricks")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.10.0")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.10.0")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.10.1")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.10.1")]
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
[assembly: System.CLSCompliantAttribute(false)]
8 changes: 4 additions & 4 deletions src/Databricks/Databricks.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ For information on how to develop for `Az.Databricks`, see [how-to.md](how-to.md
> see https://aka.ms/autorest

``` yaml
commit: 8dc708fdac9cb97b346ddb38106ac16e668f64cd
tag: package-2024-05-01
commit: 6ba91c339cf3023acc57e349986221933b40d687
tag: package-2025-10-01-preview
require:
- $(this-folder)/../../readme.azure.noprofile.md
- $(repo)/specification/databricks/resource-manager/readme.md
- $(repo)/specification/databricks/resource-manager/Microsoft.Databricks/Databricks/readme.md
try-require:
- $(repo)/specification/databricks/resource-manager/readme.powershell.md

module-version: 1.2.0
module-version: 1.11.0
title: Databricks
subject-prefix: $(service-name)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "accessConnectors",
"apiVersion": "2024-05-01",
"apiVersion": "2025-10-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.databricks"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "workspaces/virtualNetworkPeerings",
"apiVersion": "2024-05-01",
"apiVersion": "2025-10-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.databricks"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "workspaces",
"apiVersion": "2024-05-01",
"apiVersion": "2025-10-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.databricks"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Creates a new workspace.
.Description
Creates a new workspace.
.Example
New-AzDatabricksWorkspace -Name azps-databricks-workspace-t1 -ResourceGroupName azps_test_gp_db -Location eastus -ManagedResourceGroupName azps_test_gp_kv_t1 -Sku Premium
New-AzDatabricksWorkspace -Name azps-databricks-workspace-t1 -ResourceGroupName azps_test_gp_db -Location eastus -ComputeMode Hybrid -ManagedResourceGroupName azps_test_gp_kv_t1 -Sku Premium
.Example
$dlg = New-AzDelegation -Name dbrdl -ServiceName "Microsoft.Databricks/workspaces"
$rdpRule = New-AzNetworkSecurityRuleConfig -Name azps-network-security-rule -Description "Allow RDP" -Access Allow -Protocol Tcp -Direction Inbound -Priority 100 -SourceAddressPrefix Internet -SourcePortRange * -DestinationAddressPrefix * -DestinationPortRange 3389
Expand All @@ -32,13 +32,13 @@ $testVN = New-AzVirtualNetwork -Name azps-virtual-network -ResourceGroupName azp
$vNetResId = (Get-AzVirtualNetwork -Name azps-virtual-network -ResourceGroupName azps_test_gp_db).Subnets[0].Id
$ruleSet = New-AzKeyVaultNetworkRuleSetObject -DefaultAction Allow -Bypass AzureServices -IpAddressRange "110.0.1.0/24" -VirtualNetworkResourceId $vNetResId
New-AzKeyVault -ResourceGroupName azps_test_gp_db -VaultName azps-keyvault -NetworkRuleSet $ruleSet -Location eastus -Sku 'Premium' -EnablePurgeProtection
New-AzDatabricksWorkspace -Name azps-databricks-workspace-t2 -ResourceGroupName azps_test_gp_db -Location eastus -ManagedResourceGroupName azps_test_gp_kv_t2 -VirtualNetworkId $testVN.Id -PrivateSubnetName $priSubnet.Name -PublicSubnetName $pubSubnet.Name -Sku Premium
New-AzDatabricksWorkspace -Name azps-databricks-workspace-t2 -ResourceGroupName azps_test_gp_db -Location eastus -ComputeMode Hybrid -ManagedResourceGroupName azps_test_gp_kv_t2 -VirtualNetworkId $testVN.Id -PrivateSubnetName $priSubnet.Name -PublicSubnetName $pubSubnet.Name -Sku Premium
.Example
New-AzDatabricksWorkspace -Name azps-databricks-workspace-t3 -ResourceGroupName azps_test_gp_db -Location eastus -PrepareEncryption -ManagedResourceGroupName azps_test_gp_kv_t3 -Sku premium
New-AzDatabricksWorkspace -Name azps-databricks-workspace-t3 -ResourceGroupName azps_test_gp_db -Location eastus -ComputeMode Hybrid -PrepareEncryption -ManagedResourceGroupName azps_test_gp_kv_t3 -Sku premium


.Outputs
Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20240501.IWorkspace
Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20251001Preview.IWorkspace
.Notes
COMPLEX PARAMETER PROPERTIES

Expand All @@ -51,8 +51,8 @@ AUTHORIZATION <IWorkspaceProviderAuthorization[]>: The workspace provider author
https://learn.microsoft.com/powershell/module/az.databricks/new-azdatabricksworkspace
#>
function New-AzDatabricksWorkspace {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20240501.IWorkspace])]
[Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.OutputBreakingChangeAttribute("Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20240501.IWorkspace", "15.0.0", "2.0.0", "2025/11/03", ReplacementCmdletOutputType = "Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.IWorkspace", DeprecatedOutputProperties = ("PrivateEndpointConnection, ComplianceSecurityProfileComplianceStandard, Authorization"), NewOutputProperties = ("PrivateEndpointConnection, ComplianceSecurityProfileComplianceStandard, Authorization The types of the properties will be changed from object to 'List'"))]
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20251001Preview.IWorkspace])]
[Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.OutputBreakingChangeAttribute("Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20251001Preview.IWorkspace", "15.0.0", "2.0.0", "2025/11/03", ReplacementCmdletOutputType = "Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.IWorkspace", DeprecatedOutputProperties = ("PrivateEndpointConnection, ComplianceSecurityProfileComplianceStandard, Authorization"), NewOutputProperties = ("PrivateEndpointConnection, ComplianceSecurityProfileComplianceStandard, Authorization The types of the properties will be changed from object to 'List'"))]
[CmdletBinding(DefaultParameterSetName = 'CreateExpanded', PositionalBinding = $false, SupportsShouldProcess, ConfirmImpact = 'Medium')]
param(
[Parameter(Mandatory)]
Expand Down Expand Up @@ -83,6 +83,14 @@ function New-AzDatabricksWorkspace {
# The geo-location where the resource lives
${Location},

[Parameter()]
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Databricks.Support.ComputeMode])]
[Microsoft.Azure.PowerShell.Cmdlets.Databricks.Category('Body')]
[System.String]
# The compute mode of the workspace.
# Possible values (case-insensitive): Hybrid, Serverless
${ComputeMode},

[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Databricks.Category('Body')]
[System.String]
Expand All @@ -98,7 +106,7 @@ function New-AzDatabricksWorkspace {
[Parameter()]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.Databricks.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20240501.IWorkspaceProviderAuthorization[]]
[Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20251001Preview.IWorkspaceProviderAuthorization[]]
# The workspace provider authorizations.
# To construct, see NOTES section for AUTHORIZATION properties and create a hash table.
${Authorization},
Expand Down Expand Up @@ -453,16 +461,27 @@ function New-AzDatabricksWorkspace {
{
$PSBoundParameters.Add('ComplianceSecurityProfileValue', $EnhancedSecurityCompliance)
}
if (-not $PSBoundParameters.ContainsKey('ManagedResourceGroupName')) {
$randomStr = -join ((48..57) + (97..122) | Get-Random -Count 13 | % { [char]$_ })
$manageResourceGroupName = "databricks-rg-{0}-{1}" -f $PSBoundParameters["Name"], $randomStr
# Set default ComputeMode to Hybrid if not specified
if (-not $PSBoundParameters.ContainsKey('ComputeMode')) {
$PSBoundParameters.Add('ComputeMode', 'Hybrid')
}
else {
$manageResourceGroupName = $PSBoundParameters["ManagedResourceGroupName"]
$null = $PSBoundParameters.Remove("ManagedResourceGroupName")

if ($PSBoundParameters["ComputeMode"].ToString() -ne "Serverless") {
if (-not $PSBoundParameters.ContainsKey('ManagedResourceGroupName')) {
$randomStr = -join ((48..57) + (97..122) | Get-Random -Count 13 | % { [char]$_ })
$manageResourceGroupName = "databricks-rg-{0}-{1}" -f $PSBoundParameters["Name"], $randomStr
}
else {
$manageResourceGroupName = $PSBoundParameters["ManagedResourceGroupName"]
$null = $PSBoundParameters.Remove("ManagedResourceGroupName")
}
$ManagedResourceGroupId = "/subscriptions/{0}/resourceGroups/{1}" -f (Get-AzContext).Subscription.Id, $manageResourceGroupName
$null = $PSBoundParameters.Add("ManagedResourceGroupId", $ManagedResourceGroupId)
} else {
if ($PSBoundParameters.ContainsKey('ManagedResourceGroupName')) {
$null = $PSBoundParameters.Remove("ManagedResourceGroupName")
}
}
$ManagedResourceGroupId = "/subscriptions/{0}/resourceGroups/{1}" -f (Get-AzContext).Subscription.Id, $manageResourceGroupName
$null = $PSBoundParameters.Add("ManagedResourceGroupId", $ManagedResourceGroupId)
Az.Databricks.internal\New-AzDatabricksWorkspace @PSBoundParameters
}
catch {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ Create an in-memory object for WorkspaceProviderAuthorization.
Create an in-memory object for WorkspaceProviderAuthorization.

.Outputs
Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20240501.WorkspaceProviderAuthorization
Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20251001Preview.WorkspaceProviderAuthorization
.Link
https://learn.microsoft.com/powershell/module/Az.Databricks/new-AzDatabricksWorkspaceProviderAuthorizationObject
#>
function New-AzDatabricksWorkspaceProviderAuthorizationObject {
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20240501.WorkspaceProviderAuthorization')]
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20251001Preview.WorkspaceProviderAuthorization')]
[CmdletBinding(PositionalBinding=$false)]
Param(

Expand All @@ -39,7 +39,7 @@ function New-AzDatabricksWorkspaceProviderAuthorizationObject {
)

process {
$Object = [Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20240501.WorkspaceProviderAuthorization]::New()
$Object = [Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20251001Preview.WorkspaceProviderAuthorization]::New()

if ($PSBoundParameters.ContainsKey('PrincipalId')) {
$Object.PrincipalId = $PrincipalId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ Update-AzDatabricksVNetPeering -Name vnet-peering-t1 -WorkspaceName azps-databri
Get-AzDatabricksVNetPeering -WorkspaceName azps-databricks-workspace-t1 -ResourceGroupName azps_test_gp_db -Name vnet-peering-t1 | Update-AzDatabricksVNetPeering -AllowGatewayTransit $true

.Outputs
Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20240501.IVirtualNetworkPeering
Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20251001Preview.IVirtualNetworkPeering
.Link
https://learn.microsoft.com/powershell/module/az.databricks/update-azdatabricksvnetpeering
#>
function Update-AzDatabricksVNetPeering {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20240501.IVirtualNetworkPeering])]
[Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.OutputBreakingChangeAttribute("Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20240501.IVirtualNetworkPeering", "15.0.0", "2.0.0", "2025/11/03", ReplacementCmdletOutputType = "Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.IVirtualNetworkPeering", DeprecatedOutputProperties = ("DatabrickAddressSpaceAddressPrefix, RemoteAddressSpaceAddressPrefix 'System.String[]'"), NewOutputProperties = ("DatabrickAddressSpaceAddressPrefix, RemoteAddressSpaceAddressPrefix 'System.Collections.Generic.List`1[System.String]'"))]
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20251001Preview.IVirtualNetworkPeering])]
[Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.OutputBreakingChangeAttribute("Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20251001Preview.IVirtualNetworkPeering", "15.0.0", "2.0.0", "2025/11/03", ReplacementCmdletOutputType = "Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.IVirtualNetworkPeering", DeprecatedOutputProperties = ("DatabrickAddressSpaceAddressPrefix, RemoteAddressSpaceAddressPrefix 'System.String[]'"), NewOutputProperties = ("DatabrickAddressSpaceAddressPrefix, RemoteAddressSpaceAddressPrefix 'System.Collections.Generic.List`1[System.String]'"))]
[CmdletBinding(DefaultParameterSetName = 'UpdateExpanded', PositionalBinding = $false, SupportsShouldProcess, ConfirmImpact = 'Medium')]
param(
[Parameter(ParameterSetName = 'UpdateExpanded', Mandatory, HelpMessage = "The name of the VNetPeering.")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Update-AzDatabricksWorkspace -ResourceGroupName azps_test_gp_db -Name azps-datab
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.IDatabricksIdentity
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20240501.IWorkspace
Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20251001Preview.IWorkspace
.Notes
COMPLEX PARAMETER PROPERTIES

Expand All @@ -53,8 +53,8 @@ INPUTOBJECT <IDatabricksIdentity>: Identity Parameter
https://learn.microsoft.com/powershell/module/az.databricks/update-azdatabricksworkspace
#>
function Update-AzDatabricksWorkspace {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20240501.IWorkspace])]
[Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.OutputBreakingChangeAttribute("Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20240501.IWorkspace", "15.0.0", "2.0.0", "2025/11/03", ReplacementCmdletOutputType = "Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.IWorkspace", DeprecatedOutputProperties = ("PrivateEndpointConnection, ComplianceSecurityProfileComplianceStandard, Authorization"), NewOutputProperties = ("PrivateEndpointConnection, ComplianceSecurityProfileComplianceStandard, Authorization The types of the properties will be changed from object to 'List'"))]
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20251001Preview.IWorkspace])]
[Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.OutputBreakingChangeAttribute("Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20251001Preview.IWorkspace", "15.0.0", "2.0.0", "2025/11/03", ReplacementCmdletOutputType = "Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.IWorkspace", DeprecatedOutputProperties = ("PrivateEndpointConnection, ComplianceSecurityProfileComplianceStandard, Authorization"), NewOutputProperties = ("PrivateEndpointConnection, ComplianceSecurityProfileComplianceStandard, Authorization The types of the properties will be changed from object to 'List'"))]
[CmdletBinding(DefaultParameterSetName = 'UpdateExpanded', PositionalBinding = $false, SupportsShouldProcess, ConfirmImpact = 'Medium')]
param(
[Parameter(ParameterSetName = 'UpdateExpanded', Mandatory, HelpMessage = "The name of the workspace.")]
Expand Down Expand Up @@ -150,7 +150,7 @@ function Update-AzDatabricksWorkspace {
[Parameter()]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.Databricks.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20240501.IWorkspaceProviderAuthorization[]]
[Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20251001Preview.IWorkspaceProviderAuthorization[]]
# The workspace provider authorizations.
# To construct, see NOTES section for AUTHORIZATION properties and create a hash table.
${Authorization},
Expand Down Expand Up @@ -229,7 +229,7 @@ function Update-AzDatabricksWorkspace {

[Parameter(HelpMessage = "Resource tags.")]
[Microsoft.Azure.PowerShell.Cmdlets.Databricks.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Info(PossibleTypes = ([Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20240501.IWorkspaceUpdateTags]))]
[Microsoft.Azure.PowerShell.Cmdlets.Databricks.Runtime.Info(PossibleTypes = ([Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20251001Preview.IWorkspaceUpdateTags]))]
[System.Collections.Hashtable]
# Resource tags.
${Tag},
Expand Down
2 changes: 1 addition & 1 deletion src/Databricks/Databricks.Autorest/docs/Az.Databricks.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
Module Name: Az.Databricks
Module Guid: 4efb11ab-44ab-44b5-ab99-2ed56084fe57
Module Guid: e5580d25-60c4-4ee5-a5fd-61dde3b47bdc
Download Help Link: https://learn.microsoft.com/powershell/module/az.databricks
Help Version: 1.0.0.0
Locale: en-US
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20240501.IAccessConnector
### Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20251001Preview.IAccessConnector

## NOTES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20240501.IOutboundEnvironmentEndpoint
### Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20251001Preview.IOutboundEnvironmentEndpoint

## NOTES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20240501.IVirtualNetworkPeering
### Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20251001Preview.IVirtualNetworkPeering

## NOTES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20240501.IWorkspace
### Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20251001Preview.IWorkspace

## NOTES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20240501.IAccessConnector
### Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20251001Preview.IAccessConnector

## NOTES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20240501.IVirtualNetworkPeering
### Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20251001Preview.IVirtualNetworkPeering

## NOTES

Expand Down
Loading
Loading