IpAllocation

IpAllocation resource. API Version: 2020-11-01.

Example Usage

Create IpAllocation

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var ipAllocation = new AzureNative.Network.IpAllocation("ipAllocation", new()
{
AllocationTags =
{
{ "VNetID", "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/HypernetVnet1" },
},
IpAllocationName = "test-ipallocation",
Location = "centraluseuap",
Prefix = "3.2.5.0/24",
ResourceGroupName = "rg1",
Type = "Hypernet",
});
});
package main
import (
network "github.com/pulumi/pulumi-azure-native/sdk/go/azure/network"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := network.NewIpAllocation(ctx, "ipAllocation", &network.IpAllocationArgs{
AllocationTags: pulumi.StringMap{
"VNetID": pulumi.String("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/HypernetVnet1"),
},
IpAllocationName: pulumi.String("test-ipallocation"),
Location: pulumi.String("centraluseuap"),
Prefix: pulumi.String("3.2.5.0/24"),
ResourceGroupName: pulumi.String("rg1"),
Type: pulumi.String("Hypernet"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.network.IpAllocation;
import com.pulumi.azurenative.network.IpAllocationArgs;
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 ipAllocation = new IpAllocation("ipAllocation", IpAllocationArgs.builder()
.allocationTags(Map.of("VNetID", "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/HypernetVnet1"))
.ipAllocationName("test-ipallocation")
.location("centraluseuap")
.prefix("3.2.5.0/24")
.resourceGroupName("rg1")
.type("Hypernet")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:network:IpAllocation test-ipallocation /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/IpAllocations/test-ipallocation

Properties

Link copied to clipboard

IpAllocation tags.

Link copied to clipboard
val etag: Output<String>

A unique read-only string that changes whenever the resource is updated.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val ipamAllocationId: Output<String>?

The IPAM allocation ID.

Link copied to clipboard
val location: Output<String>?

Resource location.

Link copied to clipboard
val name: Output<String>

Resource name.

Link copied to clipboard
val prefix: Output<String>?

The address prefix for the IpAllocation.

Link copied to clipboard
val prefixLength: Output<Int>?

The address prefix length for the IpAllocation.

Link copied to clipboard
val prefixType: Output<String>?

The address prefix Type for the IpAllocation.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The Subnet that using the prefix of this IpAllocation resource.

Link copied to clipboard
val tags: Output<Map<String, String>>?

Resource tags.

Link copied to clipboard
val type: Output<String>

Resource type.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard

The VirtualNetwork that using the prefix of this IpAllocation resource.