1. Packages
  2. Azure Classic
  3. API Docs
  4. network
  5. VirtualHubIp

We recommend using Azure Native.

Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi

azure.network.VirtualHubIp

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi

    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

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = new azure.core.ResourceGroup("example", {
        name: "example-resources",
        location: "West Europe",
    });
    const exampleVirtualHub = new azure.network.VirtualHub("example", {
        name: "example-vhub",
        resourceGroupName: example.name,
        location: example.location,
        sku: "Standard",
    });
    const examplePublicIp = new azure.network.PublicIp("example", {
        name: "example-pip",
        location: example.location,
        resourceGroupName: example.name,
        allocationMethod: "Static",
        sku: "Standard",
    });
    const exampleVirtualNetwork = new azure.network.VirtualNetwork("example", {
        name: "example-vnet",
        addressSpaces: ["10.5.0.0/16"],
        location: example.location,
        resourceGroupName: example.name,
    });
    const exampleSubnet = new azure.network.Subnet("example", {
        name: "RouteServerSubnet",
        resourceGroupName: example.name,
        virtualNetworkName: exampleVirtualNetwork.name,
        addressPrefixes: ["10.5.1.0/24"],
    });
    const exampleVirtualHubIp = new azure.network.VirtualHubIp("example", {
        name: "example-vhubipconfig",
        virtualHubId: exampleVirtualHub.id,
        privateIpAddress: "10.5.1.18",
        privateIpAllocationMethod: "Static",
        publicIpAddressId: examplePublicIp.id,
        subnetId: exampleSubnet.id,
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.core.ResourceGroup("example",
        name="example-resources",
        location="West Europe")
    example_virtual_hub = azure.network.VirtualHub("example",
        name="example-vhub",
        resource_group_name=example.name,
        location=example.location,
        sku="Standard")
    example_public_ip = azure.network.PublicIp("example",
        name="example-pip",
        location=example.location,
        resource_group_name=example.name,
        allocation_method="Static",
        sku="Standard")
    example_virtual_network = azure.network.VirtualNetwork("example",
        name="example-vnet",
        address_spaces=["10.5.0.0/16"],
        location=example.location,
        resource_group_name=example.name)
    example_subnet = azure.network.Subnet("example",
        name="RouteServerSubnet",
        resource_group_name=example.name,
        virtual_network_name=example_virtual_network.name,
        address_prefixes=["10.5.1.0/24"])
    example_virtual_hub_ip = azure.network.VirtualHubIp("example",
        name="example-vhubipconfig",
        virtual_hub_id=example_virtual_hub.id,
        private_ip_address="10.5.1.18",
        private_ip_allocation_method="Static",
        public_ip_address_id=example_public_ip.id,
        subnet_id=example_subnet.id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/network"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
    			Name:     pulumi.String("example-resources"),
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleVirtualHub, err := network.NewVirtualHub(ctx, "example", &network.VirtualHubArgs{
    			Name:              pulumi.String("example-vhub"),
    			ResourceGroupName: example.Name,
    			Location:          example.Location,
    			Sku:               pulumi.String("Standard"),
    		})
    		if err != nil {
    			return err
    		}
    		examplePublicIp, err := network.NewPublicIp(ctx, "example", &network.PublicIpArgs{
    			Name:              pulumi.String("example-pip"),
    			Location:          example.Location,
    			ResourceGroupName: example.Name,
    			AllocationMethod:  pulumi.String("Static"),
    			Sku:               pulumi.String("Standard"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, "example", &network.VirtualNetworkArgs{
    			Name: pulumi.String("example-vnet"),
    			AddressSpaces: pulumi.StringArray{
    				pulumi.String("10.5.0.0/16"),
    			},
    			Location:          example.Location,
    			ResourceGroupName: example.Name,
    		})
    		if err != nil {
    			return err
    		}
    		exampleSubnet, err := network.NewSubnet(ctx, "example", &network.SubnetArgs{
    			Name:               pulumi.String("RouteServerSubnet"),
    			ResourceGroupName:  example.Name,
    			VirtualNetworkName: exampleVirtualNetwork.Name,
    			AddressPrefixes: pulumi.StringArray{
    				pulumi.String("10.5.1.0/24"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = network.NewVirtualHubIp(ctx, "example", &network.VirtualHubIpArgs{
    			Name:                      pulumi.String("example-vhubipconfig"),
    			VirtualHubId:              exampleVirtualHub.ID(),
    			PrivateIpAddress:          pulumi.String("10.5.1.18"),
    			PrivateIpAllocationMethod: pulumi.String("Static"),
    			PublicIpAddressId:         examplePublicIp.ID(),
    			SubnetId:                  exampleSubnet.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Azure.Core.ResourceGroup("example", new()
        {
            Name = "example-resources",
            Location = "West Europe",
        });
    
        var exampleVirtualHub = new Azure.Network.VirtualHub("example", new()
        {
            Name = "example-vhub",
            ResourceGroupName = example.Name,
            Location = example.Location,
            Sku = "Standard",
        });
    
        var examplePublicIp = new Azure.Network.PublicIp("example", new()
        {
            Name = "example-pip",
            Location = example.Location,
            ResourceGroupName = example.Name,
            AllocationMethod = "Static",
            Sku = "Standard",
        });
    
        var exampleVirtualNetwork = new Azure.Network.VirtualNetwork("example", new()
        {
            Name = "example-vnet",
            AddressSpaces = new[]
            {
                "10.5.0.0/16",
            },
            Location = example.Location,
            ResourceGroupName = example.Name,
        });
    
        var exampleSubnet = new Azure.Network.Subnet("example", new()
        {
            Name = "RouteServerSubnet",
            ResourceGroupName = example.Name,
            VirtualNetworkName = exampleVirtualNetwork.Name,
            AddressPrefixes = new[]
            {
                "10.5.1.0/24",
            },
        });
    
        var exampleVirtualHubIp = new Azure.Network.VirtualHubIp("example", new()
        {
            Name = "example-vhubipconfig",
            VirtualHubId = exampleVirtualHub.Id,
            PrivateIpAddress = "10.5.1.18",
            PrivateIpAllocationMethod = "Static",
            PublicIpAddressId = examplePublicIp.Id,
            SubnetId = exampleSubnet.Id,
        });
    
    });
    
    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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
                .name("example-resources")
                .location("West Europe")
                .build());
    
            var exampleVirtualHub = new VirtualHub("exampleVirtualHub", VirtualHubArgs.builder()
                .name("example-vhub")
                .resourceGroupName(example.name())
                .location(example.location())
                .sku("Standard")
                .build());
    
            var examplePublicIp = new PublicIp("examplePublicIp", PublicIpArgs.builder()
                .name("example-pip")
                .location(example.location())
                .resourceGroupName(example.name())
                .allocationMethod("Static")
                .sku("Standard")
                .build());
    
            var exampleVirtualNetwork = new VirtualNetwork("exampleVirtualNetwork", VirtualNetworkArgs.builder()
                .name("example-vnet")
                .addressSpaces("10.5.0.0/16")
                .location(example.location())
                .resourceGroupName(example.name())
                .build());
    
            var exampleSubnet = new Subnet("exampleSubnet", SubnetArgs.builder()
                .name("RouteServerSubnet")
                .resourceGroupName(example.name())
                .virtualNetworkName(exampleVirtualNetwork.name())
                .addressPrefixes("10.5.1.0/24")
                .build());
    
            var exampleVirtualHubIp = new VirtualHubIp("exampleVirtualHubIp", VirtualHubIpArgs.builder()
                .name("example-vhubipconfig")
                .virtualHubId(exampleVirtualHub.id())
                .privateIpAddress("10.5.1.18")
                .privateIpAllocationMethod("Static")
                .publicIpAddressId(examplePublicIp.id())
                .subnetId(exampleSubnet.id())
                .build());
    
        }
    }
    
    resources:
      example:
        type: azure:core:ResourceGroup
        properties:
          name: example-resources
          location: West Europe
      exampleVirtualHub:
        type: azure:network:VirtualHub
        name: example
        properties:
          name: example-vhub
          resourceGroupName: ${example.name}
          location: ${example.location}
          sku: Standard
      examplePublicIp:
        type: azure:network:PublicIp
        name: example
        properties:
          name: example-pip
          location: ${example.location}
          resourceGroupName: ${example.name}
          allocationMethod: Static
          sku: Standard
      exampleVirtualNetwork:
        type: azure:network:VirtualNetwork
        name: example
        properties:
          name: example-vnet
          addressSpaces:
            - 10.5.0.0/16
          location: ${example.location}
          resourceGroupName: ${example.name}
      exampleSubnet:
        type: azure:network:Subnet
        name: example
        properties:
          name: RouteServerSubnet
          resourceGroupName: ${example.name}
          virtualNetworkName: ${exampleVirtualNetwork.name}
          addressPrefixes:
            - 10.5.1.0/24
      exampleVirtualHubIp:
        type: azure:network:VirtualHubIp
        name: example
        properties:
          name: example-vhubipconfig
          virtualHubId: ${exampleVirtualHub.id}
          privateIpAddress: 10.5.1.18
          privateIpAllocationMethod: Static
          publicIpAddressId: ${examplePublicIp.id}
          subnetId: ${exampleSubnet.id}
    

    Create VirtualHubIp Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new VirtualHubIp(name: string, args: VirtualHubIpArgs, opts?: CustomResourceOptions);
    @overload
    def VirtualHubIp(resource_name: str,
                     args: VirtualHubIpArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def VirtualHubIp(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     public_ip_address_id: Optional[str] = None,
                     subnet_id: Optional[str] = None,
                     virtual_hub_id: Optional[str] = None,
                     name: Optional[str] = None,
                     private_ip_address: Optional[str] = None,
                     private_ip_allocation_method: Optional[str] = None)
    func NewVirtualHubIp(ctx *Context, name string, args VirtualHubIpArgs, opts ...ResourceOption) (*VirtualHubIp, error)
    public VirtualHubIp(string name, VirtualHubIpArgs args, CustomResourceOptions? opts = null)
    public VirtualHubIp(String name, VirtualHubIpArgs args)
    public VirtualHubIp(String name, VirtualHubIpArgs args, CustomResourceOptions options)
    
    type: azure:network:VirtualHubIp
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args VirtualHubIpArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args VirtualHubIpArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args VirtualHubIpArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VirtualHubIpArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VirtualHubIpArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var virtualHubIpResource = new Azure.Network.VirtualHubIp("virtualHubIpResource", new()
    {
        PublicIpAddressId = "string",
        SubnetId = "string",
        VirtualHubId = "string",
        Name = "string",
        PrivateIpAddress = "string",
        PrivateIpAllocationMethod = "string",
    });
    
    example, err := network.NewVirtualHubIp(ctx, "virtualHubIpResource", &network.VirtualHubIpArgs{
    	PublicIpAddressId:         pulumi.String("string"),
    	SubnetId:                  pulumi.String("string"),
    	VirtualHubId:              pulumi.String("string"),
    	Name:                      pulumi.String("string"),
    	PrivateIpAddress:          pulumi.String("string"),
    	PrivateIpAllocationMethod: pulumi.String("string"),
    })
    
    var virtualHubIpResource = new VirtualHubIp("virtualHubIpResource", VirtualHubIpArgs.builder()
        .publicIpAddressId("string")
        .subnetId("string")
        .virtualHubId("string")
        .name("string")
        .privateIpAddress("string")
        .privateIpAllocationMethod("string")
        .build());
    
    virtual_hub_ip_resource = azure.network.VirtualHubIp("virtualHubIpResource",
        public_ip_address_id="string",
        subnet_id="string",
        virtual_hub_id="string",
        name="string",
        private_ip_address="string",
        private_ip_allocation_method="string")
    
    const virtualHubIpResource = new azure.network.VirtualHubIp("virtualHubIpResource", {
        publicIpAddressId: "string",
        subnetId: "string",
        virtualHubId: "string",
        name: "string",
        privateIpAddress: "string",
        privateIpAllocationMethod: "string",
    });
    
    type: azure:network:VirtualHubIp
    properties:
        name: string
        privateIpAddress: string
        privateIpAllocationMethod: string
        publicIpAddressId: string
        subnetId: string
        virtualHubId: string
    

    VirtualHubIp Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The VirtualHubIp resource accepts the following input properties:

    PublicIpAddressId string
    The ID of the Public IP Address. This option is required since September 1st 2021. Changing this forces a new resource to be created.
    SubnetId string
    The ID of the Subnet that the IP will reside. Changing this forces a new resource to be created.
    VirtualHubId string
    The ID of the Virtual Hub within which this IP configuration should be created. Changing this forces a new resource to be created.
    Name string
    The name which should be used for this Virtual Hub IP. Changing this forces a new resource to be created.
    PrivateIpAddress string
    The private IP address of the IP configuration.
    PrivateIpAllocationMethod string
    The private IP address allocation method. Possible values are Static and Dynamic is allowed. Defaults to Dynamic.
    PublicIpAddressId string
    The ID of the Public IP Address. This option is required since September 1st 2021. Changing this forces a new resource to be created.
    SubnetId string
    The ID of the Subnet that the IP will reside. Changing this forces a new resource to be created.
    VirtualHubId string
    The ID of the Virtual Hub within which this IP configuration should be created. Changing this forces a new resource to be created.
    Name string
    The name which should be used for this Virtual Hub IP. Changing this forces a new resource to be created.
    PrivateIpAddress string
    The private IP address of the IP configuration.
    PrivateIpAllocationMethod string
    The private IP address allocation method. Possible values are Static and Dynamic is allowed. Defaults to Dynamic.
    publicIpAddressId String
    The ID of the Public IP Address. This option is required since September 1st 2021. Changing this forces a new resource to be created.
    subnetId String
    The ID of the Subnet that the IP will reside. Changing this forces a new resource to be created.
    virtualHubId String
    The ID of the Virtual Hub within which this IP configuration should be created. Changing this forces a new resource to be created.
    name String
    The name which should be used for this Virtual Hub IP. Changing this forces a new resource to be created.
    privateIpAddress String
    The private IP address of the IP configuration.
    privateIpAllocationMethod String
    The private IP address allocation method. Possible values are Static and Dynamic is allowed. Defaults to Dynamic.
    publicIpAddressId string
    The ID of the Public IP Address. This option is required since September 1st 2021. Changing this forces a new resource to be created.
    subnetId string
    The ID of the Subnet that the IP will reside. Changing this forces a new resource to be created.
    virtualHubId string
    The ID of the Virtual Hub within which this IP configuration should be created. Changing this forces a new resource to be created.
    name string
    The name which should be used for this Virtual Hub IP. Changing this forces a new resource to be created.
    privateIpAddress string
    The private IP address of the IP configuration.
    privateIpAllocationMethod string
    The private IP address allocation method. Possible values are Static and Dynamic is allowed. Defaults to Dynamic.
    public_ip_address_id str
    The ID of the Public IP Address. This option is required since September 1st 2021. Changing this forces a new resource to be created.
    subnet_id str
    The ID of the Subnet that the IP will reside. Changing this forces a new resource to be created.
    virtual_hub_id str
    The ID of the Virtual Hub within which this IP configuration should be created. Changing this forces a new resource to be created.
    name str
    The name which should be used for this Virtual Hub IP. Changing this forces a new resource to be created.
    private_ip_address str
    The private IP address of the IP configuration.
    private_ip_allocation_method str
    The private IP address allocation method. Possible values are Static and Dynamic is allowed. Defaults to Dynamic.
    publicIpAddressId String
    The ID of the Public IP Address. This option is required since September 1st 2021. Changing this forces a new resource to be created.
    subnetId String
    The ID of the Subnet that the IP will reside. Changing this forces a new resource to be created.
    virtualHubId String
    The ID of the Virtual Hub within which this IP configuration should be created. Changing this forces a new resource to be created.
    name String
    The name which should be used for this Virtual Hub IP. Changing this forces a new resource to be created.
    privateIpAddress String
    The private IP address of the IP configuration.
    privateIpAllocationMethod String
    The private IP address allocation method. Possible values are Static and Dynamic is allowed. Defaults to Dynamic.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the VirtualHubIp resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing VirtualHubIp Resource

    Get an existing VirtualHubIp resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: VirtualHubIpState, opts?: CustomResourceOptions): VirtualHubIp
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            name: Optional[str] = None,
            private_ip_address: Optional[str] = None,
            private_ip_allocation_method: Optional[str] = None,
            public_ip_address_id: Optional[str] = None,
            subnet_id: Optional[str] = None,
            virtual_hub_id: Optional[str] = None) -> VirtualHubIp
    func GetVirtualHubIp(ctx *Context, name string, id IDInput, state *VirtualHubIpState, opts ...ResourceOption) (*VirtualHubIp, error)
    public static VirtualHubIp Get(string name, Input<string> id, VirtualHubIpState? state, CustomResourceOptions? opts = null)
    public static VirtualHubIp get(String name, Output<String> id, VirtualHubIpState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Name string
    The name which should be used for this Virtual Hub IP. Changing this forces a new resource to be created.
    PrivateIpAddress string
    The private IP address of the IP configuration.
    PrivateIpAllocationMethod string
    The private IP address allocation method. Possible values are Static and Dynamic is allowed. Defaults to Dynamic.
    PublicIpAddressId string
    The ID of the Public IP Address. This option is required since September 1st 2021. Changing this forces a new resource to be created.
    SubnetId string
    The ID of the Subnet that the IP will reside. Changing this forces a new resource to be created.
    VirtualHubId string
    The ID of the Virtual Hub within which this IP configuration should be created. Changing this forces a new resource to be created.
    Name string
    The name which should be used for this Virtual Hub IP. Changing this forces a new resource to be created.
    PrivateIpAddress string
    The private IP address of the IP configuration.
    PrivateIpAllocationMethod string
    The private IP address allocation method. Possible values are Static and Dynamic is allowed. Defaults to Dynamic.
    PublicIpAddressId string
    The ID of the Public IP Address. This option is required since September 1st 2021. Changing this forces a new resource to be created.
    SubnetId string
    The ID of the Subnet that the IP will reside. Changing this forces a new resource to be created.
    VirtualHubId string
    The ID of the Virtual Hub within which this IP configuration should be created. Changing this forces a new resource to be created.
    name String
    The name which should be used for this Virtual Hub IP. Changing this forces a new resource to be created.
    privateIpAddress String
    The private IP address of the IP configuration.
    privateIpAllocationMethod String
    The private IP address allocation method. Possible values are Static and Dynamic is allowed. Defaults to Dynamic.
    publicIpAddressId String
    The ID of the Public IP Address. This option is required since September 1st 2021. Changing this forces a new resource to be created.
    subnetId String
    The ID of the Subnet that the IP will reside. Changing this forces a new resource to be created.
    virtualHubId String
    The ID of the Virtual Hub within which this IP configuration should be created. Changing this forces a new resource to be created.
    name string
    The name which should be used for this Virtual Hub IP. Changing this forces a new resource to be created.
    privateIpAddress string
    The private IP address of the IP configuration.
    privateIpAllocationMethod string
    The private IP address allocation method. Possible values are Static and Dynamic is allowed. Defaults to Dynamic.
    publicIpAddressId string
    The ID of the Public IP Address. This option is required since September 1st 2021. Changing this forces a new resource to be created.
    subnetId string
    The ID of the Subnet that the IP will reside. Changing this forces a new resource to be created.
    virtualHubId string
    The ID of the Virtual Hub within which this IP configuration should be created. Changing this forces a new resource to be created.
    name str
    The name which should be used for this Virtual Hub IP. Changing this forces a new resource to be created.
    private_ip_address str
    The private IP address of the IP configuration.
    private_ip_allocation_method str
    The private IP address allocation method. Possible values are Static and Dynamic is allowed. Defaults to Dynamic.
    public_ip_address_id str
    The ID of the Public IP Address. This option is required since September 1st 2021. Changing this forces a new resource to be created.
    subnet_id str
    The ID of the Subnet that the IP will reside. Changing this forces a new resource to be created.
    virtual_hub_id str
    The ID of the Virtual Hub within which this IP configuration should be created. Changing this forces a new resource to be created.
    name String
    The name which should be used for this Virtual Hub IP. Changing this forces a new resource to be created.
    privateIpAddress String
    The private IP address of the IP configuration.
    privateIpAllocationMethod String
    The private IP address allocation method. Possible values are Static and Dynamic is allowed. Defaults to Dynamic.
    publicIpAddressId String
    The ID of the Public IP Address. This option is required since September 1st 2021. Changing this forces a new resource to be created.
    subnetId String
    The ID of the Subnet that the IP will reside. Changing this forces a new resource to be created.
    virtualHubId String
    The ID of the Virtual Hub within which this IP configuration should be created. Changing this forces a new resource to be created.

    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
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi