Skip to content

Commit b0397fb

Browse files
authored
Fix examples for Wiki (#202)
1 parent 6d1e087 commit b0397fb

31 files changed

Lines changed: 153 additions & 37 deletions

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ For older change log history see the [historic changelog](HISTORIC_CHANGELOG.md)
1515
- Updated README.md from _xHyper-V_ to _HyperVDsc
1616
- Renamed default branch to `main` - Fixes [Issue #198](https://github.com/dsccommunity/HyperVDsc/issues/198).
1717
- Moved documentation to the HyperVDsc GitHub Wiki.
18+
- Updated all examples to correct folders and naming so they show up
19+
in the GitHub Wiki documentation and conceptual help.
1820

1921
## [3.18.0] - 2022-06-04
2022

source/DSCResources/DSC_VHD/DSC_Vhd.schema.mof

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
class DSC_Vhd : OMI_BaseResource
33
{
44
[Key, Description("The desired VHD file name.")] String Name;
5-
[Key, Description("he desired Path where the VHD will be created.")] String Path;
5+
[Key, Description("The desired Path where the VHD will be created.")] String Path;
66
[Write, Description("Parent VHD file path, for differencing disk.")] String ParentPath;
77
[Write, Description("Maximum size of VHD to be created.")] Uint64 MaximumSizeBytes;
88
[Write, Description("Virtual disk format. The default value is `Vhd`."), ValueMap{"Vhd","Vhdx"}, Values{"Vhd","Vhdx"}] String Generation;

source/Examples/Sample_VMHardDiskDrive_VMWithExtraDisk.ps1 renamed to source/Examples/Resources/VMHardDiskDrive/1-VMWithExtraDisk.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
configuration Sample_VMHardDiskDrive_VMWithExtraDisk
1+
<#
2+
.DESCRIPTION
3+
VM with an extra disk.
4+
#>
5+
configuration Example
26
{
37
param
48
(

source/Examples/Sample_VMHardDiskDrive_VMWith4AdditionalDisks.ps1 renamed to source/Examples/Resources/VMHardDiskDrive/2-VMWith4AdditionalDisks.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
configuration Sample_VMHardDiskDrive_VMWith4AdditionalDisks
1+
<#
2+
.DESCRIPTION
3+
VM with 4 additional disks.
4+
#>
5+
configuration Example
26
{
37
param
48
(

source/Examples/Sample_VMHost_Paths.ps1 renamed to source/Examples/Resources/VMHost/1-Paths.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
Configuration Sample_VMHost_Paths
1+
<#
2+
.DESCRIPTION
3+
Set paths för the Hyper-V host.
4+
#>
5+
Configuration Example
26
{
37
param
48
(

source/Examples/Sample_VMHyperV_Simple.ps1 renamed to source/Examples/Resources/VMHyperV/1-Simple.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
configuration Sample_VMHyperV_Simple
1+
<#
2+
.DESCRIPTION
3+
Create a new VM.
4+
#>
5+
configuration Example
26
{
37
param
48
(

source/Examples/Sample_VMHyperV_SimpleWithDVDDrive.ps1 renamed to source/Examples/Resources/VMHyperV/2-SimpleWithDVDDrive.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
configuration Sample_VMHyperV_SimpleWithDvdDrive
1+
<#
2+
.DESCRIPTION
3+
Create a VM with DVD drive attached to it.
4+
#>
5+
configuration Example
26
{
37
param
48
(

source/Examples/Sample_VMHyperV_SimpleWithNestedVirtualization.ps1 renamed to source/Examples/Resources/VMHyperV/3-SimpleWithNestedVirtualization.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
configuration Sample_VMHyperV_SimpleWithNestedVirtualization
1+
<#
2+
.DESCRIPTION
3+
Create a VM with nested virtualization.
4+
#>
5+
configuration Example
26
{
37
param
48
(

source/Examples/Sample_VMHyperV_Complete.ps1 renamed to source/Examples/Resources/VMHyperV/4-Complete.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
configuration Sample_VMHyperV_Complete
1+
<#
2+
.DESCRIPTION
3+
Complete example.
4+
#>
5+
configuration Example
26
{
37
param
48
(

source/Examples/Sample_VMHyperV_DynamicMemory.ps1 renamed to source/Examples/Resources/VMHyperV/5-DynamicMemory.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
configuration Sample_VMHyperV_DynamicMemory
1+
<#
2+
.DESCRIPTION
3+
VM using dynamic memory.
4+
#>
5+
configuration Example
26
{
37
param
48
(

0 commit comments

Comments
 (0)