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
2 changes: 2 additions & 0 deletions src/Databricks/Databricks.Autorest/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ tools
custom/*.psm1
custom/autogen-model-cmdlets
test/*-TestResults.xml
license.txt
/*.ps1
/*.psd1
/*.ps1xml
/*.psm1
/*.snk
Expand Down
26 changes: 26 additions & 0 deletions src/Databricks/Databricks.Autorest/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the Apache License, Version 2.0 (the ""License"");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an ""AS IS"" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
// is regenerated.

using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
[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("0.1.0.0")]
[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")]
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
[assembly: System.CLSCompliantAttribute(false)]
Original file line number Diff line number Diff line change
Expand Up @@ -315,33 +315,36 @@ function New-AzDatabricksWorkspace {
${VnetAddressPrefix},

[Parameter()]
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Databricks.Support.EnhancedSecurityMonitoringValue])]
[Alias('EnhancedSecurityMonitoringValue')] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Databricks.Support.EnhancedSecurityMonitoringValue])]
[Microsoft.Azure.PowerShell.Cmdlets.Databricks.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.Databricks.Support.EnhancedSecurityMonitoringValue]
# Status of Enhanced Security Monitoring feature.
${EnhancedSecurityMonitoringValue},
${EnhancedSecurityMonitoring},

[Parameter()]
[Alias('AutomaticClusterUpdateValue')]
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Databricks.Support.AutomaticClusterUpdateValue])]
[Microsoft.Azure.PowerShell.Cmdlets.Databricks.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.Databricks.Support.AutomaticClusterUpdateValue]
# Status of automated cluster updates feature.
${AutomaticClusterUpdateValue},
${AutomaticClusterUpdate},

[Parameter()]
[Alias('ComplianceSecurityProfileComplianceStandard')]
[AllowEmptyCollection()]
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Databricks.Support.ComplianceStandard])]
[Microsoft.Azure.PowerShell.Cmdlets.Databricks.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.Databricks.Support.ComplianceStandard[]]
# Compliance standards associated with the workspace.
${ComplianceSecurityProfileComplianceStandard},
${ComplianceStandard},

[Parameter()]
[Alias('ComplianceSecurityProfileValue')]
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Databricks.Support.ComplianceSecurityProfileValue])]
[Microsoft.Azure.PowerShell.Cmdlets.Databricks.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.Databricks.Support.ComplianceSecurityProfileValue]
# Status of Compliance Security Profile feature.
${ComplianceSecurityProfileValue},
${EnhancedSecurityCompliance},

[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Databricks.Category('Body')]
Expand Down Expand Up @@ -433,6 +436,22 @@ function New-AzDatabricksWorkspace {

process {
try {
if ($PSBoundParameters.Remove('EnhancedSecurityMonitoring'))
{
$PSBoundParameters.Add('EnhancedSecurityMonitoringValue', $EnhancedSecurityMonitoring)
}
if ($PSBoundParameters.Remove('AutomaticClusterUpdate'))
{
$PSBoundParameters.Add('AutomaticClusterUpdateValue', $AutomaticClusterUpdate)
}
if ($PSBoundParameters.Remove('ComplianceStandard'))
{
$PSBoundParameters.Add('ComplianceSecurityProfileComplianceStandard', $ComplianceStandard)
}
if ($PSBoundParameters.Remove('EnhancedSecurityCompliance'))
{
$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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,33 +257,36 @@ function Update-AzDatabricksWorkspace {
${EnableNoPublicIP},

[Parameter()]
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Databricks.Support.EnhancedSecurityMonitoringValue])]
[Alias('EnhancedSecurityMonitoringValue')] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Databricks.Support.EnhancedSecurityMonitoringValue])]
[Microsoft.Azure.PowerShell.Cmdlets.Databricks.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.Databricks.Support.EnhancedSecurityMonitoringValue]
# Status of Enhanced Security Monitoring feature.
${EnhancedSecurityMonitoringValue},
${EnhancedSecurityMonitoring},

[Parameter()]
[Alias('AutomaticClusterUpdateValue')]
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Databricks.Support.AutomaticClusterUpdateValue])]
[Microsoft.Azure.PowerShell.Cmdlets.Databricks.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.Databricks.Support.AutomaticClusterUpdateValue]
# Status of automated cluster updates feature.
${AutomaticClusterUpdateValue},
${AutomaticClusterUpdate},

[Parameter()]
[Alias('ComplianceSecurityProfileComplianceStandard')]
[AllowEmptyCollection()]
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Databricks.Support.ComplianceStandard])]
[Microsoft.Azure.PowerShell.Cmdlets.Databricks.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.Databricks.Support.ComplianceStandard[]]
# Compliance standards associated with the workspace.
${ComplianceSecurityProfileComplianceStandard},
${ComplianceStandard},

[Parameter()]
[Alias('ComplianceSecurityProfileValue')]
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Databricks.Support.ComplianceSecurityProfileValue])]
[Microsoft.Azure.PowerShell.Cmdlets.Databricks.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.Databricks.Support.ComplianceSecurityProfileValue]
# Status of Compliance Security Profile feature.
${ComplianceSecurityProfileValue},
${EnhancedSecurityCompliance},

[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Databricks.Category('Body')]
Expand Down Expand Up @@ -406,10 +409,10 @@ function Update-AzDatabricksWorkspace {
$hasAccessConnectorIdentityType = $PSBoundParameters.Remove('AccessConnectorIdentityType')
$hasAccessConnectorUserAssignedIdentityId = $PSBoundParameters.Remove('AccessConnectorUserAssignedIdentityId')
$hasDefaultStorageFirewall = $PSBoundParameters.Remove('DefaultStorageFirewall')
$hasEnhancedSecurityMonitoringValue = $PSBoundParameters.Remove('EnhancedSecurityMonitoringValue')
$hasAutomaticClusterUpdateValue = $PSBoundParameters.Remove('AutomaticClusterUpdateValue')
$hasComplianceSecurityProfileComplianceStandard = $PSBoundParameters.Remove('ComplianceSecurityProfileComplianceStandard')
$hasComplianceSecurityProfileValue = $PSBoundParameters.Remove('ComplianceSecurityProfileValue')
$hasEnhancedSecurityMonitoringValue = $PSBoundParameters.Remove('EnhancedSecurityMonitoring')
$hasAutomaticClusterUpdateValue = $PSBoundParameters.Remove('AutomaticClusterUpdate')
$hasComplianceSecurityProfileComplianceStandard = $PSBoundParameters.Remove('ComplianceStandard')
$hasComplianceSecurityProfileValue = $PSBoundParameters.Remove('EnhancedSecurityCompliance')
$hasAsJob = $PSBoundParameters.Remove('AsJob')
$null = $PSBoundParameters.Remove('WhatIf')
$null = $PSBoundParameters.Remove('Confirm')
Expand Down Expand Up @@ -508,19 +511,19 @@ function Update-AzDatabricksWorkspace {
}
if ($hasEnhancedSecurityMonitoringValue)
{
$workspace.EnhancedSecurityMonitoringValue = $EnhancedSecurityMonitoringValue
$workspace.EnhancedSecurityMonitoringValue = $EnhancedSecurityMonitoring
}
if ($hasAutomaticClusterUpdateValue)
{
$workspace.AutomaticClusterUpdateValue = $AutomaticClusterUpdateValue
$workspace.AutomaticClusterUpdateValue = $AutomaticClusterUpdate
}
if ($hasComplianceSecurityProfileComplianceStandard)
{
$workspace.ComplianceSecurityProfileComplianceStandard = $ComplianceSecurityProfileComplianceStandard
$workspace.ComplianceSecurityProfileComplianceStandard = $ComplianceStandard
}
if ($hasComplianceSecurityProfileValue)
{
$workspace.ComplianceSecurityProfileValue = $ComplianceSecurityProfileValue
$workspace.ComplianceSecurityProfileValue = $EnhancedSecurityCompliance
}
if ($hasDefaultStorageFirewall)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,12 @@ Creates a new workspace.
New-AzDatabricksWorkspace -Name <String> -ResourceGroupName <String> -Location <String>
[-SubscriptionId <String>] [-AccessConnectorId <String>] [-AccessConnectorIdentityType <IdentityType>]
[-AccessConnectorUserAssignedIdentityId <String>] [-AmlWorkspaceId <String>]
[-Authorization <IWorkspaceProviderAuthorization[]>]
[-AutomaticClusterUpdateValue <AutomaticClusterUpdateValue>]
[-ComplianceSecurityProfileComplianceStandard <ComplianceStandard[]>]
[-ComplianceSecurityProfileValue <ComplianceSecurityProfileValue>] [-DefaultCatalogInitialType <InitialType>]
[-Authorization <IWorkspaceProviderAuthorization[]>] [-AutomaticClusterUpdate <AutomaticClusterUpdateValue>]
[-ComplianceStandard <ComplianceStandard[]>] [-DefaultCatalogInitialType <InitialType>]
[-DefaultStorageFirewall <DefaultStorageFirewall>] [-EnableNoPublicIP] [-EncryptionKeyName <String>]
[-EncryptionKeySource <KeySource>] [-EncryptionKeyVaultUri <String>] [-EncryptionKeyVersion <String>]
[-EnhancedSecurityMonitoringValue <EnhancedSecurityMonitoringValue>] [-LoadBalancerBackendPoolName <String>]
[-EnhancedSecurityCompliance <ComplianceSecurityProfileValue>]
[-EnhancedSecurityMonitoring <EnhancedSecurityMonitoringValue>] [-LoadBalancerBackendPoolName <String>]
[-LoadBalancerId <String>] [-ManagedDiskKeySource <EncryptionKeySource>]
[-ManagedDiskKeyVaultPropertiesKeyName <String>] [-ManagedDiskKeyVaultPropertiesKeyVaultUri <String>]
[-ManagedDiskKeyVaultPropertiesKeyVersion <String>] [-ManagedDiskRotationToLatestKeyVersionEnabled]
Expand Down Expand Up @@ -185,13 +184,13 @@ Accept pipeline input: False
Accept wildcard characters: False
```

### -AutomaticClusterUpdateValue
### -AutomaticClusterUpdate
Status of automated cluster updates feature.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.Databricks.Support.AutomaticClusterUpdateValue
Parameter Sets: (All)
Aliases:
Aliases: AutomaticClusterUpdateValue

Required: False
Position: Named
Expand All @@ -200,28 +199,13 @@ Accept pipeline input: False
Accept wildcard characters: False
```

### -ComplianceSecurityProfileComplianceStandard
### -ComplianceStandard
Compliance standards associated with the workspace.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.Databricks.Support.ComplianceStandard[]
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -ComplianceSecurityProfileValue
Status of Compliance Security Profile feature.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.Databricks.Support.ComplianceSecurityProfileValue
Parameter Sets: (All)
Aliases:
Aliases: ComplianceSecurityProfileComplianceStandard

Required: False
Position: Named
Expand Down Expand Up @@ -353,13 +337,28 @@ Accept pipeline input: False
Accept wildcard characters: False
```

### -EnhancedSecurityMonitoringValue
### -EnhancedSecurityCompliance
Status of Compliance Security Profile feature.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.Databricks.Support.ComplianceSecurityProfileValue
Parameter Sets: (All)
Aliases: ComplianceSecurityProfileValue

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -EnhancedSecurityMonitoring
Status of Enhanced Security Monitoring feature.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.Databricks.Support.EnhancedSecurityMonitoringValue
Parameter Sets: (All)
Aliases:
Aliases: EnhancedSecurityMonitoringValue

Required: False
Position: Named
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,12 @@ Updates a workspace.
Update-AzDatabricksWorkspace -Name <String> -ResourceGroupName <String> [-SubscriptionId <String>]
[-AccessConnectorId <String>] [-AccessConnectorIdentityType <IdentityType>]
[-AccessConnectorUserAssignedIdentityId <String>] [-AmlWorkspaceId <String>]
[-Authorization <IWorkspaceProviderAuthorization[]>]
[-AutomaticClusterUpdateValue <AutomaticClusterUpdateValue>]
[-ComplianceSecurityProfileComplianceStandard <ComplianceStandard[]>]
[-ComplianceSecurityProfileValue <ComplianceSecurityProfileValue>] [-DefaultCatalogInitialType <InitialType>]
[-Authorization <IWorkspaceProviderAuthorization[]>] [-AutomaticClusterUpdate <AutomaticClusterUpdateValue>]
[-ComplianceStandard <ComplianceStandard[]>] [-DefaultCatalogInitialType <InitialType>]
[-DefaultStorageFirewall <DefaultStorageFirewall>] [-EnableNoPublicIP] [-EncryptionKeyName <String>]
[-EncryptionKeySource <KeySource>] [-EncryptionKeyVaultUri <String>] [-EncryptionKeyVersion <String>]
[-EnhancedSecurityMonitoringValue <EnhancedSecurityMonitoringValue>] [-KeyVaultKeyName <String>]
[-EnhancedSecurityCompliance <ComplianceSecurityProfileValue>]
[-EnhancedSecurityMonitoring <EnhancedSecurityMonitoringValue>] [-KeyVaultKeyName <String>]
[-KeyVaultKeyVersion <String>] [-KeyVaultUri <String>] [-ManagedDiskKeySource <EncryptionKeySource>]
[-ManagedDiskKeyVaultPropertiesKeyName <String>] [-ManagedDiskKeyVaultPropertiesKeyVaultUri <String>]
[-ManagedDiskKeyVaultPropertiesKeyVersion <String>] [-ManagedDiskRotationToLatestKeyVersionEnabled]
Expand All @@ -40,12 +39,12 @@ Update-AzDatabricksWorkspace -Name <String> -ResourceGroupName <String> [-Subscr
Update-AzDatabricksWorkspace -InputObject <IDatabricksIdentity> [-AccessConnectorId <String>]
[-AccessConnectorIdentityType <IdentityType>] [-AccessConnectorUserAssignedIdentityId <String>]
[-AmlWorkspaceId <String>] [-Authorization <IWorkspaceProviderAuthorization[]>]
[-AutomaticClusterUpdateValue <AutomaticClusterUpdateValue>]
[-ComplianceSecurityProfileComplianceStandard <ComplianceStandard[]>]
[-ComplianceSecurityProfileValue <ComplianceSecurityProfileValue>] [-DefaultCatalogInitialType <InitialType>]
[-DefaultStorageFirewall <DefaultStorageFirewall>] [-EnableNoPublicIP] [-EncryptionKeyName <String>]
[-EncryptionKeySource <KeySource>] [-EncryptionKeyVaultUri <String>] [-EncryptionKeyVersion <String>]
[-EnhancedSecurityMonitoringValue <EnhancedSecurityMonitoringValue>] [-KeyVaultKeyName <String>]
[-AutomaticClusterUpdate <AutomaticClusterUpdateValue>] [-ComplianceStandard <ComplianceStandard[]>]
[-DefaultCatalogInitialType <InitialType>] [-DefaultStorageFirewall <DefaultStorageFirewall>]
[-EnableNoPublicIP] [-EncryptionKeyName <String>] [-EncryptionKeySource <KeySource>]
[-EncryptionKeyVaultUri <String>] [-EncryptionKeyVersion <String>]
[-EnhancedSecurityCompliance <ComplianceSecurityProfileValue>]
[-EnhancedSecurityMonitoring <EnhancedSecurityMonitoringValue>] [-KeyVaultKeyName <String>]
[-KeyVaultKeyVersion <String>] [-KeyVaultUri <String>] [-ManagedDiskKeySource <EncryptionKeySource>]
[-ManagedDiskKeyVaultPropertiesKeyName <String>] [-ManagedDiskKeyVaultPropertiesKeyVaultUri <String>]
[-ManagedDiskKeyVaultPropertiesKeyVersion <String>] [-ManagedDiskRotationToLatestKeyVersionEnabled]
Expand Down Expand Up @@ -220,13 +219,13 @@ Accept pipeline input: False
Accept wildcard characters: False
```

### -AutomaticClusterUpdateValue
### -AutomaticClusterUpdate
Status of automated cluster updates feature.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.Databricks.Support.AutomaticClusterUpdateValue
Parameter Sets: (All)
Aliases:
Aliases: AutomaticClusterUpdateValue

Required: False
Position: Named
Expand All @@ -235,28 +234,13 @@ Accept pipeline input: False
Accept wildcard characters: False
```

### -ComplianceSecurityProfileComplianceStandard
### -ComplianceStandard
Compliance standards associated with the workspace.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.Databricks.Support.ComplianceStandard[]
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -ComplianceSecurityProfileValue
Status of Compliance Security Profile feature.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.Databricks.Support.ComplianceSecurityProfileValue
Parameter Sets: (All)
Aliases:
Aliases: ComplianceSecurityProfileComplianceStandard

Required: False
Position: Named
Expand Down Expand Up @@ -387,13 +371,28 @@ Accept pipeline input: False
Accept wildcard characters: False
```

### -EnhancedSecurityMonitoringValue
### -EnhancedSecurityCompliance
Status of Compliance Security Profile feature.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.Databricks.Support.ComplianceSecurityProfileValue
Parameter Sets: (All)
Aliases: ComplianceSecurityProfileValue

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -EnhancedSecurityMonitoring
Status of Enhanced Security Monitoring feature.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.Databricks.Support.EnhancedSecurityMonitoringValue
Parameter Sets: (All)
Aliases:
Aliases: EnhancedSecurityMonitoringValue

Required: False
Position: Named
Expand Down