We recommend using Azure Native.
Azure v6.24.0 published on Wednesday, Jun 18, 2025 by Pulumi
azure.devcenter.getNetworkConnection
Explore with Pulumi AI
Use this data source to access information about an existing Dev Center Network Connection.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.devcenter.getNetworkConnection({
name: "example",
resourceGroupName: "example-resource-group",
});
export const id = example.then(example => example.id);
import pulumi
import pulumi_azure as azure
example = azure.devcenter.get_network_connection(name="example",
resource_group_name="example-resource-group")
pulumi.export("id", example.id)
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/devcenter"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := devcenter.LookupNetworkConnection(ctx, &devcenter.LookupNetworkConnectionArgs{
Name: "example",
ResourceGroupName: "example-resource-group",
}, nil)
if err != nil {
return err
}
ctx.Export("id", example.Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = Azure.DevCenter.GetNetworkConnection.Invoke(new()
{
Name = "example",
ResourceGroupName = "example-resource-group",
});
return new Dictionary<string, object?>
{
["id"] = example.Apply(getNetworkConnectionResult => getNetworkConnectionResult.Id),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.devcenter.DevcenterFunctions;
import com.pulumi.azure.devcenter.inputs.GetNetworkConnectionArgs;
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) {
final var example = DevcenterFunctions.getNetworkConnection(GetNetworkConnectionArgs.builder()
.name("example")
.resourceGroupName("example-resource-group")
.build());
ctx.export("id", example.id());
}
}
variables:
example:
fn::invoke:
function: azure:devcenter:getNetworkConnection
arguments:
name: example
resourceGroupName: example-resource-group
outputs:
id: ${example.id}
API Providers
This data source uses the following Azure API Providers:
Microsoft.DevCenter
: 2025-02-01
Using getNetworkConnection
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getNetworkConnection(args: GetNetworkConnectionArgs, opts?: InvokeOptions): Promise<GetNetworkConnectionResult>
function getNetworkConnectionOutput(args: GetNetworkConnectionOutputArgs, opts?: InvokeOptions): Output<GetNetworkConnectionResult>
def get_network_connection(name: Optional[str] = None,
resource_group_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNetworkConnectionResult
def get_network_connection_output(name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNetworkConnectionResult]
func LookupNetworkConnection(ctx *Context, args *LookupNetworkConnectionArgs, opts ...InvokeOption) (*LookupNetworkConnectionResult, error)
func LookupNetworkConnectionOutput(ctx *Context, args *LookupNetworkConnectionOutputArgs, opts ...InvokeOption) LookupNetworkConnectionResultOutput
> Note: This function is named LookupNetworkConnection
in the Go SDK.
public static class GetNetworkConnection
{
public static Task<GetNetworkConnectionResult> InvokeAsync(GetNetworkConnectionArgs args, InvokeOptions? opts = null)
public static Output<GetNetworkConnectionResult> Invoke(GetNetworkConnectionInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetNetworkConnectionResult> getNetworkConnection(GetNetworkConnectionArgs args, InvokeOptions options)
public static Output<GetNetworkConnectionResult> getNetworkConnection(GetNetworkConnectionArgs args, InvokeOptions options)
fn::invoke:
function: azure:devcenter/getNetworkConnection:getNetworkConnection
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- The name of this Dev Center Network Connection.
- Resource
Group stringName - The name of the Resource Group where the Dev Center Network Connection exists.
- Name string
- The name of this Dev Center Network Connection.
- Resource
Group stringName - The name of the Resource Group where the Dev Center Network Connection exists.
- name String
- The name of this Dev Center Network Connection.
- resource
Group StringName - The name of the Resource Group where the Dev Center Network Connection exists.
- name string
- The name of this Dev Center Network Connection.
- resource
Group stringName - The name of the Resource Group where the Dev Center Network Connection exists.
- name str
- The name of this Dev Center Network Connection.
- resource_
group_ strname - The name of the Resource Group where the Dev Center Network Connection exists.
- name String
- The name of this Dev Center Network Connection.
- resource
Group StringName - The name of the Resource Group where the Dev Center Network Connection exists.
getNetworkConnection Result
The following output properties are available:
- Domain
Join stringType - The Azure Active Directory Join type.
- Domain
Name string - The name of the Azure Active Directory domain.
- Domain
Username string - The username of the Azure Active Directory account (user or service account) that has permissions to create computer objects in Active Directory.
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- The Azure Region where the Dev Center Network Connection exists.
- Name string
- Organization
Unit string - The Azure Active Directory domain Organization Unit (OU).
- Resource
Group stringName - Subnet
Id string - The ID of the Subnet that is used to attach Virtual Machines.
- Dictionary<string, string>
- A mapping of tags assigned to the Dev Center Network Connection.
- Domain
Join stringType - The Azure Active Directory Join type.
- Domain
Name string - The name of the Azure Active Directory domain.
- Domain
Username string - The username of the Azure Active Directory account (user or service account) that has permissions to create computer objects in Active Directory.
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- The Azure Region where the Dev Center Network Connection exists.
- Name string
- Organization
Unit string - The Azure Active Directory domain Organization Unit (OU).
- Resource
Group stringName - Subnet
Id string - The ID of the Subnet that is used to attach Virtual Machines.
- map[string]string
- A mapping of tags assigned to the Dev Center Network Connection.
- domain
Join StringType - The Azure Active Directory Join type.
- domain
Name String - The name of the Azure Active Directory domain.
- domain
Username String - The username of the Azure Active Directory account (user or service account) that has permissions to create computer objects in Active Directory.
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- The Azure Region where the Dev Center Network Connection exists.
- name String
- organization
Unit String - The Azure Active Directory domain Organization Unit (OU).
- resource
Group StringName - subnet
Id String - The ID of the Subnet that is used to attach Virtual Machines.
- Map<String,String>
- A mapping of tags assigned to the Dev Center Network Connection.
- domain
Join stringType - The Azure Active Directory Join type.
- domain
Name string - The name of the Azure Active Directory domain.
- domain
Username string - The username of the Azure Active Directory account (user or service account) that has permissions to create computer objects in Active Directory.
- id string
- The provider-assigned unique ID for this managed resource.
- location string
- The Azure Region where the Dev Center Network Connection exists.
- name string
- organization
Unit string - The Azure Active Directory domain Organization Unit (OU).
- resource
Group stringName - subnet
Id string - The ID of the Subnet that is used to attach Virtual Machines.
- {[key: string]: string}
- A mapping of tags assigned to the Dev Center Network Connection.
- domain_
join_ strtype - The Azure Active Directory Join type.
- domain_
name str - The name of the Azure Active Directory domain.
- domain_
username str - The username of the Azure Active Directory account (user or service account) that has permissions to create computer objects in Active Directory.
- id str
- The provider-assigned unique ID for this managed resource.
- location str
- The Azure Region where the Dev Center Network Connection exists.
- name str
- organization_
unit str - The Azure Active Directory domain Organization Unit (OU).
- resource_
group_ strname - subnet_
id str - The ID of the Subnet that is used to attach Virtual Machines.
- Mapping[str, str]
- A mapping of tags assigned to the Dev Center Network Connection.
- domain
Join StringType - The Azure Active Directory Join type.
- domain
Name String - The name of the Azure Active Directory domain.
- domain
Username String - The username of the Azure Active Directory account (user or service account) that has permissions to create computer objects in Active Directory.
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- The Azure Region where the Dev Center Network Connection exists.
- name String
- organization
Unit String - The Azure Active Directory domain Organization Unit (OU).
- resource
Group StringName - subnet
Id String - The ID of the Subnet that is used to attach Virtual Machines.
- Map<String>
- A mapping of tags assigned to the Dev Center Network Connection.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.