azure logo
Azure Classic v5.38.0, Mar 21 23

azure.avs.ExpressRouteAuthorization

Manages an Express Route VMware Authorization.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Azure = Pulumi.Azure;

return await Deployment.RunAsync(() => 
{
    var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new()
    {
        Location = "West Europe",
    });

    var examplePrivateCloud = new Azure.Avs.PrivateCloud("examplePrivateCloud", new()
    {
        ResourceGroupName = exampleResourceGroup.Name,
        Location = exampleResourceGroup.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("exampleExpressRouteAuthorization", new()
    {
        PrivateCloudId = examplePrivateCloud.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 {
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		examplePrivateCloud, err := avs.NewPrivateCloud(ctx, "examplePrivateCloud", &avs.PrivateCloudArgs{
			ResourceGroupName: exampleResourceGroup.Name,
			Location:          exampleResourceGroup.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, "exampleExpressRouteAuthorization", &avs.ExpressRouteAuthorizationArgs{
			PrivateCloudId: examplePrivateCloud.ID(),
		})
		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.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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()        
            .location("West Europe")
            .build());

        var examplePrivateCloud = new PrivateCloud("examplePrivateCloud", PrivateCloudArgs.builder()        
            .resourceGroupName(exampleResourceGroup.name())
            .location(exampleResourceGroup.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()        
            .privateCloudId(examplePrivateCloud.id())
            .build());

    }
}
import pulumi
import pulumi_azure as azure

example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_private_cloud = azure.avs.PrivateCloud("examplePrivateCloud",
    resource_group_name=example_resource_group.name,
    location=example_resource_group.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("exampleExpressRouteAuthorization", private_cloud_id=example_private_cloud.id)
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const examplePrivateCloud = new azure.avs.PrivateCloud("examplePrivateCloud", {
    resourceGroupName: exampleResourceGroup.name,
    location: exampleResourceGroup.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("exampleExpressRouteAuthorization", {privateCloudId: examplePrivateCloud.id});
resources:
  exampleResourceGroup:
    type: azure:core:ResourceGroup
    properties:
      location: West Europe
  examplePrivateCloud:
    type: azure:avs:PrivateCloud
    properties:
      resourceGroupName: ${exampleResourceGroup.name}
      location: ${exampleResourceGroup.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
    properties:
      privateCloudId: ${examplePrivateCloud.id}

Create ExpressRouteAuthorization Resource

new ExpressRouteAuthorization(name: string, args: ExpressRouteAuthorizationArgs, opts?: CustomResourceOptions);
@overload
def ExpressRouteAuthorization(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              name: Optional[str] = None,
                              private_cloud_id: Optional[str] = None)
@overload
def ExpressRouteAuthorization(resource_name: str,
                              args: ExpressRouteAuthorizationArgs,
                              opts: Optional[ResourceOptions] = 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.

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.

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:

PrivateCloudId string

The ID of the VMware Private Cloud in which to create this Express Route VMware Authorization. Changing this forces a new VMware Authorization to be created.

Name string

The name which should be used for this Express Route VMware Authorization. Changing this forces a new VMware Authorization to be created.

PrivateCloudId string

The ID of the VMware Private Cloud in which to create this Express Route VMware Authorization. Changing this forces a new VMware Authorization to be created.

Name string

The name which should be used for this Express Route VMware Authorization. Changing this forces a new VMware Authorization to be created.

privateCloudId String

The ID of the VMware Private Cloud in which to create this Express Route VMware Authorization. Changing this forces a new VMware Authorization to be created.

name String

The name which should be used for this Express Route VMware Authorization. Changing this forces a new VMware Authorization to be created.

privateCloudId string

The ID of the VMware Private Cloud in which to create this Express Route VMware Authorization. Changing this forces a new VMware Authorization to be created.

name string

The name which should be used for this Express Route VMware Authorization. Changing this forces a new VMware Authorization to be created.

private_cloud_id str

The ID of the VMware Private Cloud in which to create this Express Route VMware Authorization. Changing this forces a new VMware Authorization to be created.

name str

The name which should be used for this Express Route VMware Authorization. Changing this forces a new VMware Authorization to be created.

privateCloudId String

The ID of the VMware Private Cloud in which to create this Express Route VMware Authorization. Changing this forces a new VMware Authorization to be created.

name String

The name which should be used for this Express Route VMware Authorization. Changing this forces a new VMware Authorization to be created.

Outputs

All input properties are implicitly available as output properties. Additionally, the ExpressRouteAuthorization resource produces the following output properties:

ExpressRouteAuthorizationId string

The ID of the Express Route Circuit Authorization.

ExpressRouteAuthorizationKey string

The key of the Express Route Circuit Authorization.

Id string

The provider-assigned unique ID for this managed resource.

ExpressRouteAuthorizationId string

The ID of the Express Route Circuit Authorization.

ExpressRouteAuthorizationKey string

The key of the Express Route Circuit Authorization.

Id string

The provider-assigned unique ID for this managed resource.

expressRouteAuthorizationId String

The ID of the Express Route Circuit Authorization.

expressRouteAuthorizationKey String

The key of the Express Route Circuit Authorization.

id String

The provider-assigned unique ID for this managed resource.

expressRouteAuthorizationId string

The ID of the Express Route Circuit Authorization.

expressRouteAuthorizationKey string

The key of the Express Route Circuit Authorization.

id string

The provider-assigned unique ID for this managed resource.

express_route_authorization_id str

The ID of the Express Route Circuit Authorization.

express_route_authorization_key str

The key of the Express Route Circuit Authorization.

id str

The provider-assigned unique ID for this managed resource.

expressRouteAuthorizationId String

The ID of the Express Route Circuit Authorization.

expressRouteAuthorizationKey String

The key of the Express Route 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.
The following state arguments are supported:
ExpressRouteAuthorizationId string

The ID of the Express Route Circuit Authorization.

ExpressRouteAuthorizationKey string

The key of the Express Route Circuit Authorization.

Name string

The name which should be used for this Express Route VMware Authorization. Changing this forces a new VMware Authorization to be created.

PrivateCloudId string

The ID of the VMware Private Cloud in which to create this Express Route VMware Authorization. Changing this forces a new VMware Authorization to be created.

ExpressRouteAuthorizationId string

The ID of the Express Route Circuit Authorization.

ExpressRouteAuthorizationKey string

The key of the Express Route Circuit Authorization.

Name string

The name which should be used for this Express Route VMware Authorization. Changing this forces a new VMware Authorization to be created.

PrivateCloudId string

The ID of the VMware Private Cloud in which to create this Express Route VMware Authorization. Changing this forces a new VMware Authorization to be created.

expressRouteAuthorizationId String

The ID of the Express Route Circuit Authorization.

expressRouteAuthorizationKey String

The key of the Express Route Circuit Authorization.

name String

The name which should be used for this Express Route VMware Authorization. Changing this forces a new VMware Authorization to be created.

privateCloudId String

The ID of the VMware Private Cloud in which to create this Express Route VMware Authorization. Changing this forces a new VMware Authorization to be created.

expressRouteAuthorizationId string

The ID of the Express Route Circuit Authorization.

expressRouteAuthorizationKey string

The key of the Express Route Circuit Authorization.

name string

The name which should be used for this Express Route VMware Authorization. Changing this forces a new VMware Authorization to be created.

privateCloudId string

The ID of the VMware Private Cloud in which to create this Express Route VMware Authorization. Changing this forces a new VMware Authorization to be created.

express_route_authorization_id str

The ID of the Express Route Circuit Authorization.

express_route_authorization_key str

The key of the Express Route Circuit Authorization.

name str

The name which should be used for this Express Route VMware Authorization. Changing this forces a new VMware Authorization to be created.

private_cloud_id str

The ID of the VMware Private Cloud in which to create this Express Route VMware Authorization. Changing this forces a new VMware Authorization to be created.

expressRouteAuthorizationId String

The ID of the Express Route Circuit Authorization.

expressRouteAuthorizationKey String

The key of the Express Route Circuit Authorization.

name String

The name which should be used for this Express Route VMware Authorization. Changing this forces a new VMware Authorization to be created.

privateCloudId String

The ID of the VMware Private Cloud in which to create this Express Route VMware Authorization. Changing this forces a new VMware Authorization to be created.

Import

VMware 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

Package Details

Repository
Azure Classic pulumi/pulumi-azure
License
Apache-2.0
Notes

This Pulumi package is based on the azurerm Terraform Provider.