Skip to content

Commit 7b6aa51

Browse files
feat: add config/variables.example.yml for org-wide consistency (issue #15)
- Create config/ directory with variables.example.yml - Documents common parameters needed across all conversion scripts - Uses org standard snake_case naming and IIC placeholder values - Add config/variables.yml to .gitignore Resolves AzureLocal/azurelocal.github.io#15
1 parent e9a927d commit 7b6aa51

2 files changed

Lines changed: 51 additions & 0 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ Backups/
44
Temp/
55
Configs/
66

7+
# User-specific config (actual values — never commit)
8+
config/variables.yml
9+
710
# Log and report files
811
*.log
912
*.csv

config/variables.example.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# =============================================================================
2+
# variables.example.yml
3+
# Central variable reference for VM Gen1-to-Gen2 conversion scripts.
4+
#
5+
# Copy this file to variables.yml and fill in your values:
6+
# cp config/variables.example.yml config/variables.yml
7+
#
8+
# DO NOT commit variables.yml — it is excluded by .gitignore.
9+
#
10+
# NOTE: These scripts currently accept parameters directly on the command line.
11+
# This file documents the common values you will need across all scripts.
12+
# Future versions may support loading from this file directly.
13+
# =============================================================================
14+
15+
16+
# =============================================================================
17+
# Azure
18+
# =============================================================================
19+
azure:
20+
subscription_id: "00000000-0000-0000-0000-000000000000"
21+
resource_group: "rg-azurelocal-prod"
22+
location: "eastus"
23+
24+
25+
# =============================================================================
26+
# Azure Local
27+
# =============================================================================
28+
azure_local:
29+
custom_location_id: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-azurelocal/providers/Microsoft.ExtendedLocation/customLocations/cl-azurelocal-01"
30+
logical_network_id: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-azurelocal/providers/Microsoft.AzureStackHCI/logicalNetworks/lnet-mgmt-01"
31+
32+
33+
# =============================================================================
34+
# Conversion Settings
35+
# =============================================================================
36+
conversion:
37+
working_directory: "C:\\ClusterStorage\\Volume01\\Gen2Conversion"
38+
max_parallel: 1 # VMs to process in parallel (1 = sequential)
39+
40+
41+
# =============================================================================
42+
# Tags
43+
# =============================================================================
44+
tags:
45+
project: "VM-Conversion"
46+
environment: "production"
47+
workload: "gen1-to-gen2"
48+
solution: "vmconvert-azure-local"

0 commit comments

Comments
 (0)