Delegated Subnet Service Details
Represents an instance of a orchestrator. Uses Azure REST API version 2023-06-27-preview. In version 2.x of the Azure Native provider, it used API version 2021-03-15. Other available API versions: 2021-03-15, 2023-05-18-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native delegatednetwork [ApiVersion]
. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.
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",
},
});
});
package main
import (
delegatednetwork "github.com/pulumi/pulumi-azure-native-sdk/delegatednetwork/v3"
"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
})
}
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());
}
}
put delegated subnet vnetblock
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()
{
AllocationBlockPrefixSize = 27,
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",
},
});
});
package main
import (
delegatednetwork "github.com/pulumi/pulumi-azure-native-sdk/delegatednetwork/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := delegatednetwork.NewDelegatedSubnetServiceDetails(ctx, "delegatedSubnetServiceDetails", &delegatednetwork.DelegatedSubnetServiceDetailsArgs{
AllocationBlockPrefixSize: pulumi.Int(27),
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
})
}
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()
.allocationBlockPrefixSize(27)
.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());
}
}
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}
Properties
Defines prefix size of CIDR blocks allocated to nodes in VnetBlock Mode. Delegated subnet's prefix size should be smaller than this by a minimum of 3.
The Azure API version of the resource.
Properties of the controller.
The current state of dnc delegated subnet resource.
Resource guid.
subnet details