We recommend using Azure Native.
Azure v6.24.0 published on Wednesday, Jun 18, 2025 by Pulumi
azure.devcenter.getAttachedNetwork
Explore with Pulumi AI
Use this data source to access information about an existing Dev Center Attached Network.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.devcenter.getAttachedNetwork({
name: exampleAzurermDevCenterAttachedNetwork.name,
devCenterId: exampleAzurermDevCenterAttachedNetwork.devCenterId,
});
export const id = example.then(example => example.id);
import pulumi
import pulumi_azure as azure
example = azure.devcenter.get_attached_network(name=example_azurerm_dev_center_attached_network["name"],
dev_center_id=example_azurerm_dev_center_attached_network["devCenterId"])
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.LookupAttachedNetwork(ctx, &devcenter.LookupAttachedNetworkArgs{
Name: exampleAzurermDevCenterAttachedNetwork.Name,
DevCenterId: exampleAzurermDevCenterAttachedNetwork.DevCenterId,
}, 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.GetAttachedNetwork.Invoke(new()
{
Name = exampleAzurermDevCenterAttachedNetwork.Name,
DevCenterId = exampleAzurermDevCenterAttachedNetwork.DevCenterId,
});
return new Dictionary<string, object?>
{
["id"] = example.Apply(getAttachedNetworkResult => getAttachedNetworkResult.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.GetAttachedNetworkArgs;
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.getAttachedNetwork(GetAttachedNetworkArgs.builder()
.name(exampleAzurermDevCenterAttachedNetwork.name())
.devCenterId(exampleAzurermDevCenterAttachedNetwork.devCenterId())
.build());
ctx.export("id", example.id());
}
}
variables:
example:
fn::invoke:
function: azure:devcenter:getAttachedNetwork
arguments:
name: ${exampleAzurermDevCenterAttachedNetwork.name}
devCenterId: ${exampleAzurermDevCenterAttachedNetwork.devCenterId}
outputs:
id: ${example.id}
API Providers
This data source uses the following Azure API Providers:
Microsoft.DevCenter
: 2025-02-01
Using getAttachedNetwork
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 getAttachedNetwork(args: GetAttachedNetworkArgs, opts?: InvokeOptions): Promise<GetAttachedNetworkResult>
function getAttachedNetworkOutput(args: GetAttachedNetworkOutputArgs, opts?: InvokeOptions): Output<GetAttachedNetworkResult>
def get_attached_network(dev_center_id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAttachedNetworkResult
def get_attached_network_output(dev_center_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAttachedNetworkResult]
func LookupAttachedNetwork(ctx *Context, args *LookupAttachedNetworkArgs, opts ...InvokeOption) (*LookupAttachedNetworkResult, error)
func LookupAttachedNetworkOutput(ctx *Context, args *LookupAttachedNetworkOutputArgs, opts ...InvokeOption) LookupAttachedNetworkResultOutput
> Note: This function is named LookupAttachedNetwork
in the Go SDK.
public static class GetAttachedNetwork
{
public static Task<GetAttachedNetworkResult> InvokeAsync(GetAttachedNetworkArgs args, InvokeOptions? opts = null)
public static Output<GetAttachedNetworkResult> Invoke(GetAttachedNetworkInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAttachedNetworkResult> getAttachedNetwork(GetAttachedNetworkArgs args, InvokeOptions options)
public static Output<GetAttachedNetworkResult> getAttachedNetwork(GetAttachedNetworkArgs args, InvokeOptions options)
fn::invoke:
function: azure:devcenter/getAttachedNetwork:getAttachedNetwork
arguments:
# arguments dictionary
The following arguments are supported:
- Dev
Center stringId - The ID of the associated Dev Center.
- Name string
- The name of this Dev Center Attached Network.
- Dev
Center stringId - The ID of the associated Dev Center.
- Name string
- The name of this Dev Center Attached Network.
- dev
Center StringId - The ID of the associated Dev Center.
- name String
- The name of this Dev Center Attached Network.
- dev
Center stringId - The ID of the associated Dev Center.
- name string
- The name of this Dev Center Attached Network.
- dev_
center_ strid - The ID of the associated Dev Center.
- name str
- The name of this Dev Center Attached Network.
- dev
Center StringId - The ID of the associated Dev Center.
- name String
- The name of this Dev Center Attached Network.
getAttachedNetwork Result
The following output properties are available:
- Dev
Center stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Network
Connection stringId - The ID of the attached Dev Center Network Connection.
- Dev
Center stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Network
Connection stringId - The ID of the attached Dev Center Network Connection.
- dev
Center StringId - id String
- The provider-assigned unique ID for this managed resource.
- name String
- network
Connection StringId - The ID of the attached Dev Center Network Connection.
- dev
Center stringId - id string
- The provider-assigned unique ID for this managed resource.
- name string
- network
Connection stringId - The ID of the attached Dev Center Network Connection.
- dev_
center_ strid - id str
- The provider-assigned unique ID for this managed resource.
- name str
- network_
connection_ strid - The ID of the attached Dev Center Network Connection.
- dev
Center StringId - id String
- The provider-assigned unique ID for this managed resource.
- name String
- network
Connection StringId - The ID of the attached 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.