NetworkInterfaceArgs

data class NetworkInterfaceArgs(val annotation: Output<String>? = null, val networkDeviceName: Output<String>? = null, val networkInterfaceName: Output<String>? = null, val resourceGroupName: Output<String>? = null) : ConvertibleToJava<NetworkInterfaceArgs>

Defines the NetworkInterface resource. Uses Azure REST API version 2023-06-15. In version 2.x of the Azure Native provider, it used API version 2023-02-01-preview. Other available API versions: 2023-02-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native managednetworkfabric [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

NetworkInterfaces_Create_MaximumSet_Gen

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var networkInterface = new AzureNative.ManagedNetworkFabric.NetworkInterface("networkInterface", new()
{
Annotation = "annotation",
NetworkDeviceName = "example-device",
NetworkInterfaceName = "example-interface",
ResourceGroupName = "example-rg",
});
});
package main
import (
managednetworkfabric "github.com/pulumi/pulumi-azure-native-sdk/managednetworkfabric/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := managednetworkfabric.NewNetworkInterface(ctx, "networkInterface", &managednetworkfabric.NetworkInterfaceArgs{
Annotation: pulumi.String("annotation"),
NetworkDeviceName: pulumi.String("example-device"),
NetworkInterfaceName: pulumi.String("example-interface"),
ResourceGroupName: pulumi.String("example-rg"),
})
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.managednetworkfabric.NetworkInterface;
import com.pulumi.azurenative.managednetworkfabric.NetworkInterfaceArgs;
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 networkInterface = new NetworkInterface("networkInterface", NetworkInterfaceArgs.builder()
.annotation("annotation")
.networkDeviceName("example-device")
.networkInterfaceName("example-interface")
.resourceGroupName("example-rg")
.build());
}
}

Import

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

$ pulumi import azure-native:managednetworkfabric:NetworkInterface example-interface /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkDevices/{networkDeviceName}/networkInterfaces/{networkInterfaceName}

Constructors

Link copied to clipboard
constructor(annotation: Output<String>? = null, networkDeviceName: Output<String>? = null, networkInterfaceName: Output<String>? = null, resourceGroupName: Output<String>? = null)

Properties

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

Switch configuration description.

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

Name of the Network Device.

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

Name of the Network Interface.

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

The name of the resource group. The name is case insensitive.

Functions

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