CopyAzVHDFromVMToLab.ps1 - warn that source VM will be stopped for as long as the copy takes
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 82/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- azure, powershell
- Domain
- cloud
Research direction
Start with samples/DevTestLabs/Scripts/CopyVirtualMachines/CopyAzVHDFromVMToLab.ps1 and review how the script handles SignatureExpire. Add a comment warning that the source VM remains stopped for the duration of the VHD copy, which may take over an hour for a large disk. Done when users can see this warning before running the script.
Written by the indexing model from the issue text.
Description
This script shuts down the source VM and blocks from restarting, probably for over an hour. Please add a comment to warn users about that.
WRT script:
samples/DevTestLabs/Scripts/CopyVirtualMachines/CopyAzVHDFromVMToLab.ps1
While running it, I found out that the source VM will be stopped by the script for the duration of the script execution.
The main contributor to that time is the copying of the VHD. That took over 1 hour for a 256GB disk. There was little network traffic on my laptop running the script, so I presume the copy was happening in the cloud.
It seems the script effectively locks the source VHD so the source VM cannot be restarted. This is probably controlled by the parameter SignatureExpire which defaults to 3600 (seconds, or 1 hour).
- Dominant language
- PowerShell
- Stars
- 465
- Forks
- 595
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Azure/azure-devtestlab
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
Azure/azure-devtestlab#914 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
Azure/azure-devtestlab#912 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
Azure/azure-devtestlab#909 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Azure/azure-devtestlab#905 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
Azure/azure-devtestlab#904 ·
All issues in Azure/azure-devtestlab
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
level/task module/gcp type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
bug needs-triage service/elbv2
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
hashicorp/terraform-provider-aws#50100 · 1 comment ·