Skip to content

Commit c084f4c

Browse files
Migrate Databricks from generation to main (#25615)
* Move Databricks to main * Update ChangeLog.md --------- Co-authored-by: Yabo Hu <[email protected]>
1 parent 56c6bed commit c084f4c

21 files changed

+841
-794
lines changed

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,18 @@ function Update-AzDatabricksWorkspace {
490490
{
491491
$workspace.DefaultStorageFirewall = $DefaultStorageFirewall
492492
}
493+
if ($hasAccessConnectorId)
494+
{
495+
$workspace.AccessConnectorId = $AccessConnectorId
496+
}
497+
if ($hasAccessConnectorIdentityType)
498+
{
499+
$workspace.AccessConnectorIdentityType = $AccessConnectorIdentityType
500+
}
501+
if ($hasAccessConnectorUserAssignedIdentityId)
502+
{
503+
$workspace.AccessConnectorUserAssignedIdentityId = $AccessConnectorUserAssignedIdentityId
504+
}
493505
if ($hasAsJob) {
494506
$PSBoundParameters.Add('AsJob', $true)
495507
}

src/Databricks/Databricks.Autorest/test/AzDatabricksAccessConnector.Recording.json

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

src/Databricks/Databricks.Autorest/test/AzDatabricksVNetPeering.Recording.json

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

src/Databricks/Databricks.Autorest/test/AzDatabricksWorkspace.Recording.json

Lines changed: 405 additions & 581 deletions
Large diffs are not rendered by default.
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
{
2-
"networkSecurityRuleName": "y4lvdo",
2+
"vNetSubnetName1": "z6rqtl",
3+
"resourceGroup": "auto-test-databricks-ey",
4+
"networkSecurityRuleName": "cq4xgv",
5+
"vNetSubnetName2": "vwgjlc",
36
"Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47",
4-
"workSpaceName2": "rhsu92",
5-
"keyVaultName": "azpsvrhw27",
67
"location": "eastus",
7-
"workSpaceName1": "plziav",
8-
"vNetSubnetName1": "b51pw7",
9-
"networkSecurityGroupName": "bs17rt",
8+
"accessConnectorName1": "jshct2",
9+
"workSpaceName2": "vo0ldr",
10+
"vNetName1": "dvrxl8",
11+
"networkSecurityGroupName": "o9z1w4",
12+
"vNetSubnetName3": "sbgcl8",
13+
"workSpaceName1": "gnhqd7",
1014
"SubscriptionId": "0140911e-1040-48da-8bc9-b99fb3dd88a6",
11-
"vNetName": "8vq9e5",
12-
"vNetSubnetName3": "kpxyz1",
13-
"accessConnectorName1": "4jxk7r",
14-
"vNetSubnetName2": "8hcxvz",
15-
"resourceGroup": "auto-test-databricks-r7",
16-
"vNetName1": "f0pg8x",
17-
"workSpaceName3": "dabmvq"
15+
"workSpaceName3": "62k8v5",
16+
"vNetName": "ljcn7v",
17+
"keyVaultName": "azps4xhr69"
1818
}

src/Databricks/Databricks/Az.Databricks.psd1

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Microsoft Corporation
55
#
6-
# Generated on: 7/4/2024
6+
# Generated on: 7/23/2024
77
#
88

99
@{
@@ -51,16 +51,16 @@ DotNetFrameworkVersion = '4.7.2'
5151
# ProcessorArchitecture = ''
5252

5353
# Modules that must be imported into the global environment prior to importing this module
54-
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '3.0.1'; })
54+
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '3.0.2'; })
5555

5656
# Assemblies that must be loaded prior to importing this module
5757
RequiredAssemblies = 'Databricks.Autorest/bin/Az.Databricks.private.dll'
5858

5959
# Script files (.ps1) that are run in the caller's environment prior to importing this module.
60-
# ScriptsToProcess = @()
60+
ScriptsToProcess = @()
6161

6262
# Type files (.ps1xml) to be loaded when importing this module
63-
# TypesToProcess = @()
63+
TypesToProcess = @()
6464

6565
# Format files (.ps1xml) to be loaded when importing this module
6666
FormatsToProcess = 'Databricks.Autorest/Az.Databricks.format.ps1xml'
@@ -104,7 +104,7 @@ PrivateData = @{
104104
PSData = @{
105105

106106
# Tags applied to this module. These help with module discovery in online galleries.
107-
Tags = 'Azure','ResourceManager','ARM','PSModule','Databricks'
107+
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'Databricks'
108108

109109
# A URL to the license for this module.
110110
LicenseUri = 'https://aka.ms/azps-license'
@@ -129,7 +129,7 @@ PrivateData = @{
129129

130130
} # End of PSData hashtable
131131

132-
} # End of PrivateData hashtable
132+
} # End of PrivateData hashtable
133133

134134
# HelpInfo URI of this module
135135
# HelpInfoURI = ''

src/Databricks/Databricks/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Fixed Access Connector Resource update for `Update-AzDatabricksWorkspace`
2122

2223
## Version 1.8.0
2324
* Updated the Az Databricks cmdlets to 2024-05-01 api version.

src/Databricks/Databricks/help/Get-AzDatabricksAccessConnector.md

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,25 @@ Gets an Azure Databricks Access Connector.
1515
### List1 (Default)
1616
```
1717
Get-AzDatabricksAccessConnector [-SubscriptionId <String[]>] [-DefaultProfile <PSObject>]
18-
[<CommonParameters>]
18+
[-ProgressAction <ActionPreference>] [<CommonParameters>]
1919
```
2020

2121
### Get
2222
```
2323
Get-AzDatabricksAccessConnector -Name <String> -ResourceGroupName <String> [-SubscriptionId <String[]>]
24-
[-DefaultProfile <PSObject>] [<CommonParameters>]
24+
[-DefaultProfile <PSObject>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
2525
```
2626

2727
### List
2828
```
2929
Get-AzDatabricksAccessConnector -ResourceGroupName <String> [-SubscriptionId <String[]>]
30-
[-DefaultProfile <PSObject>] [<CommonParameters>]
30+
[-DefaultProfile <PSObject>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
3131
```
3232

3333
### GetViaIdentity
3434
```
3535
Get-AzDatabricksAccessConnector -InputObject <IDatabricksIdentity> [-DefaultProfile <PSObject>]
36-
[<CommonParameters>]
36+
[-ProgressAction <ActionPreference>] [<CommonParameters>]
3737
```
3838

3939
## DESCRIPTION
@@ -129,6 +129,21 @@ Accept pipeline input: False
129129
Accept wildcard characters: False
130130
```
131131
132+
### -ProgressAction
133+
{{ Fill ProgressAction Description }}
134+
135+
```yaml
136+
Type: System.Management.Automation.ActionPreference
137+
Parameter Sets: (All)
138+
Aliases: proga
139+
140+
Required: False
141+
Position: Named
142+
Default value: None
143+
Accept pipeline input: False
144+
Accept wildcard characters: False
145+
```
146+
132147
### -ResourceGroupName
133148
The name of the resource group.
134149
The name is case insensitive.

src/Databricks/Databricks/help/Get-AzDatabricksOutboundNetworkDependenciesEndpoint.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ For more information, see https://docs.microsoft.com/en-us/azure/databricks/admi
1616

1717
```
1818
Get-AzDatabricksOutboundNetworkDependenciesEndpoint -ResourceGroupName <String> -WorkspaceName <String>
19-
[-SubscriptionId <String[]>] [-DefaultProfile <PSObject>]
19+
[-SubscriptionId <String[]>] [-DefaultProfile <PSObject>] [-ProgressAction <ActionPreference>]
2020
[<CommonParameters>]
2121
```
2222

@@ -65,6 +65,21 @@ Accept pipeline input: False
6565
Accept wildcard characters: False
6666
```
6767
68+
### -ProgressAction
69+
{{ Fill ProgressAction Description }}
70+
71+
```yaml
72+
Type: System.Management.Automation.ActionPreference
73+
Parameter Sets: (All)
74+
Aliases: proga
75+
76+
Required: False
77+
Position: Named
78+
Default value: None
79+
Accept pipeline input: False
80+
Accept wildcard characters: False
81+
```
82+
6883
### -ResourceGroupName
6984
The name of the resource group.
7085
The name is case insensitive.

src/Databricks/Databricks/help/Get-AzDatabricksVNetPeering.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,20 @@ Gets the workspace vNet Peering.
1515
### List (Default)
1616
```
1717
Get-AzDatabricksVNetPeering -ResourceGroupName <String> [-SubscriptionId <String[]>] -WorkspaceName <String>
18-
[-DefaultProfile <PSObject>] [<CommonParameters>]
18+
[-DefaultProfile <PSObject>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
1919
```
2020

2121
### Get
2222
```
2323
Get-AzDatabricksVNetPeering -Name <String> -ResourceGroupName <String> [-SubscriptionId <String[]>]
24-
-WorkspaceName <String> [-DefaultProfile <PSObject>] [-PassThru]
24+
-WorkspaceName <String> [-DefaultProfile <PSObject>] [-PassThru] [-ProgressAction <ActionPreference>]
2525
[<CommonParameters>]
2626
```
2727

2828
### GetViaIdentity
2929
```
3030
Get-AzDatabricksVNetPeering -InputObject <IDatabricksIdentity> [-DefaultProfile <PSObject>] [-PassThru]
31-
[<CommonParameters>]
31+
[-ProgressAction <ActionPreference>] [<CommonParameters>]
3232
```
3333

3434
## DESCRIPTION
@@ -126,6 +126,21 @@ Accept pipeline input: False
126126
Accept wildcard characters: False
127127
```
128128
129+
### -ProgressAction
130+
{{ Fill ProgressAction Description }}
131+
132+
```yaml
133+
Type: System.Management.Automation.ActionPreference
134+
Parameter Sets: (All)
135+
Aliases: proga
136+
137+
Required: False
138+
Position: Named
139+
Default value: None
140+
Accept pipeline input: False
141+
Accept wildcard characters: False
142+
```
143+
129144
### -ResourceGroupName
130145
The name of the resource group.
131146
The name is case insensitive.

src/Databricks/Databricks/help/Get-AzDatabricksWorkspace.md

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,25 @@ Gets the workspace.
1515
### List1 (Default)
1616
```
1717
Get-AzDatabricksWorkspace [-SubscriptionId <String[]>] [-DefaultProfile <PSObject>]
18-
[<CommonParameters>]
18+
[-ProgressAction <ActionPreference>] [<CommonParameters>]
1919
```
2020

2121
### Get
2222
```
2323
Get-AzDatabricksWorkspace -Name <String> -ResourceGroupName <String> [-SubscriptionId <String[]>]
24-
[-DefaultProfile <PSObject>] [<CommonParameters>]
24+
[-DefaultProfile <PSObject>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
2525
```
2626

2727
### List
2828
```
2929
Get-AzDatabricksWorkspace -ResourceGroupName <String> [-SubscriptionId <String[]>] [-DefaultProfile <PSObject>]
30-
[<CommonParameters>]
30+
[-ProgressAction <ActionPreference>] [<CommonParameters>]
3131
```
3232

3333
### GetViaIdentity
3434
```
3535
Get-AzDatabricksWorkspace -InputObject <IDatabricksIdentity> [-DefaultProfile <PSObject>]
36-
[<CommonParameters>]
36+
[-ProgressAction <ActionPreference>] [<CommonParameters>]
3737
```
3838

3939
## DESCRIPTION
@@ -133,6 +133,21 @@ Accept pipeline input: False
133133
Accept wildcard characters: False
134134
```
135135
136+
### -ProgressAction
137+
{{ Fill ProgressAction Description }}
138+
139+
```yaml
140+
Type: System.Management.Automation.ActionPreference
141+
Parameter Sets: (All)
142+
Aliases: proga
143+
144+
Required: False
145+
Position: Named
146+
Default value: None
147+
Accept pipeline input: False
148+
Accept wildcard characters: False
149+
```
150+
136151
### -ResourceGroupName
137152
The name of the resource group.
138153
The name is case insensitive.

src/Databricks/Databricks/help/New-AzDatabricksAccessConnector.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Creates or updates Azure Databricks Access Connector.
1616
New-AzDatabricksAccessConnector -Name <String> -ResourceGroupName <String> [-SubscriptionId <String>]
1717
-Location <String> [-IdentityType <ManagedServiceIdentityType>] [-Tag <Hashtable>]
1818
[-UserAssignedIdentity <Hashtable>] [-DefaultProfile <PSObject>] [-AsJob] [-NoWait]
19-
[-WhatIf] [-Confirm] [<CommonParameters>]
19+
[-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
2020
```
2121

2222
## DESCRIPTION
@@ -130,6 +130,21 @@ Accept pipeline input: False
130130
Accept wildcard characters: False
131131
```
132132
133+
### -ProgressAction
134+
{{ Fill ProgressAction Description }}
135+
136+
```yaml
137+
Type: System.Management.Automation.ActionPreference
138+
Parameter Sets: (All)
139+
Aliases: proga
140+
141+
Required: False
142+
Position: Named
143+
Default value: None
144+
Accept pipeline input: False
145+
Accept wildcard characters: False
146+
```
147+
133148
### -ResourceGroupName
134149
The name of the resource group.
135150
The name is case insensitive.

src/Databricks/Databricks/help/New-AzDatabricksVNetPeering.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ New-AzDatabricksVNetPeering -Name <String> -ResourceGroupName <String> -Workspac
1717
[-SubscriptionId <String>] [-AllowForwardedTraffic] [-AllowGatewayTransit] [-AllowVirtualNetworkAccess]
1818
[-DatabricksAddressSpacePrefix <String[]>] [-DatabricksVirtualNetworkId <String>]
1919
[-RemoteAddressSpacePrefix <String[]>] [-RemoteVirtualNetworkId <String>] [-UseRemoteGateway]
20-
[-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-WhatIf] [-Confirm]
20+
[-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm]
2121
[<CommonParameters>]
2222
```
2323

@@ -177,6 +177,21 @@ Accept pipeline input: False
177177
Accept wildcard characters: False
178178
```
179179
180+
### -ProgressAction
181+
{{ Fill ProgressAction Description }}
182+
183+
```yaml
184+
Type: System.Management.Automation.ActionPreference
185+
Parameter Sets: (All)
186+
Aliases: proga
187+
188+
Required: False
189+
Position: Named
190+
Default value: None
191+
Accept pipeline input: False
192+
Accept wildcard characters: False
193+
```
194+
180195
### -RemoteAddressSpacePrefix
181196
A list of address blocks reserved for this virtual network in CIDR notation.
182197

src/Databricks/Databricks/help/New-AzDatabricksWorkspace.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ New-AzDatabricksWorkspace -Name <String> -ResourceGroupName <String> [-Subscript
3232
[-ComplianceSecurityProfileValue <ComplianceSecurityProfileValue>] [-AccessConnectorId <String>]
3333
[-AccessConnectorIdentityType <IdentityType>] [-AccessConnectorUserAssignedIdentityId <String>]
3434
[-DefaultStorageFirewall <DefaultStorageFirewall>] [-DefaultProfile <PSObject>] [-AsJob] [-NoWait]
35-
[-WhatIf] [-Confirm] [<CommonParameters>]
35+
[-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
3636
```
3737

3838
## DESCRIPTION
@@ -591,6 +591,21 @@ Accept pipeline input: False
591591
Accept wildcard characters: False
592592
```
593593
594+
### -ProgressAction
595+
{{ Fill ProgressAction Description }}
596+
597+
```yaml
598+
Type: System.Management.Automation.ActionPreference
599+
Parameter Sets: (All)
600+
Aliases: proga
601+
602+
Required: False
603+
Position: Named
604+
Default value: None
605+
Accept pipeline input: False
606+
Accept wildcard characters: False
607+
```
608+
594609
### -PublicIPName
595610
The value which should be used for this field.
596611

0 commit comments

Comments
 (0)