AssociationsInterface

Association Subresource of Traffic Controller API Version: 2022-10-01-preview.

Example Usage

Put Association

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var associationsInterface = new AzureNative.ServiceNetworking.AssociationsInterface("associationsInterface", new()
{
AssociationName = "associatedvnet-1",
AssociationType = AzureNative.ServiceNetworking.AssociationType.Subnets,
Location = "West US",
ResourceGroupName = "rg1",
Subnet = new AzureNative.ServiceNetworking.Inputs.AssociationSubnetArgs
{
Id = "subnetFullRef",
},
TrafficControllerName = "TC1",
});
});
package main
import (
servicenetworking "github.com/pulumi/pulumi-azure-native/sdk/go/azure/servicenetworking"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := servicenetworking.NewAssociationsInterface(ctx, "associationsInterface", &servicenetworking.AssociationsInterfaceArgs{
AssociationName: pulumi.String("associatedvnet-1"),
AssociationType: servicenetworking.AssociationTypeSubnets,
Location: pulumi.String("West US"),
ResourceGroupName: pulumi.String("rg1"),
Subnet: servicenetworking.AssociationSubnetResponse{
Id: pulumi.String("subnetFullRef"),
},
TrafficControllerName: pulumi.String("TC1"),
})
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.servicenetworking.AssociationsInterface;
import com.pulumi.azurenative.servicenetworking.AssociationsInterfaceArgs;
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 associationsInterface = new AssociationsInterface("associationsInterface", AssociationsInterfaceArgs.builder()
.associationName("associatedvnet-1")
.associationType("subnets")
.location("West US")
.resourceGroupName("rg1")
.subnet(Map.of("id", "subnetFullRef"))
.trafficControllerName("TC1")
.build());
}
}

Import

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

$ pulumi import azure-native:servicenetworking:AssociationsInterface associatedvnet-1 resourceUriAsString

Properties

Link copied to clipboard
val associationType: Output<String>

Association Type

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val location: Output<String>

The geo-location where the resource lives

Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard

Provisioning State

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Association Subnet

Link copied to clipboard

Azure Resource Manager metadata containing createdBy and modifiedBy information.

Link copied to clipboard
val tags: Output<Map<String, String>>?

Resource tags.

Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>