Peer Asn Args
    data class PeerAsnArgs(val peerAsn: Output<Int>? = null, val peerAsnName: Output<String>? = null, val peerContactDetail: Output<List<ContactDetailArgs>>? = null, val peerName: Output<String>? = null) : ConvertibleToJava<PeerAsnArgs> 
The essential information related to the peer's ASN. Azure REST API version: 2022-10-01. Prior API version in Azure Native 1.x: 2021-01-01. Other available API versions: 2019-09-01-preview, 2021-01-01.
Example Usage
Create a peer ASN
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
    var peerAsn = new AzureNative.Peering.PeerAsn("peerAsn", new()
    {
        PeerAsn = 65000,
        PeerAsnName = "peerAsnName",
        PeerContactDetail = new[]
        {
            new AzureNative.Peering.Inputs.ContactDetailArgs
            {
                Email = "noc@contoso.com",
                Phone = "+1 (234) 567-8999",
                Role = "Noc",
            },
            new AzureNative.Peering.Inputs.ContactDetailArgs
            {
                Email = "abc@contoso.com",
                Phone = "+1 (234) 567-8900",
                Role = "Policy",
            },
            new AzureNative.Peering.Inputs.ContactDetailArgs
            {
                Email = "xyz@contoso.com",
                Phone = "+1 (234) 567-8900",
                Role = "Technical",
            },
        },
        PeerName = "Contoso",
    });
});Content copied to clipboard
package main
import (
	"github.com/pulumi/pulumi-azure-native-sdk/peering/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := peering.NewPeerAsn(ctx, "peerAsn", &peering.PeerAsnArgs{
			PeerAsn:     pulumi.Int(65000),
			PeerAsnName: pulumi.String("peerAsnName"),
			PeerContactDetail: []peering.ContactDetailArgs{
				{
					Email: pulumi.String("noc@contoso.com"),
					Phone: pulumi.String("+1 (234) 567-8999"),
					Role:  pulumi.String("Noc"),
				},
				{
					Email: pulumi.String("abc@contoso.com"),
					Phone: pulumi.String("+1 (234) 567-8900"),
					Role:  pulumi.String("Policy"),
				},
				{
					Email: pulumi.String("xyz@contoso.com"),
					Phone: pulumi.String("+1 (234) 567-8900"),
					Role:  pulumi.String("Technical"),
				},
			},
			PeerName: pulumi.String("Contoso"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.peering.PeerAsn;
import com.pulumi.azurenative.peering.PeerAsnArgs;
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 peerAsn = new PeerAsn("peerAsn", PeerAsnArgs.builder()
            .peerAsn(65000)
            .peerAsnName("peerAsnName")
            .peerContactDetail(
                Map.ofEntries(
                    Map.entry("email", "noc@contoso.com"),
                    Map.entry("phone", "+1 (234) 567-8999"),
                    Map.entry("role", "Noc")
                ),
                Map.ofEntries(
                    Map.entry("email", "abc@contoso.com"),
                    Map.entry("phone", "+1 (234) 567-8900"),
                    Map.entry("role", "Policy")
                ),
                Map.ofEntries(
                    Map.entry("email", "xyz@contoso.com"),
                    Map.entry("phone", "+1 (234) 567-8900"),
                    Map.entry("role", "Technical")
                ))
            .peerName("Contoso")
            .build());
    }
}Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:peering:PeerAsn peerAsnName /subscriptions/{subscriptionId}/providers/Microsoft.Peering/peerAsns/{peerAsnName}Content copied to clipboard
Constructors
Link copied to clipboard
                fun PeerAsnArgs(peerAsn: Output<Int>? = null, peerAsnName: Output<String>? = null, peerContactDetail: Output<List<ContactDetailArgs>>? = null, peerName: Output<String>? = null)