Skip to content

Commit

Permalink
VirtualHardDisk: Resource for creating and attaching a virtual disk (#…
Browse files Browse the repository at this point in the history
…279)

* Add initial changes to add a Vhd resource and light up DSC_Disk to allow volumes to be formatted as Dev Drives

* update comments and add parameter validation to string parameters

* update win32helpers so we can add tests

* add more tests

* Add more unit tests

* add more tests for the win32 helper

* update comments

* update synopsis and fix test

* fix failing tests

* fix hqrmtests and add test coverage for disk type is fixed scenario

* fix more hqrmtest failures that don't show up in ps5.1 but show up in ps 7

* update resource to add more description about usage and limitations and use safefilehandles instead of closehandle function

* remove no longer used function

* Merge branch 'main' into light-up-dev-drive-and-add-vhd-creation-support

* update based on comments, reword md file, and add parameter names to function calls in win32helpers

* update readme file

* remove spaces in psd1 tags

* Merge branch 'main' into light-up-dev-drive-and-add-vhd-creation-support

* Merge branch 'main' into light-up-dev-drive-and-add-vhd-creation-support

* Merge branch 'main' into update-vhd-support

* Merge pull request #1 from bbonaby/update-vhd-support

Update vhd support

* update based on PR comments and add an IsAdmin check

* update pipeline based on comments

* Add virtual hard disk integration tests

* Fix unit test

* update based on comments

Co-Authored-By: U-BRANX-PC\brand <brandonbonaby94@gmail.com>
  • Loading branch information
bbonaby and brandenbonaby authored Sep 16, 2024
1 parent 06a30de commit 215b284
Show file tree
Hide file tree
Showing 17 changed files with 2,636 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed minor markdown linting issues in README.md and used to issue BREAKING
CHANGE commit - Fixes [Issue #282](https://github.com/dsccommunity/StorageDsc/issues/282).
- Updated tag from 'Dev Drive' to 'DevDrive' in manifest file - Fixes [Issue #280](https://github.com/dsccommunity/StorageDsc/issues/280).
- Added DSC_VirtualHardDisk resource for creating virtual disks and tests - Fixes [Issue #277](https://github.com/dsccommunity/StorageDsc/issues/277)

### Changed

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ The **StorageDsc** module contains the following resources:
disk drive (e.g. a CDROM or DVD drive). This resource ignores mounted ISOs.
- **WaitForDisk** wait for a disk to become available.
- **WaitForVolume** wait for a drive to be mounted and become available.
- **VirtualHardDisk** used to create and attach a virtual hard disk.

This project has adopted [this code of conduct](CODE_OF_CONDUCT.md).

Expand Down
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ stages:
vmImage: 'windows-latest'
steps:
- pwsh: |
dotnet tool install --global GitVersion.Tool
dotnet tool install --global GitVersion.Tool --version 5.*
$gitVersionObject = dotnet-gitversion | ConvertFrom-Json
$gitVersionObject.PSObject.Properties.ForEach{
Write-Host -Object "Setting Task Variable '$($_.Name)' with value '$($_.Value)'."
Expand Down
Loading

0 comments on commit 215b284

Please sign in to comment.