Share via


Microsoft.DevCenter devcenters/attachednetworks

Bicep resource definition

The devcenters/attachednetworks resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.DevCenter/devcenters/attachednetworks resource, add the following Bicep to your template.

resource symbolicname 'Microsoft.DevCenter/devcenters/attachednetworks@2025-04-01-preview' = {
  parent: resourceSymbolicName
  name: 'string'
  properties: {
    networkConnectionId: 'string'
  }
}

Property Values

Microsoft.DevCenter/devcenters/attachednetworks

Name Description Value
name The resource name string

Constraints:
Min length = 3
Max length = 63
Pattern = ^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$ (required)
parent In Bicep, you can specify the parent resource for a child resource. You only need to add this property when the child resource is declared outside of the parent resource.

For more information, see Child resource outside parent resource.
Symbolic name for resource of type: devcenters
properties Attached NetworkConnection properties. AttachedNetworkConnectionProperties

AttachedNetworkConnectionProperties

Name Description Value
networkConnectionId The resource ID of the NetworkConnection you want to attach. string (required)

Usage Examples

Azure Quickstart Samples

The following Azure Quickstart templates contain Bicep samples for deploying this resource type.

Bicep File Description
Configure Dev Box service This template would create all Dev Box admin resources as per Dev Box quick start guide (/azure/dev-box/quickstart-create-dev-box). You can view all resources created, or directly go to DevPortal.microsoft.com to create your first Dev Box.
Deploy Dev Box Service with built-in image This template provides a way to deploy an Dev Box service with built-in image.

ARM template resource definition

The devcenters/attachednetworks resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.DevCenter/devcenters/attachednetworks resource, add the following JSON to your template.

{
  "type": "Microsoft.DevCenter/devcenters/attachednetworks",
  "apiVersion": "2025-04-01-preview",
  "name": "string",
  "properties": {
    "networkConnectionId": "string"
  }
}

Property Values

Microsoft.DevCenter/devcenters/attachednetworks

Name Description Value
apiVersion The api version '2025-04-01-preview'
name The resource name string

Constraints:
Min length = 3
Max length = 63
Pattern = ^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$ (required)
properties Attached NetworkConnection properties. AttachedNetworkConnectionProperties
type The resource type 'Microsoft.DevCenter/devcenters/attachednetworks'

AttachedNetworkConnectionProperties

Name Description Value
networkConnectionId The resource ID of the NetworkConnection you want to attach. string (required)

Usage Examples

Azure Quickstart Templates

The following Azure Quickstart templates deploy this resource type.

Template Description
Configure Dev Box service

Deploy to Azure
This template would create all Dev Box admin resources as per Dev Box quick start guide (/azure/dev-box/quickstart-create-dev-box). You can view all resources created, or directly go to DevPortal.microsoft.com to create your first Dev Box.
Deploy Dev Box Service with built-in image

Deploy to Azure
This template provides a way to deploy an Dev Box service with built-in image.

Terraform (AzAPI provider) resource definition

The devcenters/attachednetworks resource type can be deployed with operations that target:

  • Resource groups

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.DevCenter/devcenters/attachednetworks resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.DevCenter/devcenters/attachednetworks@2025-04-01-preview"
  name = "string"
  parent_id = "string"
  body = {
    properties = {
      networkConnectionId = "string"
    }
  }
}

Property Values

Microsoft.DevCenter/devcenters/attachednetworks

Name Description Value
name The resource name string

Constraints:
Min length = 3
Max length = 63
Pattern = ^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$ (required)
parent_id The ID of the resource that is the parent for this resource. ID for resource of type: devcenters
properties Attached NetworkConnection properties. AttachedNetworkConnectionProperties
type The resource type "Microsoft.DevCenter/devcenters/attachednetworks@2025-04-01-preview"

AttachedNetworkConnectionProperties

Name Description Value
networkConnectionId The resource ID of the NetworkConnection you want to attach. string (required)