rvtools2azmigrate
Convert an RVTools export to an Azure Migrate CSV inventory file.
- Free software: MIT license
Features
- Convert an RVTools export to an Azure Migrate CSV inventory file
- Anonymize the VM data by replacing the hostname with UUIDs
- Filter powered-off VMs
Installation
Using PIP
pip install rvtools2azmigrate
From sources
The sources for rvtools2azmigrate can be downloaded from the Github repo.
You can either clone the public repository:
git clone git://github.com/lrivallain/rvtools2azmigrate
Or download the tarball:
curl -OJL https://github.com/lrivallain/rvtools2azmigrate/tarball/master
Once you have a copy of the source, you can install it with:
python setup.py install
or
pip install .
Usage
rvtools2azmigrate --help
# Output
Usage: rvtools2azmigrate [OPTIONS] COMMAND[ARGS]...
Options:
--debug
--help Show this message and exit.
Commands:
convert Convert RVTools file to Azure Migrate format
Convert RVTools file to Azure Migrate format
rvtools2azmigrate convert --help
# Output
Usage: rvtools2azmigrate convert [OPTIONS]
Convert RVTools file to Azure Migrate format
Options:
-i, --rvtools PATH RVTools input file [required]
-o, --output PATH Ouptut file [required]
--anonymized Anonymize the output file by replacing VM names with UUIDs
--filter-off-vms Filter the powered-off VMs
--filter-out TEXT Filter out VMs based on the provided patterns (contains + case-insensitive)
--help Show this message and exit.
Examples
Anonymized
rvtools2azmigrate convert -i rvtools.xlsx -o azuremigrate.csv --anonymized
This will provide a CSV file to be imported in Azure Migrate manual discovery section. VMs names will be replaced by their UUID to anonymize the content of the exported file.
Filter off VMs
rvtools2azmigrate convert -i rvtools.xlsx -o azuremigrate.csv --filter-off-vms
This will provide a CSV file to be imported in Azure Migrate manual discovery section. Powered-Off VMs will not be exported to the CSV file.
Filter out VMs based on naming
It is possible to specify a list of patterns to filter out VMs based on their name.
rvtools2azmigrate convert -i rvtools.xlsx -o azuremigrate.csv \
--filter-out pattern1 \
--filter-out pattern2 \
--filter-out pattern3
This will provide a CSV file to be imported in Azure Migrate manual discovery section. VMs with one of the pattern in their name will be filtered out and not part of the exported file.
History
0.2.0 (2024-05-21)
- Feat: Use python-slugify to generate VM names
- Feat: Filter out VMs based on name with
--filter-out pattern1 --filter-out pattern2
0.1.3 (2023-10-11)
- Fix #2: Incorrect output if RV Tools input has a VM name with spaces in it
0.1.2 (2023-02-16)
- Fix import issue when used as installed module
0.1.1 (2023-02-03)
- Filter Powered-off VMs
- Automatic MiB/MB detection
- Intermediate
RvToolsVMandAzMigrateVMobjects
0.1.0 (2022-12-22)
- First release on GitHub.
Metadata
Release files for rvtools2azmigrate 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rvtools2azmigrate-0.2.0.tar.gz | 9.3 kB | Without provenance | Details for rvtools2azmigrate-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rvtools2azmigrate-0.2.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for rvtools2azmigrate-0.2.0-py2.py3-none-any.whl |
Total release size: 19.3 kB
Release files / rvtools2azmigrate-0.2.0.tar.gz
| Download URL | rvtools2azmigrate-0.2.0.tar.gz |
|---|---|
| Size | 9.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
64a64f813f7780f1a1cf811e0de2a6021e6e24078577bb633b24ec30309e7998
|
|
BLAKE2b-256 checksum How to use checksums |
1132cf4c872dfab32983a085eb40fcd80e827b41cbecdb2aad71936a20cbceaf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.10.14
|
Release files / rvtools2azmigrate-0.2.0-py2.py3-none-any.whl
| Download URL | rvtools2azmigrate-0.2.0-py2.py3-none-any.whl |
|---|---|
| Size | 10.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
5bc4793a08eb677956e2f994444d1e315d76c922ece5093912acbb6a1d450469
|
|
BLAKE2b-256 checksum How to use checksums |
f02dd21fac32060e17f18b61113996a9a90ee3e5bbefa13b28067a494404723b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.10.14
|
Security for rvtools2azmigrate 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.