import * as pulumi from "@pulumi/pulumi"; /** * 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 * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const target = new azure.core.ResourceGroup("target", { * name: "tfex-network-mapping", * location: "East US", * }); * const vault = new azure.recoveryservices.Vault("vault", { * name: "example-recovery-vault", * location: target.location, * resourceGroupName: target.name, * sku: "Standard", * }); * const targetVirtualNetwork = new azure.network.VirtualNetwork("target", { * name: "network", * resourceGroupName: target.name, * addressSpaces: ["192.168.2.0/24"], * location: target.location, * }); * const recovery_mapping = new azure.siterecovery.HypervNetworkMapping("recovery-mapping", { * name: "recovery-network-mapping", * recoveryVaultId: vault.id, * sourceSystemCenterVirtualMachineManagerName: "my-vmm-server", * sourceNetworkName: "my-vmm-network", * targetNetworkId: targetVirtualNetwork.id, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.RecoveryServices` - 2024-04-01 * * ## Import * * Site Recovery Network Mapping can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:siterecovery/hypervNetworkMapping:HypervNetworkMapping 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 * ``` */ export declare class HypervNetworkMapping extends pulumi.CustomResource { /** * Get an existing HypervNetworkMapping resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: HypervNetworkMappingState, opts?: pulumi.CustomResourceOptions): HypervNetworkMapping; /** * Returns true if the given object is an instance of HypervNetworkMapping. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is HypervNetworkMapping; /** * The name of the HyperV network mapping. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * The ID of the Recovery Services Vault where the HyperV network mapping should be created. Changing this forces a new resource to be created. */ readonly recoveryVaultId: pulumi.Output; /** * The Name of the primary network. Changing this forces a new resource to be created. */ readonly sourceNetworkName: pulumi.Output; /** * Specifies the name of source System Center Virtual Machine Manager where the source network exists. Changing this forces a new resource to be created. */ readonly sourceSystemCenterVirtualMachineManagerName: pulumi.Output; /** * The id of the recovery network. Changing this forces a new resource to be created. */ readonly targetNetworkId: pulumi.Output; /** * Create a HypervNetworkMapping resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: HypervNetworkMappingArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering HypervNetworkMapping resources. */ export interface HypervNetworkMappingState { /** * The name of the HyperV network mapping. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The ID of the Recovery Services Vault where the HyperV network mapping should be created. Changing this forces a new resource to be created. */ recoveryVaultId?: pulumi.Input; /** * The Name of the primary network. Changing this forces a new resource to be created. */ sourceNetworkName?: pulumi.Input; /** * Specifies the name of source System Center Virtual Machine Manager where the source network exists. Changing this forces a new resource to be created. */ sourceSystemCenterVirtualMachineManagerName?: pulumi.Input; /** * The id of the recovery network. Changing this forces a new resource to be created. */ targetNetworkId?: pulumi.Input; } /** * The set of arguments for constructing a HypervNetworkMapping resource. */ export interface HypervNetworkMappingArgs { /** * The name of the HyperV network mapping. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The ID of the Recovery Services Vault where the HyperV network mapping should be created. Changing this forces a new resource to be created. */ recoveryVaultId: pulumi.Input; /** * The Name of the primary network. Changing this forces a new resource to be created. */ sourceNetworkName: pulumi.Input; /** * Specifies the name of source System Center Virtual Machine Manager where the source network exists. Changing this forces a new resource to be created. */ sourceSystemCenterVirtualMachineManagerName: pulumi.Input; /** * The id of the recovery network. Changing this forces a new resource to be created. */ targetNetworkId: pulumi.Input; }