Peering Service
Peering Service Uses Azure REST API version 2022-10-01. In version 2.x of the Azure Native provider, it used API version 2022-10-01.
Example Usage
Create a peering service
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var peeringService = new AzureNative.Peering.PeeringService("peeringService", new()
{
Location = "eastus",
PeeringServiceLocation = "state1",
PeeringServiceName = "peeringServiceName",
PeeringServiceProvider = "serviceProvider1",
ProviderBackupPeeringLocation = "peeringLocation2",
ProviderPrimaryPeeringLocation = "peeringLocation1",
ResourceGroupName = "rgName",
});
});
Content copied to clipboard
package main
import (
peering "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.NewPeeringService(ctx, "peeringService", &peering.PeeringServiceArgs{
Location: pulumi.String("eastus"),
PeeringServiceLocation: pulumi.String("state1"),
PeeringServiceName: pulumi.String("peeringServiceName"),
PeeringServiceProvider: pulumi.String("serviceProvider1"),
ProviderBackupPeeringLocation: pulumi.String("peeringLocation2"),
ProviderPrimaryPeeringLocation: pulumi.String("peeringLocation1"),
ResourceGroupName: pulumi.String("rgName"),
})
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.PeeringService;
import com.pulumi.azurenative.peering.PeeringServiceArgs;
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 peeringService = new PeeringService("peeringService", PeeringServiceArgs.builder()
.location("eastus")
.peeringServiceLocation("state1")
.peeringServiceName("peeringServiceName")
.peeringServiceProvider("serviceProvider1")
.providerBackupPeeringLocation("peeringLocation2")
.providerPrimaryPeeringLocation("peeringLocation1")
.resourceGroupName("rgName")
.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:PeeringService peeringServiceName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peeringServices/{peeringServiceName}
Content copied to clipboard
Properties
Link copied to clipboard
The Azure API version of the resource.
Link copied to clipboard
The Log Analytics Workspace Properties
Link copied to clipboard
The location (state/province) of the customer.
Link copied to clipboard
The name of the service provider.
Link copied to clipboard
The backup peering (Microsoft/service provider) location to be used for customer traffic.
Link copied to clipboard
The primary peering (Microsoft/service provider) location to be used for customer traffic.
Link copied to clipboard
The provisioning state of the resource.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The SKU that defines the type of the peering service.