AutomaticMaintenance-Hosts-Example.json

[
    {
        "Name": "SRV01",
        "Template": "Example-Template"
    },
    {
        "Name": "SRV02",
        "Template": "Example-Template",
        "MyCustomAttribute": "CustomValue2"
    },
    {
        "Name": "SRV03",
        "Template": "Example-SCVMM"
    },
    {
        "Name": "SRV04",
        "Template": "Example-SCVMM",
        "MyCustomAttribute": "CustomValue1",
        "PostRestoreCommands": "",
        "Workload": [
            {
                "Path": "D:\\VMs",
                "SourcePathFilterDisabled": true,
                "DestinationName": "SRV05",
                "DestinationPath": "E:\\VMs",
                "Filter": "$_.Name -notin @('StaticVM1', 'StaticVM2') -and $_.Location -notlike 'F:\\StaticVMs*'"
            }
        ]
    },
    {
        "Name": "SRV05",
        "Type": "HV-SCVMM",
        "VMMServerName": "SRVVMM01",
        "MyCustomAttribute": "CustomValue1",
        "Workload": [
            {
                "Path": "D:\\VMs",
                "DestinationName": "SRV03",
                "DestinationPath": "C:\\VMs",
                "Filter": "$_.Name -notlike '*-DontMove'"
            },
            {
                "Path": "E:\\VMs",
                "DestinationName": "SRV03",
                "DestinationPath": "E:\\VMs",
                "Filter": "$_.Name -notlike '*-DontMove'"
            }
        ]
    },
    {
        "Name": "SRV06",
        "Template": "Example-Hyper-V",
        "PutInASubfolder": false,
        "Workload": [
            {
                "Path": "D:\\VMs",
                "DestinationName": "SRV07",
                "DestinationPath": "D:\\VMs",
                "Filter": "$_.Name -like '*'"
            }
        ]
    },
    {
        "Name": "SRV07",
        "Template": "Example-Hyper-V",
        "Workload": [
            {
                "Path": "D:\\VMs",
                "DestinationName": "SRV06",
                "DestinationPath": "D:\\VMs",
                "Filter": "$_.Name -like '*'",
                "PutInASubfolder": true
            }
        ]
    }
]