HypervNetworkMappingArgs

data class HypervNetworkMappingArgs(val name: Output<String>? = null, val recoveryVaultId: Output<String>? = null, val sourceNetworkName: Output<String>? = null, val sourceSystemCenterVirtualMachineManagerName: Output<String>? = null, val targetNetworkId: Output<String>? = null) : ConvertibleToJava<HypervNetworkMappingArgs>

Manages a HyperV site recovery network mapping on Azure. A HyperV network mapping decides how to translate connected networks when a VM is migrated from HyperV VMM Center to Azure.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.recoveryservices.Vault;
import com.pulumi.azure.recoveryservices.VaultArgs;
import com.pulumi.azure.network.VirtualNetwork;
import com.pulumi.azure.network.VirtualNetworkArgs;
import com.pulumi.azure.siterecovery.HypervNetworkMapping;
import com.pulumi.azure.siterecovery.HypervNetworkMappingArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var target = new ResourceGroup("target", ResourceGroupArgs.builder()
.name("tfex-network-mapping")
.location("East US")
.build());
var vault = new Vault("vault", VaultArgs.builder()
.name("example-recovery-vault")
.location(target.location())
.resourceGroupName(target.name())
.sku("Standard")
.build());
var targetVirtualNetwork = new VirtualNetwork("targetVirtualNetwork", VirtualNetworkArgs.builder()
.name("network")
.resourceGroupName(target.name())
.addressSpaces("192.168.2.0/24")
.location(target.location())
.build());
var recovery_mapping = new HypervNetworkMapping("recovery-mapping", HypervNetworkMappingArgs.builder()
.name("recovery-network-mapping")
.recoveryVaultId(vault.id())
.sourceSystemCenterVirtualMachineManagerName("my-vmm-server")
.sourceNetworkName("my-vmm-network")
.targetNetworkId(targetVirtualNetwork.id())
.build());
}
}

Import

Site Recovery Network Mapping can be imported using the resource id, e.g.

$ pulumi import azure:siterecovery/hypervNetworkMapping:HypervNetworkMapping azurerm_site_recovery_hyperv_network_mapping.mymapping /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resource-group-name/providers/Microsoft.RecoveryServices/vaults/recovery-vault-name/replicationFabrics/primary-fabric-name/replicationNetworks/azureNetwork/replicationNetworkMappings/mapping-name

Constructors

Link copied to clipboard
fun HypervNetworkMappingArgs(name: Output<String>? = null, recoveryVaultId: Output<String>? = null, sourceNetworkName: Output<String>? = null, sourceSystemCenterVirtualMachineManagerName: Output<String>? = null, targetNetworkId: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): HypervNetworkMappingArgs

Properties

Link copied to clipboard
val name: Output<String>? = null

The name of the HyperV network mapping. Changing this forces a new resource to be created.

Link copied to clipboard
val recoveryVaultId: Output<String>? = null

The ID of the Recovery Services Vault where the HyperV network mapping should be created. Changing this forces a new resource to be created.

Link copied to clipboard
val sourceNetworkName: Output<String>? = null

The Name of the primary network. Changing this forces a new resource to be created.

Specifies the name of source System Center Virtual Machine Manager where the source network exists. Changing this forces a new resource to be created.

Link copied to clipboard
val targetNetworkId: Output<String>? = null

The id of the recovery network. Changing this forces a new resource to be created.