Skip to content

PowerNetbox v4.5.3.2

Released 2026-03-16 - View on GitHub

Bug Fix: Device Bay depopulation (#365)

Set-NBDCIMDeviceBay — Changed Installed_Device parameter type from [uint64] to [Nullable[uint64]], allowing device bays to be depopulated by passing $null.

Usage

```powershell

Depopulate a device bay

Set-NBDCIMDeviceBay -Id 123 -Installed_Device $null

Populate a device bay (unchanged)

Set-NBDCIMDeviceBay -Id 123 -Installed_Device 42 ```

Details

  • The $null value flows correctly through BuildURIComponentsInvokeNetboxRequestConvertTo-Json, producing {"installed_device": null} in the PATCH request body
  • Verified on Netbox 4.5.3, PowerShell 7.x and 5.1
  • 3 new unit tests; 8 DeviceBay tests total

Thanks to @mkarel for reporting (#365) and the initial PR (#366).