NetworkConnection

class NetworkConnection : KotlinCustomResource

Network related settings Uses Azure REST API version 2024-02-01. In version 2.x of the Azure Native provider, it used API version 2023-04-01. Other available API versions: 2023-04-01, 2023-08-01-preview, 2023-10-01-preview, 2024-05-01-preview, 2024-06-01-preview, 2024-07-01-preview, 2024-08-01-preview, 2024-10-01-preview, 2025-02-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native devcenter [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

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}

Properties

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

Link copied to clipboard
val domainJoinType: Output<String>

AAD Join type.

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

Active Directory domain name

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

The password for the account used to join domain

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

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

Overall health status of the network connection. Health checks are run on creation, update, and periodically to validate the network connection.

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

The geo-location where the resource lives

Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard

The name for resource group where NICs will be placed.

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

Active Directory domain Organization Unit (OU)

Link copied to clipboard

The provisioning state of the resource.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val subnetId: Output<String>

The subnet to attach Virtual Machines to

Link copied to clipboard

Azure Resource Manager metadata containing createdBy and modifiedBy information.

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

Resource tags.

Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>