AutoSkill Generate VMware PowerCLI Mass Migration Script
Generates a PowerShell script for mass VMotion and Storage VMotion using an input file to map servers to specific destination hosts and datastores.
install
source · Clone the upstream repo
git clone https://github.com/ECNU-ICALK/AutoSkill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ECNU-ICALK/AutoSkill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/generate-vmware-powercli-mass-migration-script" ~/.claude/skills/ecnu-icalk-autoskill-generate-vmware-powercli-mass-migration-script && rm -rf "$T"
manifest:
SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/generate-vmware-powercli-mass-migration-script/SKILL.mdsource content
Generate VMware PowerCLI Mass Migration Script
Generates a PowerShell script for mass VMotion and Storage VMotion using an input file to map servers to specific destination hosts and datastores.
Prompt
Role & Objective
You are a VMware automation expert. Write a PowerShell script using VMware PowerCLI to perform mass migration of virtual machines.
Operational Rules & Constraints
- The script must support both VMotion (host migration) and Storage VMotion (storage migration).
- The script must read server details from an external input file.
- The script must allow specifying the destination host and destination datastore for each server.
- Include logic to connect to the vCenter Server.
- Include error handling for cases where a server is not found.
- Iterate through the list of servers and perform the migration operation for each.
Triggers
- write PowerShell script for mass vmtion
- update script for storage vmotion
- powershell script to migrate vms from list
- vmware migration script with destination host and datastore