Skip to content

Commit 19b7589

Browse files
Migrate Databricks from generation to main (#25388)
* Move Databricks to main * Update ChangeLog.md --------- Co-authored-by: NoriZC <[email protected]>
1 parent 70deec3 commit 19b7589

File tree

337 files changed

+12128
-4584
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

337 files changed

+12128
-4584
lines changed

src/Databricks/Databricks.Autorest/Az.Databricks.format.ps1xml

Lines changed: 240 additions & 72 deletions
Large diffs are not rendered by default.

src/Databricks/Databricks.Autorest/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ For information on how to develop for `Az.Databricks`, see [how-to.md](how-to.md
2828
> see https://aka.ms/autorest
2929
3030
``` yaml
31-
commit: a078cebc3964c8968d141906c613794ca0453861
31+
commit: 8dc708fdac9cb97b346ddb38106ac16e668f64cd
32+
tag: package-2024-05-01
3233
require:
3334
- $(this-folder)/../../readme.azure.noprofile.md
3435
- $(repo)/specification/databricks/resource-manager/readme.md

src/Databricks/Databricks.Autorest/UX/Microsoft.Databricks/accessConnectors.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"resourceType": "accessConnectors",
3-
"apiVersion": "2023-05-01",
3+
"apiVersion": "2024-05-01",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.databricks"
66
},
77
"commands": [
88
{
99
"name": "Get-AzDatabricksAccessConnector",
10-
"description": "Gets an azure databricks accessConnector.",
10+
"description": "Gets an Azure Databricks Access Connector.",
1111
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/accessConnectors/{connectorName}",
1212
"help": {
1313
"learnMore": {
@@ -25,7 +25,7 @@
2525
},
2626
"examples": [
2727
{
28-
"description": "Gets an azure databricks accessConnector.",
28+
"description": "Gets an Azure Databricks Access Connector.",
2929
"parameters": [
3030
{
3131
"name": "-Name",
@@ -45,7 +45,7 @@
4545
},
4646
{
4747
"name": "Remove-AzDatabricksAccessConnector",
48-
"description": "Deletes the azure databricks accessConnector.",
48+
"description": "Deletes the Azure Databricks Access Connector.",
4949
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/accessConnectors/{connectorName}",
5050
"help": {
5151
"learnMore": {
@@ -63,7 +63,7 @@
6363
},
6464
"examples": [
6565
{
66-
"description": "Deletes the azure databricks accessConnector.",
66+
"description": "Deletes the Azure Databricks Access Connector.",
6767
"parameters": [
6868
{
6969
"name": "-Name",

src/Databricks/Databricks.Autorest/UX/Microsoft.Databricks/workspaces-virtualNetworkPeerings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "workspaces/virtualNetworkPeerings",
3-
"apiVersion": "2023-02-01",
3+
"apiVersion": "2024-05-01",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.databricks"
66
},
Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "workspaces",
3-
"apiVersion": "2023-02-01",
3+
"apiVersion": "2024-05-01",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.databricks"
66
},
@@ -42,44 +42,6 @@
4242
]
4343
}
4444
]
45-
},
46-
{
47-
"name": "Remove-AzDatabricksWorkspace",
48-
"description": "Deletes the workspace.",
49-
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}",
50-
"help": {
51-
"learnMore": {
52-
"url": "https://learn.microsoft.com/powershell/module/az.databricks/remove-azdatabricksworkspace"
53-
},
54-
"parameterSets": [
55-
{
56-
"parameters": [
57-
"-Name <String>",
58-
"-ResourceGroupName <String>",
59-
"[-SubscriptionId <String>]"
60-
]
61-
}
62-
]
63-
},
64-
"examples": [
65-
{
66-
"description": "Deletes the workspace.",
67-
"parameters": [
68-
{
69-
"name": "-Name",
70-
"value": "[Path.workspaceName]"
71-
},
72-
{
73-
"name": "-ResourceGroupName",
74-
"value": "[Path.resourceGroupName]"
75-
},
76-
{
77-
"name": "-SubscriptionId",
78-
"value": "[Path.subscriptionId]"
79-
}
80-
]
81-
}
82-
]
8345
}
8446
]
8547
}

src/Databricks/Databricks.Autorest/build-module.ps1

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
1313
# is regenerated.
1414
# ----------------------------------------------------------------------------------
15-
param([switch]$Isolated, [switch]$Run, [switch]$Test, [switch]$Docs, [switch]$Pack, [switch]$Code, [switch]$Release, [switch]$Debugger, [switch]$NoDocs)
15+
param([switch]$Isolated, [switch]$Run, [switch]$Test, [switch]$Docs, [switch]$Pack, [switch]$Code, [switch]$Release, [switch]$Debugger, [switch]$NoDocs, [Switch]$DisableAfterBuildTasks)
1616
$ErrorActionPreference = 'Stop'
1717

1818
if($PSEdition -ne 'Core') {
@@ -169,4 +169,14 @@ if (Test-Path (Join-Path $PSScriptRoot 'generate-portal-ux.ps1'))
169169
. (Join-Path $PSScriptRoot 'generate-portal-ux.ps1')
170170
}
171171

172+
if (-not $DisableAfterBuildTasks){
173+
$afterBuildTasksPath = Join-Path $PSScriptRoot ''
174+
$afterBuildTasksArgs = ConvertFrom-Json 'true' -AsHashtable
175+
if(Test-Path -Path $afterBuildTasksPath -PathType leaf){
176+
Write-Host -ForegroundColor Green 'Running after build tasks...'
177+
. $afterBuildTasksPath @afterBuildTasksArgs
178+
}
179+
}
180+
181+
172182
Write-Host -ForegroundColor Green '-------------Done-------------'

src/Databricks/Databricks.Autorest/custom/New-AzDatabricksWorkspace.ps1

Lines changed: 59 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ New-AzDatabricksWorkspace -Name azps-databricks-workspace-t3 -ResourceGroupName
3838
3939
4040
.Outputs
41-
Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20230201.IWorkspace
41+
Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20240501.IWorkspace
4242
.Notes
4343
COMPLEX PARAMETER PROPERTIES
4444
@@ -51,7 +51,7 @@ AUTHORIZATION <IWorkspaceProviderAuthorization[]>: The workspace provider author
5151
https://learn.microsoft.com/powershell/module/az.databricks/new-azdatabricksworkspace
5252
#>
5353
function New-AzDatabricksWorkspace {
54-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20230201.IWorkspace])]
54+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20240501.IWorkspace])]
5555
[CmdletBinding(DefaultParameterSetName = 'CreateExpanded', PositionalBinding = $false, SupportsShouldProcess, ConfirmImpact = 'Medium')]
5656
param(
5757
[Parameter(Mandatory)]
@@ -96,7 +96,7 @@ function New-AzDatabricksWorkspace {
9696
[Parameter()]
9797
[AllowEmptyCollection()]
9898
[Microsoft.Azure.PowerShell.Cmdlets.Databricks.Category('Body')]
99-
[Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20230201.IWorkspaceProviderAuthorization[]]
99+
[Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20240501.IWorkspaceProviderAuthorization[]]
100100
# The workspace provider authorizations.
101101
# To construct, see NOTES section for AUTHORIZATION properties and create a hash table.
102102
${Authorization},
@@ -289,6 +289,62 @@ function New-AzDatabricksWorkspace {
289289
# The value which should be used for this field.
290290
${VnetAddressPrefix},
291291

292+
[Parameter()]
293+
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Databricks.Support.EnhancedSecurityMonitoringValue])]
294+
[Microsoft.Azure.PowerShell.Cmdlets.Databricks.Category('Body')]
295+
[Microsoft.Azure.PowerShell.Cmdlets.Databricks.Support.EnhancedSecurityMonitoringValue]
296+
# Status of Enhanced Security Monitoring feature.
297+
${EnhancedSecurityMonitoringValue},
298+
299+
[Parameter()]
300+
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Databricks.Support.AutomaticClusterUpdateValue])]
301+
[Microsoft.Azure.PowerShell.Cmdlets.Databricks.Category('Body')]
302+
[Microsoft.Azure.PowerShell.Cmdlets.Databricks.Support.AutomaticClusterUpdateValue]
303+
# Status of automated cluster updates feature.
304+
${AutomaticClusterUpdateValue},
305+
306+
[Parameter()]
307+
[AllowEmptyCollection()]
308+
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Databricks.Support.ComplianceStandard])]
309+
[Microsoft.Azure.PowerShell.Cmdlets.Databricks.Category('Body')]
310+
[Microsoft.Azure.PowerShell.Cmdlets.Databricks.Support.ComplianceStandard[]]
311+
# Compliance standards associated with the workspace.
312+
${ComplianceSecurityProfileComplianceStandard},
313+
314+
[Parameter()]
315+
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Databricks.Support.ComplianceSecurityProfileValue])]
316+
[Microsoft.Azure.PowerShell.Cmdlets.Databricks.Category('Body')]
317+
[Microsoft.Azure.PowerShell.Cmdlets.Databricks.Support.ComplianceSecurityProfileValue]
318+
# Status of Compliance Security Profile feature.
319+
${ComplianceSecurityProfileValue},
320+
321+
[Parameter()]
322+
[Microsoft.Azure.PowerShell.Cmdlets.Databricks.Category('Body')]
323+
[System.String]
324+
# The resource ID of Azure Databricks Access Connector Resource.
325+
${AccessConnectorId},
326+
327+
[Parameter()]
328+
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Databricks.Support.IdentityType])]
329+
[Microsoft.Azure.PowerShell.Cmdlets.Databricks.Category('Body')]
330+
[Microsoft.Azure.PowerShell.Cmdlets.Databricks.Support.IdentityType]
331+
# The identity type of the Access Connector Resource.
332+
${AccessConnectorIdentityType},
333+
334+
[Parameter()]
335+
[Microsoft.Azure.PowerShell.Cmdlets.Databricks.Category('Body')]
336+
[System.String]
337+
# The resource ID of the User Assigned Identity associated with the Access Connector Resource.
338+
# This is required for type 'UserAssigned' and not valid for type 'SystemAssigned'.
339+
${AccessConnectorUserAssignedIdentityId},
340+
341+
[Parameter()]
342+
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Databricks.Support.DefaultStorageFirewall])]
343+
[Microsoft.Azure.PowerShell.Cmdlets.Databricks.Category('Body')]
344+
[Microsoft.Azure.PowerShell.Cmdlets.Databricks.Support.DefaultStorageFirewall]
345+
# Gets or Sets Default Storage Firewall configuration information
346+
${DefaultStorageFirewall},
347+
292348
[Parameter()]
293349
[Alias('AzureRMContext', 'AzureCredential')]
294350
[ValidateNotNull()]

src/Databricks/Databricks.Autorest/custom/New-AzDatabricksWorkspaceProviderAuthorizationObject.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ Create an in-memory object for WorkspaceProviderAuthorization.
2121
Create an in-memory object for WorkspaceProviderAuthorization.
2222
2323
.Outputs
24-
Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20230201.WorkspaceProviderAuthorization
24+
Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20240501.WorkspaceProviderAuthorization
2525
.Link
2626
https://learn.microsoft.com/powershell/module/Az.Databricks/new-AzDatabricksWorkspaceProviderAuthorizationObject
2727
#>
2828
function New-AzDatabricksWorkspaceProviderAuthorizationObject {
29-
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20230201.WorkspaceProviderAuthorization')]
29+
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20240501.WorkspaceProviderAuthorization')]
3030
[CmdletBinding(PositionalBinding=$false)]
3131
Param(
3232

@@ -39,7 +39,7 @@ function New-AzDatabricksWorkspaceProviderAuthorizationObject {
3939
)
4040

4141
process {
42-
$Object = [Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20230201.WorkspaceProviderAuthorization]::New()
42+
$Object = [Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20240501.WorkspaceProviderAuthorization]::New()
4343

4444
if ($PSBoundParameters.ContainsKey('PrincipalId')) {
4545
$Object.PrincipalId = $PrincipalId

src/Databricks/Databricks.Autorest/custom/Update-AzDatabricksVNetPeering.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ Update-AzDatabricksVNetPeering -Name vnet-peering-t1 -WorkspaceName azps-databri
2424
Get-AzDatabricksVNetPeering -WorkspaceName azps-databricks-workspace-t1 -ResourceGroupName azps_test_gp_db -Name vnet-peering-t1 | Update-AzDatabricksVNetPeering -AllowGatewayTransit $true
2525
2626
.Outputs
27-
Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20230201.IVirtualNetworkPeering
27+
Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20240501.IVirtualNetworkPeering
2828
.Link
2929
https://learn.microsoft.com/powershell/module/az.databricks/update-azdatabricksvnetpeering
3030
#>
3131
function Update-AzDatabricksVNetPeering {
32-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20230201.IVirtualNetworkPeering])]
32+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Databricks.Models.Api20240501.IVirtualNetworkPeering])]
3333
[CmdletBinding(DefaultParameterSetName = 'UpdateExpanded', PositionalBinding = $false, SupportsShouldProcess, ConfirmImpact = 'Medium')]
3434
param(
3535
[Parameter(ParameterSetName = 'UpdateExpanded', Mandatory, HelpMessage = "The name of the VNetPeering.")]

0 commit comments

Comments
 (0)