DatabricksDsc

0.3.0

This module contains class-based DSC resources for Databricks

Minimum PowerShell version

5.0

There is a newer prerelease version of this module available.
See the version list below for details.

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name DatabricksDsc -RequiredVersion 0.3.0

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name DatabricksDsc -Version 0.3.0

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) Gijs Reijn. All rights reserved.

Package Details

Author(s)

  • Gijs Reijn

Functions

Get-DatabricksUser New-DatabricksUser Remove-DatabricksUser Set-DatabricksUser

DSCResources

DatabricksAccountServicePrincipal DatabricksAccountUser DatabricksClusterPolicy DatabricksClusterPolicyPermission DatabricksServicePrincipal DatabricksUser

Dependencies

This module has no dependencies.

Release Notes

## [0.3.0] - 2025-11-21

[0.3.0] - 2025-11-21

### Added

- Added DSC Export capability to `DatabricksResourceBase` class
 - Added static `Export()` method to base class that provides guidance for
   using the parameterized overload
 - Added static `Export([FilteringInstance])` method that exports resources
   with optional filtering based on instance properties
 - Added virtual static methods `GetAllResourcesFromApi([Instance])` and
   `CreateExportInstance([ApiData], [Instance])` that child classes override
   to implement resource-specific export logic
 - Implemented Export capability in `DatabricksUser` resource
   - `GetAllResourcesFromApi()` retrieves all users from SCIM API endpoint
     `/api/2.0/preview/scim/v2/Users`
   - `CreateExportInstance()` converts API user data to `DatabricksUser`
     instances with proper type conversion and sorting
   - `Export([FilteringInstance])` supports filtering by UserName, DisplayName,
     Active status, and other user properties
 - Added comprehensive unit tests for Export functionality covering:
   - API interaction and error handling
   - Instance creation and property mapping
   - Filtering logic with single and multiple filters
   - Empty result handling
- Improved unit test coverage for existing resources
 - Added `BuildAccountUserPayload()` tests for `DatabricksAccountUser`
 - Added error handling tests for `DatabricksAccountUser.Modify()` method
   (create, update, and delete failure scenarios)
 - Added `Test()` and `Set()` method tests for `DatabricksClusterPolicyPermission`
 - Increased overall code coverage to ensure reliability

FileList

Version History

Version Downloads Last updated
0.5.0 47 11/27/2025
0.5.0-previe... 3 11/27/2025
0.4.2 55 11/26/2025
0.4.2-previe... 3 11/25/2025
0.4.1 74 11/23/2025
0.4.0-previe... 3 11/23/2025
0.4.0-previe... 3 11/22/2025
0.3.0 (current version) 4 11/21/2025
0.3.0-previe... 3 11/21/2025
0.2.1 6 11/19/2025
0.2.0-previe... 5 11/19/2025
Show less