1. Packages
  2. Azure Native v2
  3. API Docs
  4. delegatednetwork
  5. DelegatedSubnetServiceDetails
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.82.0 published on Friday, Jan 10, 2025 by Pulumi

azure-native-v2.delegatednetwork.DelegatedSubnetServiceDetails

Explore with Pulumi AI

Represents an instance of a orchestrator. Azure REST API version: 2021-03-15. Prior API version in Azure Native 1.x: 2021-03-15.

Other available API versions: 2023-05-18-preview, 2023-06-27-preview.

Example Usage

put delegated subnet

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var delegatedSubnetServiceDetails = new AzureNative.DelegatedNetwork.DelegatedSubnetServiceDetails("delegatedSubnetServiceDetails", new()
    {
        ControllerDetails = new AzureNative.DelegatedNetwork.Inputs.ControllerDetailsArgs
        {
            Id = "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.DelegatedNetwork/controller/dnctestcontroller",
        },
        Location = "West US",
        ResourceGroupName = "TestRG",
        ResourceName = "delegated1",
        SubnetDetails = new AzureNative.DelegatedNetwork.Inputs.SubnetDetailsArgs
        {
            Id = "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet",
        },
    });

});
Copy
package main

import (
	delegatednetwork "github.com/pulumi/pulumi-azure-native-sdk/delegatednetwork/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := delegatednetwork.NewDelegatedSubnetServiceDetails(ctx, "delegatedSubnetServiceDetails", &delegatednetwork.DelegatedSubnetServiceDetailsArgs{
			ControllerDetails: &delegatednetwork.ControllerDetailsTypeArgs{
				Id: pulumi.String("/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.DelegatedNetwork/controller/dnctestcontroller"),
			},
			Location:          pulumi.String("West US"),
			ResourceGroupName: pulumi.String("TestRG"),
			ResourceName:      pulumi.String("delegated1"),
			SubnetDetails: &delegatednetwork.SubnetDetailsArgs{
				Id: pulumi.String("/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.delegatednetwork.DelegatedSubnetServiceDetails;
import com.pulumi.azurenative.delegatednetwork.DelegatedSubnetServiceDetailsArgs;
import com.pulumi.azurenative.delegatednetwork.inputs.ControllerDetailsArgs;
import com.pulumi.azurenative.delegatednetwork.inputs.SubnetDetailsArgs;
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 delegatedSubnetServiceDetails = new DelegatedSubnetServiceDetails("delegatedSubnetServiceDetails", DelegatedSubnetServiceDetailsArgs.builder()
            .controllerDetails(ControllerDetailsArgs.builder()
                .id("/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.DelegatedNetwork/controller/dnctestcontroller")
                .build())
            .location("West US")
            .resourceGroupName("TestRG")
            .resourceName("delegated1")
            .subnetDetails(SubnetDetailsArgs.builder()
                .id("/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet")
                .build())
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const delegatedSubnetServiceDetails = new azure_native.delegatednetwork.DelegatedSubnetServiceDetails("delegatedSubnetServiceDetails", {
    controllerDetails: {
        id: "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.DelegatedNetwork/controller/dnctestcontroller",
    },
    location: "West US",
    resourceGroupName: "TestRG",
    resourceName: "delegated1",
    subnetDetails: {
        id: "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet",
    },
});
Copy
import pulumi
import pulumi_azure_native as azure_native

delegated_subnet_service_details = azure_native.delegatednetwork.DelegatedSubnetServiceDetails("delegatedSubnetServiceDetails",
    controller_details={
        "id": "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.DelegatedNetwork/controller/dnctestcontroller",
    },
    location="West US",
    resource_group_name="TestRG",
    resource_name_="delegated1",
    subnet_details={
        "id": "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet",
    })
Copy
resources:
  delegatedSubnetServiceDetails:
    type: azure-native:delegatednetwork:DelegatedSubnetServiceDetails
    properties:
      controllerDetails:
        id: /subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.DelegatedNetwork/controller/dnctestcontroller
      location: West US
      resourceGroupName: TestRG
      resourceName: delegated1
      subnetDetails:
        id: /subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet
Copy

Create DelegatedSubnetServiceDetails Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new DelegatedSubnetServiceDetails(name: string, args: DelegatedSubnetServiceDetailsArgs, opts?: CustomResourceOptions);
@overload
def DelegatedSubnetServiceDetails(resource_name: str,
                                  args: DelegatedSubnetServiceDetailsArgs,
                                  opts: Optional[ResourceOptions] = None)

@overload
def DelegatedSubnetServiceDetails(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  resource_group_name: Optional[str] = None,
                                  controller_details: Optional[ControllerDetailsArgs] = None,
                                  location: Optional[str] = None,
                                  resource_name_: Optional[str] = None,
                                  subnet_details: Optional[SubnetDetailsArgs] = None,
                                  tags: Optional[Mapping[str, str]] = None)
func NewDelegatedSubnetServiceDetails(ctx *Context, name string, args DelegatedSubnetServiceDetailsArgs, opts ...ResourceOption) (*DelegatedSubnetServiceDetails, error)
public DelegatedSubnetServiceDetails(string name, DelegatedSubnetServiceDetailsArgs args, CustomResourceOptions? opts = null)
public DelegatedSubnetServiceDetails(String name, DelegatedSubnetServiceDetailsArgs args)
public DelegatedSubnetServiceDetails(String name, DelegatedSubnetServiceDetailsArgs args, CustomResourceOptions options)
type: azure-native:delegatednetwork:DelegatedSubnetServiceDetails
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. DelegatedSubnetServiceDetailsArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. DelegatedSubnetServiceDetailsArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. DelegatedSubnetServiceDetailsArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. DelegatedSubnetServiceDetailsArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. DelegatedSubnetServiceDetailsArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var delegatedSubnetServiceDetailsResource = new AzureNative.Delegatednetwork.DelegatedSubnetServiceDetails("delegatedSubnetServiceDetailsResource", new()
{
    ResourceGroupName = "string",
    ControllerDetails = 
    {
        { "id", "string" },
    },
    Location = "string",
    ResourceName = "string",
    SubnetDetails = 
    {
        { "id", "string" },
    },
    Tags = 
    {
        { "string", "string" },
    },
});
Copy
example, err := delegatednetwork.NewDelegatedSubnetServiceDetails(ctx, "delegatedSubnetServiceDetailsResource", &delegatednetwork.DelegatedSubnetServiceDetailsArgs{
	ResourceGroupName: "string",
	ControllerDetails: map[string]interface{}{
		"id": "string",
	},
	Location:     "string",
	ResourceName: "string",
	SubnetDetails: map[string]interface{}{
		"id": "string",
	},
	Tags: map[string]interface{}{
		"string": "string",
	},
})
Copy
var delegatedSubnetServiceDetailsResource = new DelegatedSubnetServiceDetails("delegatedSubnetServiceDetailsResource", DelegatedSubnetServiceDetailsArgs.builder()
    .resourceGroupName("string")
    .controllerDetails(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .location("string")
    .resourceName("string")
    .subnetDetails(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .build());
Copy
delegated_subnet_service_details_resource = azure_native.delegatednetwork.DelegatedSubnetServiceDetails("delegatedSubnetServiceDetailsResource",
    resource_group_name=string,
    controller_details={
        id: string,
    },
    location=string,
    resource_name_=string,
    subnet_details={
        id: string,
    },
    tags={
        string: string,
    })
Copy
const delegatedSubnetServiceDetailsResource = new azure_native.delegatednetwork.DelegatedSubnetServiceDetails("delegatedSubnetServiceDetailsResource", {
    resourceGroupName: "string",
    controllerDetails: {
        id: "string",
    },
    location: "string",
    resourceName: "string",
    subnetDetails: {
        id: "string",
    },
    tags: {
        string: "string",
    },
});
Copy
type: azure-native:delegatednetwork:DelegatedSubnetServiceDetails
properties:
    controllerDetails:
        id: string
    location: string
    resourceGroupName: string
    resourceName: string
    subnetDetails:
        id: string
    tags:
        string: string
Copy

DelegatedSubnetServiceDetails Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The DelegatedSubnetServiceDetails resource accepts the following input properties:

ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
ControllerDetails Pulumi.AzureNative.DelegatedNetwork.Inputs.ControllerDetails
Properties of the controller.
Location string
Location of the resource.
ResourceName Changes to this property will trigger replacement. string
The name of the resource. It must be a minimum of 3 characters, and a maximum of 63.
SubnetDetails Pulumi.AzureNative.DelegatedNetwork.Inputs.SubnetDetails
subnet details
Tags Dictionary<string, string>
The resource tags.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
ControllerDetails ControllerDetailsTypeArgs
Properties of the controller.
Location string
Location of the resource.
ResourceName Changes to this property will trigger replacement. string
The name of the resource. It must be a minimum of 3 characters, and a maximum of 63.
SubnetDetails SubnetDetailsArgs
subnet details
Tags map[string]string
The resource tags.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
controllerDetails ControllerDetails
Properties of the controller.
location String
Location of the resource.
resourceName Changes to this property will trigger replacement. String
The name of the resource. It must be a minimum of 3 characters, and a maximum of 63.
subnetDetails SubnetDetails
subnet details
tags Map<String,String>
The resource tags.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
controllerDetails ControllerDetails
Properties of the controller.
location string
Location of the resource.
resourceName Changes to this property will trigger replacement. string
The name of the resource. It must be a minimum of 3 characters, and a maximum of 63.
subnetDetails SubnetDetails
subnet details
tags {[key: string]: string}
The resource tags.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group. The name is case insensitive.
controller_details ControllerDetailsArgs
Properties of the controller.
location str
Location of the resource.
resource_name Changes to this property will trigger replacement. str
The name of the resource. It must be a minimum of 3 characters, and a maximum of 63.
subnet_details SubnetDetailsArgs
subnet details
tags Mapping[str, str]
The resource tags.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
controllerDetails Property Map
Properties of the controller.
location String
Location of the resource.
resourceName Changes to this property will trigger replacement. String
The name of the resource. It must be a minimum of 3 characters, and a maximum of 63.
subnetDetails Property Map
subnet details
tags Map<String>
The resource tags.

Outputs

All input properties are implicitly available as output properties. Additionally, the DelegatedSubnetServiceDetails resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the resource.
ProvisioningState string
The current state of dnc delegated subnet resource.
ResourceGuid string
Resource guid.
Type string
The type of resource.
Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the resource.
ProvisioningState string
The current state of dnc delegated subnet resource.
ResourceGuid string
Resource guid.
Type string
The type of resource.
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the resource.
provisioningState String
The current state of dnc delegated subnet resource.
resourceGuid String
Resource guid.
type String
The type of resource.
id string
The provider-assigned unique ID for this managed resource.
name string
The name of the resource.
provisioningState string
The current state of dnc delegated subnet resource.
resourceGuid string
Resource guid.
type string
The type of resource.
id str
The provider-assigned unique ID for this managed resource.
name str
The name of the resource.
provisioning_state str
The current state of dnc delegated subnet resource.
resource_guid str
Resource guid.
type str
The type of resource.
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the resource.
provisioningState String
The current state of dnc delegated subnet resource.
resourceGuid String
Resource guid.
type String
The type of resource.

Supporting Types

ControllerDetails
, ControllerDetailsArgs

Id string
controller arm resource id
Id string
controller arm resource id
id String
controller arm resource id
id string
controller arm resource id
id str
controller arm resource id
id String
controller arm resource id

ControllerDetailsResponse
, ControllerDetailsResponseArgs

Id string
controller arm resource id
Id string
controller arm resource id
id String
controller arm resource id
id string
controller arm resource id
id str
controller arm resource id
id String
controller arm resource id

SubnetDetails
, SubnetDetailsArgs

Id string
subnet arm resource id
Id string
subnet arm resource id
id String
subnet arm resource id
id string
subnet arm resource id
id str
subnet arm resource id
id String
subnet arm resource id

SubnetDetailsResponse
, SubnetDetailsResponseArgs

Id string
subnet arm resource id
Id string
subnet arm resource id
id String
subnet arm resource id
id string
subnet arm resource id
id str
subnet arm resource id
id String
subnet arm resource id

Import

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

$ pulumi import azure-native:delegatednetwork:DelegatedSubnetServiceDetails delegated1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DelegatedNetwork/delegatedSubnets/{resourceName} 
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
azure-native-v2 pulumi/pulumi-azure-native
License
Apache-2.0