-
Notifications
You must be signed in to change notification settings - Fork 604
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(WIP) VMDirectStorage descriptions - AI-generated #3953
base: main
Are you sure you want to change the base?
Conversation
Learn Build status updates of commit 72f4dbd: ✅ Validation status: passed
For more details, please refer to the build report. For any questions, please:
|
Learn Build status updates of commit 249dced: ✅ Validation status: passed
For more details, please refer to the build report. For any questions, please:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See my notes and suggested changes.
```powershell | ||
PS C:\> {{ Add example code here }} | ||
PS C:\> Add-VMDirectVirtualDisk -VMName "VM01" -ControllerType SCSI -ControllerNumber 0 -ControllerLocation 1 -VirtualDiskUniqueId "12345678-ABCD-1234-ABCD-1234567890AB" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't use the prompt in the example. For long command lines, use PowerShell splatting.
PS C:\> Add-VMDirectVirtualDisk -VMName "VM01" -ControllerType SCSI -ControllerNumber 0 -ControllerLocation 1 -VirtualDiskUniqueId "12345678-ABCD-1234-ABCD-1234567890AB" | |
$parameters = @{ | |
VMName = "VM01" | |
ControllerType = 'SCSI' | |
ControllerNumber = 0 | |
ControllerLocation = 1 | |
VirtualDiskUniqueId = "12345678-ABCD-1234-ABCD-1234567890AB" | |
} | |
Add-VMDirectVirtualDisk @parameters |
``` | ||
Add-VMDirectVirtualDisk [-VMDriveController] <VMDriveController> [-ControllerLocation <Int32>] | ||
[-VirtualDiskUniqueId <String>] [<CommonParameters>] | ||
``` | ||
|
||
## DESCRIPTION | ||
{{ Fill in the Description }} | ||
|
||
The `Add-VMDirectVirtualDisk` cmdlet attaches an existing virtual disk directly to a Hyper-V virtual machine. Direct-attached virtual disks provide improved storage performance by bypassing traditional virtual storage layers. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrap lines at 100 characters
The `Add-VMDirectVirtualDisk` cmdlet attaches an existing virtual disk directly to a Hyper-V virtual machine. Direct-attached virtual disks provide improved storage performance by bypassing traditional virtual storage layers. | |
The `Add-VMDirectVirtualDisk` cmdlet attaches an existing virtual disk directly to a Hyper-V virtual | |
machine. Direct-attached virtual disks provide improved storage performance by bypassing traditional | |
virtual storage layers. |
``` | ||
|
||
{{ Add example description here }} | ||
This command attaches a virtual disk identified by its unique ID directly to the SCSI controller 0 at location 1 on the virtual machine named VM01. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This command attaches a virtual disk identified by its unique ID directly to the SCSI controller 0 at location 1 on the virtual machine named VM01. | |
This command attaches a virtual disk identified by its unique ID directly to the SCSI controller 0 | |
at location 1 on the virtual machine named VM01. |
@@ -64,7 +72,8 @@ Accept wildcard characters: False | |||
``` | |||
|
|||
### -ControllerLocation | |||
{{ Fill ControllerLocation Description }} | |||
|
|||
Specifies the location on the controller where the virtual disk is attached. Valid values are from 0 to 63. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Specifies the location on the controller where the virtual disk is attached. Valid values are from 0 to 63. | |
Specifies the location on the controller where the virtual disk is attached. Valid values are from 0 | |
to 63. |
@@ -170,19 +185,34 @@ Accept wildcard characters: False | |||
``` | |||
|
|||
### CommonParameters | |||
|
|||
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). | |
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, | |
-InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, | |
-WarningAction, and -WarningVariable. For more information, see | |
[about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). |
PS C:\> $disk = Get-VMDirectVirtualDisk -VMName "VM01" | ||
PS C:\> Remove-VMDirectVirtualDisk -VirtualDisk $disk |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PS C:\> $disk = Get-VMDirectVirtualDisk -VMName "VM01" | |
PS C:\> Remove-VMDirectVirtualDisk -VirtualDisk $disk | |
$disk = Get-VMDirectVirtualDisk -VMName "VM01" | |
Remove-VMDirectVirtualDisk -VirtualDisk $disk |
``` | ||
|
||
{{ Add example description here }} | ||
This command retrieves all direct-attached virtual disks on the virtual machine named VM01 and removes them. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This command retrieves all direct-attached virtual disks on the virtual machine named VM01 and removes them. | |
This command retrieves all direct-attached virtual disks on the virtual machine named VM01 and | |
removes them. |
@@ -131,17 +152,30 @@ Accept wildcard characters: False | |||
``` | |||
|
|||
### CommonParameters | |||
|
|||
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). | |
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, | |
-InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, | |
-WarningAction, and -WarningVariable. For more information, see | |
[about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). |
[Add-VMDirectVirtualDisk](Add-VMDirectVirtualDisk.md) | ||
[Get-VMDirectVirtualDisk](Get-VMDirectVirtualDisk.md) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Add-VMDirectVirtualDisk](Add-VMDirectVirtualDisk.md) | |
[Get-VMDirectVirtualDisk](Get-VMDirectVirtualDisk.md) | |
[Add-VMDirectVirtualDisk](Add-VMDirectVirtualDisk.md) | |
[Get-VMDirectVirtualDisk](Get-VMDirectVirtualDisk.md) |
## Description | ||
{{ Fill in the Description }} | ||
|
||
The VMDirectStorage module provides cmdlets for managing direct-attached virtual disks in Hyper-V virtual machines. These cmdlets allow administrators to add, retrieve, and remove direct-attached virtual disks, enabling efficient storage management and improved performance for virtualized workloads. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The VMDirectStorage module provides cmdlets for managing direct-attached virtual disks in Hyper-V virtual machines. These cmdlets allow administrators to add, retrieve, and remove direct-attached virtual disks, enabling efficient storage management and improved performance for virtualized workloads. | |
The VMDirectStorage module provides cmdlets for managing direct-attached virtual disks in Hyper-V | |
virtual machines. These cmdlets allow administrators to add, retrieve, and remove direct-attached | |
virtual disks, enabling efficient storage management and improved performance for virtualized | |
workloads. |
PR Summary
EXPERIMENTAL: AI-generated draft content for VMDirectStorage module, which currently lacks all descriptions. Edits made by GitHub Copilot in Visual Studio Code using GPT 4.5 Preview and 4o, referencing the module source code. Will evaluate content quality and accuracy before publishing or using this method for any additional modules - this is an experiment and might serve no other function than to prompt human-authored content creation.
AI prompt:
Edit all files in the VMDirectStorage folder, replacing all sections that include {{ Fill }} with carefully written text. Also write descriptions for each object type in the ## INPUTS and ##OUTPUTS sections.
Do not edit the Untitled-1 text file. Instead use the Untitled text file as source material for your edits - this file contains the source code for all cmdlets. Also use web research for information on parameters and objects and #File:Get-physicaldisk.md as an example of good writing for descriptions. Write for an IT Pro audience using the Microsoft Writing Style Guide and the PowerShell style guide here: [https://learn.microsoft.com/en-us/powershell/scripting/community/contributing/powershell-style-guide?view=powershell-7.5]. Make sure that "cmdlets" is sentence case.
When you're finished, review all files again checking for anything you missed, and update the ms.date parameter with the date 3/20/2025. Also add to the end of the metadata section ai-usage: ai-generated. Add blank lines around headings and fenced code blocks.
PR Checklist