Network Device
The NetworkDevice resource definition. 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
NetworkDevices_Create_MaximumSet_Gen
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var networkDevice = new AzureNative.ManagedNetworkFabric.NetworkDevice("networkDevice", new()
{
Annotation = "null",
HostName = "networkDeviceName",
Location = "eastus",
NetworkDeviceName = "networkDeviceName",
NetworkDeviceRole = AzureNative.ManagedNetworkFabric.NetworkDeviceRoleTypes.CE,
NetworkDeviceSku = "DefaultSku",
ResourceGroupName = "resourceGroupName",
SerialNumber = "Arista;DCS-7280PR3-24;12.05;JPE21330382",
Tags =
{
{ "keyID", "keyValue" },
},
});
});
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.NewNetworkDevice(ctx, "networkDevice", &managednetworkfabric.NetworkDeviceArgs{
Annotation: pulumi.String("null"),
HostName: pulumi.String("networkDeviceName"),
Location: pulumi.String("eastus"),
NetworkDeviceName: pulumi.String("networkDeviceName"),
NetworkDeviceRole: pulumi.String(managednetworkfabric.NetworkDeviceRoleTypesCE),
NetworkDeviceSku: pulumi.String("DefaultSku"),
ResourceGroupName: pulumi.String("resourceGroupName"),
SerialNumber: pulumi.String("Arista;DCS-7280PR3-24;12.05;JPE21330382"),
Tags: pulumi.StringMap{
"keyID": pulumi.String("keyValue"),
},
})
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.NetworkDevice;
import com.pulumi.azurenative.managednetworkfabric.NetworkDeviceArgs;
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 networkDevice = new NetworkDevice("networkDevice", NetworkDeviceArgs.builder()
.annotation("null")
.hostName("networkDeviceName")
.location("eastus")
.networkDeviceName("networkDeviceName")
.networkDeviceRole("CE")
.networkDeviceSku("DefaultSku")
.resourceGroupName("resourceGroupName")
.serialNumber("Arista;DCS-7280PR3-24;12.05;JPE21330382")
.tags(Map.of("keyID", "keyValue"))
.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:NetworkDevice networkDeviceName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkDevices/{networkDeviceName}
Content copied to clipboard
Properties
Link copied to clipboard
Switch configuration description.
Link copied to clipboard
networkDeviceRole is the device role: Example: CE | ToR.
Link copied to clipboard
Network Device SKU name.
Link copied to clipboard
Reference to network rack resource id.
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
serialNumber of the format Make;Model;HardwareRevisionId;SerialNumber. Example: Arista;DCS-7280DR3-24;12.05;JPE21116969
Link copied to clipboard
Azure Resource Manager metadata containing createdBy and modifiedBy information.