Network Interface
Defines the NetworkInterface resource. Uses Azure REST API version 2023-02-01-preview. In version 1.x of the Azure Native provider, it used API version 2023-02-01-preview. Other available API versions: 2023-06-15.
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 = "null",
NetworkDeviceName = "networkDeviceName",
NetworkInterfaceName = "networkInterfaceName",
ResourceGroupName = "resourceGroupName",
});
});
Content copied to clipboard
package main
import (
managednetworkfabric "github.com/pulumi/pulumi-azure-native-sdk/managednetworkfabric/v2"
"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("null"),
NetworkDeviceName: pulumi.String("networkDeviceName"),
NetworkInterfaceName: pulumi.String("networkInterfaceName"),
ResourceGroupName: pulumi.String("resourceGroupName"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
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("null")
.networkDeviceName("networkDeviceName")
.networkInterfaceName("networkInterfaceName")
.resourceGroupName("resourceGroupName")
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:managednetworkfabric:NetworkInterface networkInterfaceName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkDevices/{networkDeviceName}/networkInterfaces/{networkInterfaceName}
Content copied to clipboard
Properties
Link copied to clipboard
administrativeState of the network interface. Example: Enabled | Disabled.
Link copied to clipboard
Switch configuration description.
Link copied to clipboard
The arm resource id of the interface or compute server its connected to.
Link copied to clipboard
The Interface Type. Example: Management/Data
Link copied to clipboard
ipv4Address.
Link copied to clipboard
ipv6Address.
Link copied to clipboard
physicalIdentifier of the network interface.
Link copied to clipboard
Gets the provisioning state of the resource.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Azure Resource Manager metadata containing createdBy and modifiedBy information.