VirtualHubIpArgs

data class VirtualHubIpArgs(val name: Output<String>? = null, val privateIpAddress: Output<String>? = null, val privateIpAllocationMethod: Output<String>? = null, val publicIpAddressId: Output<String>? = null, val subnetId: Output<String>? = null, val virtualHubId: Output<String>? = null) : ConvertibleToJava<VirtualHubIpArgs>

Manages a Virtual Hub IP. This resource is also known as a Route Server.

NOTE Virtual Hub IP only supports Standard Virtual Hub without Virtual Wan.

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.network.VirtualHub;
import com.pulumi.azure.network.VirtualHubArgs;
import com.pulumi.azure.network.PublicIp;
import com.pulumi.azure.network.PublicIpArgs;
import com.pulumi.azure.network.VirtualNetwork;
import com.pulumi.azure.network.VirtualNetworkArgs;
import com.pulumi.azure.network.Subnet;
import com.pulumi.azure.network.SubnetArgs;
import com.pulumi.azure.network.VirtualHubIp;
import com.pulumi.azure.network.VirtualHubIpArgs;
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleVirtualHub = new VirtualHub("exampleVirtualHub", VirtualHubArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.sku("Standard")
.build());
var examplePublicIp = new PublicIp("examplePublicIp", PublicIpArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.allocationMethod("Static")
.sku("Standard")
.build());
var exampleVirtualNetwork = new VirtualNetwork("exampleVirtualNetwork", VirtualNetworkArgs.builder()
.addressSpaces("10.5.0.0/16")
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.build());
var exampleSubnet = new Subnet("exampleSubnet", SubnetArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.virtualNetworkName(exampleVirtualNetwork.name())
.addressPrefixes("10.5.1.0/24")
.build());
var exampleVirtualHubIp = new VirtualHubIp("exampleVirtualHubIp", VirtualHubIpArgs.builder()
.virtualHubId(exampleVirtualHub.id())
.privateIpAddress("10.5.1.18")
.privateIpAllocationMethod("Static")
.publicIpAddressId(examplePublicIp.id())
.subnetId(exampleSubnet.id())
.build());
}
}

Import

Virtual Hub IPs can be imported using the resource id, e.g.

$ pulumi import azure:network/virtualHubIp:VirtualHubIp example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Network/virtualHubs/virtualHub1/ipConfigurations/ipConfig1

Constructors

Link copied to clipboard
fun VirtualHubIpArgs(name: Output<String>? = null, privateIpAddress: Output<String>? = null, privateIpAllocationMethod: Output<String>? = null, publicIpAddressId: Output<String>? = null, subnetId: Output<String>? = null, virtualHubId: Output<String>? = null)

Functions

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

Properties

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

The name which should be used for this Virtual Hub IP. Changing this forces a new resource to be created.

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

The private IP address of the IP configuration.

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

The private IP address allocation method. Possible values are Static and Dynamic is allowed. Defaults to Dynamic.

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

The ID of the Public IP Address. This option is required since September 1st 2021. Changing this forces a new resource to be created.

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

The ID of the Subnet that the IP will reside. Changing this forces a new resource to be created.

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

The ID of the Virtual Hub within which this IP configuration should be created. Changing this forces a new resource to be created.