NetworkConnectionArgs

data class NetworkConnectionArgs(val domainJoinType: Output<Either<String, DomainJoinType>>? = null, val domainName: Output<String>? = null, val domainPassword: Output<String>? = null, val domainUsername: Output<String>? = null, val location: Output<String>? = null, val networkConnectionName: Output<String>? = null, val networkingResourceGroupName: Output<String>? = null, val organizationUnit: Output<String>? = null, val resourceGroupName: Output<String>? = null, val subnetId: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<NetworkConnectionArgs>

Network related settings Uses Azure REST API version 2023-04-01. In version 1.x of the Azure Native provider, it used API version 2022-09-01-preview. Other available API versions: 2023-08-01-preview, 2023-10-01-preview, 2024-02-01, 2024-05-01-preview, 2024-06-01-preview, 2024-07-01-preview, 2024-08-01-preview, 2024-10-01-preview, 2025-02-01.

Example Usage

NetworkConnections_CreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var networkConnection = new AzureNative.DevCenter.NetworkConnection("networkConnection", new()
{
DomainJoinType = AzureNative.DevCenter.DomainJoinType.HybridAzureADJoin,
DomainName = "mydomaincontroller.local",
DomainPassword = "Password value for user",
DomainUsername = "testuser@mydomaincontroller.local",
Location = "centralus",
NetworkConnectionName = "uswest3network",
NetworkingResourceGroupName = "NetworkInterfaces",
ResourceGroupName = "rg1",
SubnetId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ExampleRG/providers/Microsoft.Network/virtualNetworks/ExampleVNet/subnets/default",
});
});
package main
import (
devcenter "github.com/pulumi/pulumi-azure-native-sdk/devcenter/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := devcenter.NewNetworkConnection(ctx, "networkConnection", &devcenter.NetworkConnectionArgs{
DomainJoinType: pulumi.String(devcenter.DomainJoinTypeHybridAzureADJoin),
DomainName: pulumi.String("mydomaincontroller.local"),
DomainPassword: pulumi.String("Password value for user"),
DomainUsername: pulumi.String("testuser@mydomaincontroller.local"),
Location: pulumi.String("centralus"),
NetworkConnectionName: pulumi.String("uswest3network"),
NetworkingResourceGroupName: pulumi.String("NetworkInterfaces"),
ResourceGroupName: pulumi.String("rg1"),
SubnetId: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ExampleRG/providers/Microsoft.Network/virtualNetworks/ExampleVNet/subnets/default"),
})
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.devcenter.NetworkConnection;
import com.pulumi.azurenative.devcenter.NetworkConnectionArgs;
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 networkConnection = new NetworkConnection("networkConnection", NetworkConnectionArgs.builder()
.domainJoinType("HybridAzureADJoin")
.domainName("mydomaincontroller.local")
.domainPassword("Password value for user")
.domainUsername("testuser@mydomaincontroller.local")
.location("centralus")
.networkConnectionName("uswest3network")
.networkingResourceGroupName("NetworkInterfaces")
.resourceGroupName("rg1")
.subnetId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ExampleRG/providers/Microsoft.Network/virtualNetworks/ExampleVNet/subnets/default")
.build());
}
}

Import

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

$ pulumi import azure-native:devcenter:NetworkConnection uswest3network /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections/{networkConnectionName}

Constructors

Link copied to clipboard
constructor(domainJoinType: Output<Either<String, DomainJoinType>>? = null, domainName: Output<String>? = null, domainPassword: Output<String>? = null, domainUsername: Output<String>? = null, location: Output<String>? = null, networkConnectionName: Output<String>? = null, networkingResourceGroupName: Output<String>? = null, organizationUnit: Output<String>? = null, resourceGroupName: Output<String>? = null, subnetId: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val domainJoinType: Output<Either<String, DomainJoinType>>? = null

AAD Join type.

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

Active Directory domain name

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

The password for the account used to join domain

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

The username of an Active Directory account (user or service account) that has permissions to create computer objects in Active Directory. Required format: admin@contoso.com.

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

The geo-location where the resource lives

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

Name of the Network Connection that can be applied to a Pool.

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

The name for resource group where NICs will be placed.

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

Active Directory domain Organization Unit (OU)

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

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

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

The subnet to attach Virtual Machines to

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

Resource tags.

Functions

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