-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #184 from PowerShell/dev
Release of version 4.4.0.0 of StorageDsc
- Loading branch information
Showing
75 changed files
with
506 additions
and
336 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* text eol=crlf |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Code of conduct | ||
|
||
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). | ||
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) | ||
or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional | ||
questions or comments. |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
23 changes: 21 additions & 2 deletions
23
...ources/Disk/1-Disk_InitializeDataDisk.ps1 → ...ources/Disk/1-Disk_InitializeDataDisk.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 21 additions & 2 deletions
23
...-Disk_InitializeDataDiskUsingUniqueId.ps1 → ...-Disk_InitializeDataDiskUsingUniqueId.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 21 additions & 2 deletions
23
...Path_InitializeDataDiskWithAccessPath.ps1 → ...Path_InitializeDataDiskWithAccessPath.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 22 additions & 3 deletions
25
...zeDataDiskWithAccessPathUsingUniqueId.ps1 → ...zeDataDiskWithAccessPathUsingUniqueId.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
Examples/Resources/MountImage/1-MountImage_DismountISO.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<#PSScriptInfo | ||
.VERSION 1.0.0 | ||
.GUID 12106838-fad0-44c7-b49f-51bfe7109135 | ||
.AUTHOR Microsoft Corporation | ||
.COMPANYNAME Microsoft Corporation | ||
.COPYRIGHT | ||
.TAGS DSCConfiguration | ||
.LICENSEURI https://github.com/PowerShell/StorageDsc/blob/master/LICENSE | ||
.PROJECTURI https://github.com/PowerShell/StorageDsc | ||
.ICONURI | ||
.EXTERNALMODULEDEPENDENCIES | ||
.REQUIREDSCRIPTS | ||
.EXTERNALSCRIPTDEPENDENCIES | ||
.RELEASENOTES First version. | ||
.PRIVATEDATA 2016-Datacenter,2016-Datacenter-Server-Core | ||
#> | ||
|
||
#Requires -module StorageDsc | ||
|
||
<# | ||
.DESCRIPTION | ||
This configuration will unmount an ISO file that is mounted in S:. | ||
#> | ||
configuration MountImage_DismountISO | ||
{ | ||
Import-DscResource -ModuleName StorageDsc | ||
|
||
MountImage ISO | ||
{ | ||
ImagePath = 'c:\Sources\SQL.iso' | ||
DriveLetter = 'S' | ||
Ensure = 'Absent' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<#PSScriptInfo | ||
.VERSION 1.0.0 | ||
.GUID 73bdd44d-4944-4217-a5ba-4f63948a1376 | ||
.AUTHOR Microsoft Corporation | ||
.COMPANYNAME Microsoft Corporation | ||
.COPYRIGHT | ||
.TAGS DSCConfiguration | ||
.LICENSEURI https://github.com/PowerShell/StorageDsc/blob/master/LICENSE | ||
.PROJECTURI https://github.com/PowerShell/StorageDsc | ||
.ICONURI | ||
.EXTERNALMODULEDEPENDENCIES | ||
.REQUIREDSCRIPTS | ||
.EXTERNALSCRIPTDEPENDENCIES | ||
.RELEASENOTES First version. | ||
.PRIVATEDATA 2016-Datacenter,2016-Datacenter-Server-Core | ||
#> | ||
|
||
#Requires -module StorageDsc | ||
|
||
<# | ||
.DESCRIPTION | ||
This configuration will mount an ISO file as drive S:. | ||
#> | ||
configuration MountImage_MountISO | ||
{ | ||
Import-DscResource -ModuleName StorageDsc | ||
|
||
MountImage ISO | ||
{ | ||
ImagePath = 'c:\Sources\SQL.iso' | ||
DriveLetter = 'S' | ||
} | ||
|
||
WaitForVolume WaitForISO | ||
{ | ||
DriveLetter = 'S' | ||
RetryIntervalSec = 5 | ||
RetryCount = 10 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<#PSScriptInfo | ||
.VERSION 1.0.0 | ||
.GUID c4b48b7c-2a0f-4d18-9806-9c1063b8de83 | ||
.AUTHOR Microsoft Corporation | ||
.COMPANYNAME Microsoft Corporation | ||
.COPYRIGHT | ||
.TAGS DSCConfiguration | ||
.LICENSEURI https://github.com/PowerShell/StorageDsc/blob/master/LICENSE | ||
.PROJECTURI https://github.com/PowerShell/StorageDsc | ||
.ICONURI | ||
.EXTERNALMODULEDEPENDENCIES | ||
.REQUIREDSCRIPTS | ||
.EXTERNALSCRIPTDEPENDENCIES | ||
.RELEASENOTES First version. | ||
.PRIVATEDATA 2016-Datacenter,2016-Datacenter-Server-Core | ||
#> | ||
|
||
#Requires -module StorageDsc | ||
|
||
<# | ||
.DESCRIPTION | ||
This configuration will mount a VHD file and wait for it to become available. | ||
#> | ||
configuration MountImage_MountVHD | ||
{ | ||
Import-DscResource -ModuleName StorageDsc | ||
|
||
MountImage MountVHD | ||
{ | ||
ImagePath = 'd:\Data\Disk1.vhd' | ||
DriveLetter = 'V' | ||
} | ||
|
||
WaitForVolume WaitForVHD | ||
{ | ||
DriveLetter = 'V' | ||
RetryIntervalSec = 5 | ||
RetryCount = 10 | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
Examples/Resources/OpticalDiskDriveLetter/1-OpticalDiskDriveLetter_SetDriveLetter.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<#PSScriptInfo | ||
.VERSION 1.0.0 | ||
.GUID 1ef469e5-eabf-4e5d-9ff4-f17d2894991f | ||
.AUTHOR Microsoft Corporation | ||
.COMPANYNAME Microsoft Corporation | ||
.COPYRIGHT | ||
.TAGS DSCConfiguration | ||
.LICENSEURI https://github.com/PowerShell/StorageDsc/blob/master/LICENSE | ||
.PROJECTURI https://github.com/PowerShell/StorageDsc | ||
.ICONURI | ||
.EXTERNALMODULEDEPENDENCIES | ||
.REQUIREDSCRIPTS | ||
.EXTERNALSCRIPTDEPENDENCIES | ||
.RELEASENOTES First version. | ||
.PRIVATEDATA 2016-Datacenter,2016-Datacenter-Server-Core | ||
#> | ||
|
||
#Requires -module StorageDsc | ||
|
||
<# | ||
.DESCRIPTION | ||
This configuration will set the drive letter of the first | ||
optical disk drive in the system to 'Z'. | ||
#> | ||
Configuration OpticalDiskDriveLetter_SetDriveLetter | ||
{ | ||
Import-DSCResource -ModuleName StorageDsc | ||
|
||
Node localhost | ||
{ | ||
OpticalDiskDriveLetter SetFirstOpticalDiskDriveLetterToZ | ||
{ | ||
DiskId = 1 | ||
DriveLetter = 'Z' | ||
} | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
Examples/Resources/OpticalDiskDriveLetter/2-OpticalDiskDriveLetter_RemoveDriveLetter.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<#PSScriptInfo | ||
.VERSION 1.0.0 | ||
.GUID f7d8127c-90fa-46ef-8dc7-42667a63f4db | ||
.AUTHOR Microsoft Corporation | ||
.COMPANYNAME Microsoft Corporation | ||
.COPYRIGHT | ||
.TAGS DSCConfiguration | ||
.LICENSEURI https://github.com/PowerShell/StorageDsc/blob/master/LICENSE | ||
.PROJECTURI https://github.com/PowerShell/StorageDsc | ||
.ICONURI | ||
.EXTERNALMODULEDEPENDENCIES | ||
.REQUIREDSCRIPTS | ||
.EXTERNALSCRIPTDEPENDENCIES | ||
.RELEASENOTES First version. | ||
.PRIVATEDATA 2016-Datacenter,2016-Datacenter-Server-Core | ||
#> | ||
|
||
#Requires -module StorageDsc | ||
|
||
<# | ||
.DESCRIPTION | ||
This configuration will remove the drive letter of the first | ||
optical disk drive. | ||
#> | ||
Configuration OpticalDiskDriveLetter_RemoveDriveLetter | ||
{ | ||
Import-DSCResource -ModuleName StorageDsc | ||
|
||
Node localhost | ||
{ | ||
OpticalDiskDriveLetter RemoveFirstOpticalDiskDriveLetter | ||
{ | ||
DiskId = 1 | ||
DriveLetter = 'X' # This value is ignored | ||
Ensure = 'Absent' | ||
} | ||
} | ||
} |
Oops, something went wrong.