We recommend using Azure Native.
azure.avs.ExpressRouteAuthorization
Explore with Pulumi AI
Manages an Azure VMware Solution ExpressRoute Circuit Authorization.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
name: "example-resources",
location: "West Europe",
});
const examplePrivateCloud = new azure.avs.PrivateCloud("example", {
name: "example-vmware-private-cloud",
resourceGroupName: example.name,
location: example.location,
skuName: "av36",
managementCluster: {
size: 3,
},
networkSubnetCidr: "192.168.48.0/22",
internetConnectionEnabled: false,
nsxtPassword: "QazWsx13$Edc",
vcenterPassword: "WsxEdc23$Rfv",
});
const exampleExpressRouteAuthorization = new azure.avs.ExpressRouteAuthorization("example", {
name: "example-authorization",
privateCloudId: examplePrivateCloud.id,
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="example-resources",
location="West Europe")
example_private_cloud = azure.avs.PrivateCloud("example",
name="example-vmware-private-cloud",
resource_group_name=example.name,
location=example.location,
sku_name="av36",
management_cluster=azure.avs.PrivateCloudManagementClusterArgs(
size=3,
),
network_subnet_cidr="192.168.48.0/22",
internet_connection_enabled=False,
nsxt_password="QazWsx13$Edc",
vcenter_password="WsxEdc23$Rfv")
example_express_route_authorization = azure.avs.ExpressRouteAuthorization("example",
name="example-authorization",
private_cloud_id=example_private_cloud.id)
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/avs"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("example-resources"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
examplePrivateCloud, err := avs.NewPrivateCloud(ctx, "example", &avs.PrivateCloudArgs{
Name: pulumi.String("example-vmware-private-cloud"),
ResourceGroupName: example.Name,
Location: example.Location,
SkuName: pulumi.String("av36"),
ManagementCluster: &avs.PrivateCloudManagementClusterArgs{
Size: pulumi.Int(3),
},
NetworkSubnetCidr: pulumi.String("192.168.48.0/22"),
InternetConnectionEnabled: pulumi.Bool(false),
NsxtPassword: pulumi.String("QazWsx13$Edc"),
VcenterPassword: pulumi.String("WsxEdc23$Rfv"),
})
if err != nil {
return err
}
_, err = avs.NewExpressRouteAuthorization(ctx, "example", &avs.ExpressRouteAuthorizationArgs{
Name: pulumi.String("example-authorization"),
PrivateCloudId: examplePrivateCloud.ID(),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "example-resources",
Location = "West Europe",
});
var examplePrivateCloud = new Azure.Avs.PrivateCloud("example", new()
{
Name = "example-vmware-private-cloud",
ResourceGroupName = example.Name,
Location = example.Location,
SkuName = "av36",
ManagementCluster = new Azure.Avs.Inputs.PrivateCloudManagementClusterArgs
{
Size = 3,
},
NetworkSubnetCidr = "192.168.48.0/22",
InternetConnectionEnabled = false,
NsxtPassword = "QazWsx13$Edc",
VcenterPassword = "WsxEdc23$Rfv",
});
var exampleExpressRouteAuthorization = new Azure.Avs.ExpressRouteAuthorization("example", new()
{
Name = "example-authorization",
PrivateCloudId = examplePrivateCloud.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.avs.PrivateCloud;
import com.pulumi.azure.avs.PrivateCloudArgs;
import com.pulumi.azure.avs.inputs.PrivateCloudManagementClusterArgs;
import com.pulumi.azure.avs.ExpressRouteAuthorization;
import com.pulumi.azure.avs.ExpressRouteAuthorizationArgs;
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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("example-resources")
.location("West Europe")
.build());
var examplePrivateCloud = new PrivateCloud("examplePrivateCloud", PrivateCloudArgs.builder()
.name("example-vmware-private-cloud")
.resourceGroupName(example.name())
.location(example.location())
.skuName("av36")
.managementCluster(PrivateCloudManagementClusterArgs.builder()
.size(3)
.build())
.networkSubnetCidr("192.168.48.0/22")
.internetConnectionEnabled(false)
.nsxtPassword("QazWsx13$Edc")
.vcenterPassword("WsxEdc23$Rfv")
.build());
var exampleExpressRouteAuthorization = new ExpressRouteAuthorization("exampleExpressRouteAuthorization", ExpressRouteAuthorizationArgs.builder()
.name("example-authorization")
.privateCloudId(examplePrivateCloud.id())
.build());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-resources
location: West Europe
examplePrivateCloud:
type: azure:avs:PrivateCloud
name: example
properties:
name: example-vmware-private-cloud
resourceGroupName: ${example.name}
location: ${example.location}
skuName: av36
managementCluster:
size: 3
networkSubnetCidr: 192.168.48.0/22
internetConnectionEnabled: false
nsxtPassword: QazWsx13$Edc
vcenterPassword: WsxEdc23$Rfv
exampleExpressRouteAuthorization:
type: azure:avs:ExpressRouteAuthorization
name: example
properties:
name: example-authorization
privateCloudId: ${examplePrivateCloud.id}
Create ExpressRouteAuthorization Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ExpressRouteAuthorization(name: string, args: ExpressRouteAuthorizationArgs, opts?: CustomResourceOptions);
@overload
def ExpressRouteAuthorization(resource_name: str,
args: ExpressRouteAuthorizationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ExpressRouteAuthorization(resource_name: str,
opts: Optional[ResourceOptions] = None,
private_cloud_id: Optional[str] = None,
name: Optional[str] = None)
func NewExpressRouteAuthorization(ctx *Context, name string, args ExpressRouteAuthorizationArgs, opts ...ResourceOption) (*ExpressRouteAuthorization, error)
public ExpressRouteAuthorization(string name, ExpressRouteAuthorizationArgs args, CustomResourceOptions? opts = null)
public ExpressRouteAuthorization(String name, ExpressRouteAuthorizationArgs args)
public ExpressRouteAuthorization(String name, ExpressRouteAuthorizationArgs args, CustomResourceOptions options)
type: azure:avs:ExpressRouteAuthorization
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ExpressRouteAuthorizationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ExpressRouteAuthorizationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ExpressRouteAuthorizationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ExpressRouteAuthorizationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ExpressRouteAuthorizationArgs
- 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 expressRouteAuthorizationResource = new Azure.Avs.ExpressRouteAuthorization("expressRouteAuthorizationResource", new()
{
PrivateCloudId = "string",
Name = "string",
});
example, err := avs.NewExpressRouteAuthorization(ctx, "expressRouteAuthorizationResource", &avs.ExpressRouteAuthorizationArgs{
PrivateCloudId: pulumi.String("string"),
Name: pulumi.String("string"),
})
var expressRouteAuthorizationResource = new ExpressRouteAuthorization("expressRouteAuthorizationResource", ExpressRouteAuthorizationArgs.builder()
.privateCloudId("string")
.name("string")
.build());
express_route_authorization_resource = azure.avs.ExpressRouteAuthorization("expressRouteAuthorizationResource",
private_cloud_id="string",
name="string")
const expressRouteAuthorizationResource = new azure.avs.ExpressRouteAuthorization("expressRouteAuthorizationResource", {
privateCloudId: "string",
name: "string",
});
type: azure:avs:ExpressRouteAuthorization
properties:
name: string
privateCloudId: string
ExpressRouteAuthorization Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The ExpressRouteAuthorization resource accepts the following input properties:
- Private
Cloud stringId - The ID of the Azure VMware Solution Private Cloud in which to create this Azure VMware Solution ExpressRoute Circuit Authorization. Changing this forces a new Azure VMware Solution ExpressRoute Circuit Authorization to be created.
- Name string
- The name which should be used for this Azure VMware Solution ExpressRoute Circuit Authorization. Changing this forces a new Azure VMware Solution ExpressRoute Circuit Authorization to be created.
- Private
Cloud stringId - The ID of the Azure VMware Solution Private Cloud in which to create this Azure VMware Solution ExpressRoute Circuit Authorization. Changing this forces a new Azure VMware Solution ExpressRoute Circuit Authorization to be created.
- Name string
- The name which should be used for this Azure VMware Solution ExpressRoute Circuit Authorization. Changing this forces a new Azure VMware Solution ExpressRoute Circuit Authorization to be created.
- private
Cloud StringId - The ID of the Azure VMware Solution Private Cloud in which to create this Azure VMware Solution ExpressRoute Circuit Authorization. Changing this forces a new Azure VMware Solution ExpressRoute Circuit Authorization to be created.
- name String
- The name which should be used for this Azure VMware Solution ExpressRoute Circuit Authorization. Changing this forces a new Azure VMware Solution ExpressRoute Circuit Authorization to be created.
- private
Cloud stringId - The ID of the Azure VMware Solution Private Cloud in which to create this Azure VMware Solution ExpressRoute Circuit Authorization. Changing this forces a new Azure VMware Solution ExpressRoute Circuit Authorization to be created.
- name string
- The name which should be used for this Azure VMware Solution ExpressRoute Circuit Authorization. Changing this forces a new Azure VMware Solution ExpressRoute Circuit Authorization to be created.
- private_
cloud_ strid - The ID of the Azure VMware Solution Private Cloud in which to create this Azure VMware Solution ExpressRoute Circuit Authorization. Changing this forces a new Azure VMware Solution ExpressRoute Circuit Authorization to be created.
- name str
- The name which should be used for this Azure VMware Solution ExpressRoute Circuit Authorization. Changing this forces a new Azure VMware Solution ExpressRoute Circuit Authorization to be created.
- private
Cloud StringId - The ID of the Azure VMware Solution Private Cloud in which to create this Azure VMware Solution ExpressRoute Circuit Authorization. Changing this forces a new Azure VMware Solution ExpressRoute Circuit Authorization to be created.
- name String
- The name which should be used for this Azure VMware Solution ExpressRoute Circuit Authorization. Changing this forces a new Azure VMware Solution ExpressRoute Circuit Authorization to be created.
Outputs
All input properties are implicitly available as output properties. Additionally, the ExpressRouteAuthorization resource produces the following output properties:
- string
- The ID of the Azure VMware Solution ExpressRoute Circuit Authorization.
- string
- The key of the Azure VMware Solution ExpressRoute Circuit Authorization.
- Id string
- The provider-assigned unique ID for this managed resource.
- string
- The ID of the Azure VMware Solution ExpressRoute Circuit Authorization.
- string
- The key of the Azure VMware Solution ExpressRoute Circuit Authorization.
- Id string
- The provider-assigned unique ID for this managed resource.
- String
- The ID of the Azure VMware Solution ExpressRoute Circuit Authorization.
- String
- The key of the Azure VMware Solution ExpressRoute Circuit Authorization.
- id String
- The provider-assigned unique ID for this managed resource.
- string
- The ID of the Azure VMware Solution ExpressRoute Circuit Authorization.
- string
- The key of the Azure VMware Solution ExpressRoute Circuit Authorization.
- id string
- The provider-assigned unique ID for this managed resource.
- str
- The ID of the Azure VMware Solution ExpressRoute Circuit Authorization.
- str
- The key of the Azure VMware Solution ExpressRoute Circuit Authorization.
- id str
- The provider-assigned unique ID for this managed resource.
- String
- The ID of the Azure VMware Solution ExpressRoute Circuit Authorization.
- String
- The key of the Azure VMware Solution ExpressRoute Circuit Authorization.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ExpressRouteAuthorization Resource
Get an existing ExpressRouteAuthorization resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ExpressRouteAuthorizationState, opts?: CustomResourceOptions): ExpressRouteAuthorization
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
express_route_authorization_id: Optional[str] = None,
express_route_authorization_key: Optional[str] = None,
name: Optional[str] = None,
private_cloud_id: Optional[str] = None) -> ExpressRouteAuthorization
func GetExpressRouteAuthorization(ctx *Context, name string, id IDInput, state *ExpressRouteAuthorizationState, opts ...ResourceOption) (*ExpressRouteAuthorization, error)
public static ExpressRouteAuthorization Get(string name, Input<string> id, ExpressRouteAuthorizationState? state, CustomResourceOptions? opts = null)
public static ExpressRouteAuthorization get(String name, Output<String> id, ExpressRouteAuthorizationState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- string
- The ID of the Azure VMware Solution ExpressRoute Circuit Authorization.
- string
- The key of the Azure VMware Solution ExpressRoute Circuit Authorization.
- Name string
- The name which should be used for this Azure VMware Solution ExpressRoute Circuit Authorization. Changing this forces a new Azure VMware Solution ExpressRoute Circuit Authorization to be created.
- Private
Cloud stringId - The ID of the Azure VMware Solution Private Cloud in which to create this Azure VMware Solution ExpressRoute Circuit Authorization. Changing this forces a new Azure VMware Solution ExpressRoute Circuit Authorization to be created.
- string
- The ID of the Azure VMware Solution ExpressRoute Circuit Authorization.
- string
- The key of the Azure VMware Solution ExpressRoute Circuit Authorization.
- Name string
- The name which should be used for this Azure VMware Solution ExpressRoute Circuit Authorization. Changing this forces a new Azure VMware Solution ExpressRoute Circuit Authorization to be created.
- Private
Cloud stringId - The ID of the Azure VMware Solution Private Cloud in which to create this Azure VMware Solution ExpressRoute Circuit Authorization. Changing this forces a new Azure VMware Solution ExpressRoute Circuit Authorization to be created.
- String
- The ID of the Azure VMware Solution ExpressRoute Circuit Authorization.
- String
- The key of the Azure VMware Solution ExpressRoute Circuit Authorization.
- name String
- The name which should be used for this Azure VMware Solution ExpressRoute Circuit Authorization. Changing this forces a new Azure VMware Solution ExpressRoute Circuit Authorization to be created.
- private
Cloud StringId - The ID of the Azure VMware Solution Private Cloud in which to create this Azure VMware Solution ExpressRoute Circuit Authorization. Changing this forces a new Azure VMware Solution ExpressRoute Circuit Authorization to be created.
- string
- The ID of the Azure VMware Solution ExpressRoute Circuit Authorization.
- string
- The key of the Azure VMware Solution ExpressRoute Circuit Authorization.
- name string
- The name which should be used for this Azure VMware Solution ExpressRoute Circuit Authorization. Changing this forces a new Azure VMware Solution ExpressRoute Circuit Authorization to be created.
- private
Cloud stringId - The ID of the Azure VMware Solution Private Cloud in which to create this Azure VMware Solution ExpressRoute Circuit Authorization. Changing this forces a new Azure VMware Solution ExpressRoute Circuit Authorization to be created.
- str
- The ID of the Azure VMware Solution ExpressRoute Circuit Authorization.
- str
- The key of the Azure VMware Solution ExpressRoute Circuit Authorization.
- name str
- The name which should be used for this Azure VMware Solution ExpressRoute Circuit Authorization. Changing this forces a new Azure VMware Solution ExpressRoute Circuit Authorization to be created.
- private_
cloud_ strid - The ID of the Azure VMware Solution Private Cloud in which to create this Azure VMware Solution ExpressRoute Circuit Authorization. Changing this forces a new Azure VMware Solution ExpressRoute Circuit Authorization to be created.
- String
- The ID of the Azure VMware Solution ExpressRoute Circuit Authorization.
- String
- The key of the Azure VMware Solution ExpressRoute Circuit Authorization.
- name String
- The name which should be used for this Azure VMware Solution ExpressRoute Circuit Authorization. Changing this forces a new Azure VMware Solution ExpressRoute Circuit Authorization to be created.
- private
Cloud StringId - The ID of the Azure VMware Solution Private Cloud in which to create this Azure VMware Solution ExpressRoute Circuit Authorization. Changing this forces a new Azure VMware Solution ExpressRoute Circuit Authorization to be created.
Import
Azure VMware Solution ExpressRoute Circuit Authorizations can be imported using the resource id
, e.g.
$ pulumi import azure:avs/expressRouteAuthorization:ExpressRouteAuthorization example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.AVS/privateClouds/privateCloud1/authorizations/authorization1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.