vra.CloudAccountAzure
Explore with Pulumi AI
Creates a VMware vRealize Automation Azure cloud account resource.
Example Usage
S
The following example shows how to create an Azure cloud account resource.
import * as pulumi from "@pulumi/pulumi";
import * as vra from "@pulumi/vra";
const _this = new vra.CloudAccountAzure("this", {
applicationId: "sample-application-id",
applicationKey: "sample-application=key",
description: "test cloud account",
regions: ["centralus"],
subscriptionId: "sample-subscription-id",
tenantId: "sample-tenant-id",
});
import pulumi
import pulumi_vra as vra
this = vra.CloudAccountAzure("this",
application_id="sample-application-id",
application_key="sample-application=key",
description="test cloud account",
regions=["centralus"],
subscription_id="sample-subscription-id",
tenant_id="sample-tenant-id")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/vra/vra"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vra.NewCloudAccountAzure(ctx, "this", &vra.CloudAccountAzureArgs{
ApplicationId: pulumi.String("sample-application-id"),
ApplicationKey: pulumi.String("sample-application=key"),
Description: pulumi.String("test cloud account"),
Regions: pulumi.StringArray{
pulumi.String("centralus"),
},
SubscriptionId: pulumi.String("sample-subscription-id"),
TenantId: pulumi.String("sample-tenant-id"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vra = Pulumi.Vra;
return await Deployment.RunAsync(() =>
{
var @this = new Vra.CloudAccountAzure("this", new()
{
ApplicationId = "sample-application-id",
ApplicationKey = "sample-application=key",
Description = "test cloud account",
Regions = new[]
{
"centralus",
},
SubscriptionId = "sample-subscription-id",
TenantId = "sample-tenant-id",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vra.CloudAccountAzure;
import com.pulumi.vra.CloudAccountAzureArgs;
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 this_ = new CloudAccountAzure("this", CloudAccountAzureArgs.builder()
.applicationId("sample-application-id")
.applicationKey("sample-application=key")
.description("test cloud account")
.regions("centralus")
.subscriptionId("sample-subscription-id")
.tenantId("sample-tenant-id")
.build());
}
}
resources:
this:
type: vra:CloudAccountAzure
properties:
applicationId: sample-application-id
applicationKey: sample-application=key
description: test cloud account
regions:
- centralus
subscriptionId: sample-subscription-id
tenantId: sample-tenant-id
Create CloudAccountAzure Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CloudAccountAzure(name: string, args: CloudAccountAzureArgs, opts?: CustomResourceOptions);
@overload
def CloudAccountAzure(resource_name: str,
args: CloudAccountAzureArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CloudAccountAzure(resource_name: str,
opts: Optional[ResourceOptions] = None,
application_id: Optional[str] = None,
application_key: Optional[str] = None,
regions: Optional[Sequence[str]] = None,
subscription_id: Optional[str] = None,
tenant_id: Optional[str] = None,
cloud_account_azure_id: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Sequence[CloudAccountAzureTagArgs]] = None)
func NewCloudAccountAzure(ctx *Context, name string, args CloudAccountAzureArgs, opts ...ResourceOption) (*CloudAccountAzure, error)
public CloudAccountAzure(string name, CloudAccountAzureArgs args, CustomResourceOptions? opts = null)
public CloudAccountAzure(String name, CloudAccountAzureArgs args)
public CloudAccountAzure(String name, CloudAccountAzureArgs args, CustomResourceOptions options)
type: vra:CloudAccountAzure
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 CloudAccountAzureArgs
- 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 CloudAccountAzureArgs
- 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 CloudAccountAzureArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CloudAccountAzureArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CloudAccountAzureArgs
- 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 cloudAccountAzureResource = new Vra.CloudAccountAzure("cloudAccountAzureResource", new()
{
ApplicationId = "string",
ApplicationKey = "string",
Regions = new[]
{
"string",
},
SubscriptionId = "string",
TenantId = "string",
CloudAccountAzureId = "string",
Description = "string",
Name = "string",
Tags = new[]
{
new Vra.Inputs.CloudAccountAzureTagArgs
{
Key = "string",
Value = "string",
},
},
});
example, err := vra.NewCloudAccountAzure(ctx, "cloudAccountAzureResource", &vra.CloudAccountAzureArgs{
ApplicationId: pulumi.String("string"),
ApplicationKey: pulumi.String("string"),
Regions: pulumi.StringArray{
pulumi.String("string"),
},
SubscriptionId: pulumi.String("string"),
TenantId: pulumi.String("string"),
CloudAccountAzureId: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
Tags: vra.CloudAccountAzureTagArray{
&vra.CloudAccountAzureTagArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
})
var cloudAccountAzureResource = new CloudAccountAzure("cloudAccountAzureResource", CloudAccountAzureArgs.builder()
.applicationId("string")
.applicationKey("string")
.regions("string")
.subscriptionId("string")
.tenantId("string")
.cloudAccountAzureId("string")
.description("string")
.name("string")
.tags(CloudAccountAzureTagArgs.builder()
.key("string")
.value("string")
.build())
.build());
cloud_account_azure_resource = vra.CloudAccountAzure("cloudAccountAzureResource",
application_id="string",
application_key="string",
regions=["string"],
subscription_id="string",
tenant_id="string",
cloud_account_azure_id="string",
description="string",
name="string",
tags=[{
"key": "string",
"value": "string",
}])
const cloudAccountAzureResource = new vra.CloudAccountAzure("cloudAccountAzureResource", {
applicationId: "string",
applicationKey: "string",
regions: ["string"],
subscriptionId: "string",
tenantId: "string",
cloudAccountAzureId: "string",
description: "string",
name: "string",
tags: [{
key: "string",
value: "string",
}],
});
type: vra:CloudAccountAzure
properties:
applicationId: string
applicationKey: string
cloudAccountAzureId: string
description: string
name: string
regions:
- string
subscriptionId: string
tags:
- key: string
value: string
tenantId: string
CloudAccountAzure Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CloudAccountAzure resource accepts the following input properties:
- Application
Id string - Azure Client Application ID.
- Application
Key string - Azure Client Application Secret Key.
- Regions List<string>
- Set of region names enabled for the cloud account.
- Subscription
Id string - Azure Subscription ID.
- Tenant
Id string - Azure Tenant ID.
- Cloud
Account stringAzure Id - Description string
- Human-friendly description.
- Name string
- Name of Azure cloud account.
- List<Cloud
Account Azure Tag> - Set of tag keys and values to apply to the cloud account.
Example:
[ { "key" : "vmware", "value": "provider" } ]
- Application
Id string - Azure Client Application ID.
- Application
Key string - Azure Client Application Secret Key.
- Regions []string
- Set of region names enabled for the cloud account.
- Subscription
Id string - Azure Subscription ID.
- Tenant
Id string - Azure Tenant ID.
- Cloud
Account stringAzure Id - Description string
- Human-friendly description.
- Name string
- Name of Azure cloud account.
- []Cloud
Account Azure Tag Args - Set of tag keys and values to apply to the cloud account.
Example:
[ { "key" : "vmware", "value": "provider" } ]
- application
Id String - Azure Client Application ID.
- application
Key String - Azure Client Application Secret Key.
- regions List<String>
- Set of region names enabled for the cloud account.
- subscription
Id String - Azure Subscription ID.
- tenant
Id String - Azure Tenant ID.
- cloud
Account StringAzure Id - description String
- Human-friendly description.
- name String
- Name of Azure cloud account.
- List<Cloud
Account Azure Tag> - Set of tag keys and values to apply to the cloud account.
Example:
[ { "key" : "vmware", "value": "provider" } ]
- application
Id string - Azure Client Application ID.
- application
Key string - Azure Client Application Secret Key.
- regions string[]
- Set of region names enabled for the cloud account.
- subscription
Id string - Azure Subscription ID.
- tenant
Id string - Azure Tenant ID.
- cloud
Account stringAzure Id - description string
- Human-friendly description.
- name string
- Name of Azure cloud account.
- Cloud
Account Azure Tag[] - Set of tag keys and values to apply to the cloud account.
Example:
[ { "key" : "vmware", "value": "provider" } ]
- application_
id str - Azure Client Application ID.
- application_
key str - Azure Client Application Secret Key.
- regions Sequence[str]
- Set of region names enabled for the cloud account.
- subscription_
id str - Azure Subscription ID.
- tenant_
id str - Azure Tenant ID.
- cloud_
account_ strazure_ id - description str
- Human-friendly description.
- name str
- Name of Azure cloud account.
- Sequence[Cloud
Account Azure Tag Args] - Set of tag keys and values to apply to the cloud account.
Example:
[ { "key" : "vmware", "value": "provider" } ]
- application
Id String - Azure Client Application ID.
- application
Key String - Azure Client Application Secret Key.
- regions List<String>
- Set of region names enabled for the cloud account.
- subscription
Id String - Azure Subscription ID.
- tenant
Id String - Azure Tenant ID.
- cloud
Account StringAzure Id - description String
- Human-friendly description.
- name String
- Name of Azure cloud account.
- List<Property Map>
- Set of tag keys and values to apply to the cloud account.
Example:
[ { "key" : "vmware", "value": "provider" } ]
Outputs
All input properties are implicitly available as output properties. Additionally, the CloudAccountAzure resource produces the following output properties:
- Created
At string - Date when entity was created. Date and time format is ISO 8601 and UTC.
- Id string
- The provider-assigned unique ID for this managed resource.
- Links
List<Cloud
Account Azure Link> - HATEOAS of entity.
- Org
Id string - ID of organization that entity belongs to.
- Owner string
- Email of entity owner.
- Updated
At string - Date when entity was last updated. Date and time format is ISO 8601 and UTC.
- Created
At string - Date when entity was created. Date and time format is ISO 8601 and UTC.
- Id string
- The provider-assigned unique ID for this managed resource.
- Links
[]Cloud
Account Azure Link - HATEOAS of entity.
- Org
Id string - ID of organization that entity belongs to.
- Owner string
- Email of entity owner.
- Updated
At string - Date when entity was last updated. Date and time format is ISO 8601 and UTC.
- created
At String - Date when entity was created. Date and time format is ISO 8601 and UTC.
- id String
- The provider-assigned unique ID for this managed resource.
- links
List<Cloud
Account Azure Link> - HATEOAS of entity.
- org
Id String - ID of organization that entity belongs to.
- owner String
- Email of entity owner.
- updated
At String - Date when entity was last updated. Date and time format is ISO 8601 and UTC.
- created
At string - Date when entity was created. Date and time format is ISO 8601 and UTC.
- id string
- The provider-assigned unique ID for this managed resource.
- links
Cloud
Account Azure Link[] - HATEOAS of entity.
- org
Id string - ID of organization that entity belongs to.
- owner string
- Email of entity owner.
- updated
At string - Date when entity was last updated. Date and time format is ISO 8601 and UTC.
- created_
at str - Date when entity was created. Date and time format is ISO 8601 and UTC.
- id str
- The provider-assigned unique ID for this managed resource.
- links
Sequence[Cloud
Account Azure Link] - HATEOAS of entity.
- org_
id str - ID of organization that entity belongs to.
- owner str
- Email of entity owner.
- updated_
at str - Date when entity was last updated. Date and time format is ISO 8601 and UTC.
- created
At String - Date when entity was created. Date and time format is ISO 8601 and UTC.
- id String
- The provider-assigned unique ID for this managed resource.
- links List<Property Map>
- HATEOAS of entity.
- org
Id String - ID of organization that entity belongs to.
- owner String
- Email of entity owner.
- updated
At String - Date when entity was last updated. Date and time format is ISO 8601 and UTC.
Look up Existing CloudAccountAzure Resource
Get an existing CloudAccountAzure 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?: CloudAccountAzureState, opts?: CustomResourceOptions): CloudAccountAzure
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
application_id: Optional[str] = None,
application_key: Optional[str] = None,
cloud_account_azure_id: Optional[str] = None,
created_at: Optional[str] = None,
description: Optional[str] = None,
links: Optional[Sequence[CloudAccountAzureLinkArgs]] = None,
name: Optional[str] = None,
org_id: Optional[str] = None,
owner: Optional[str] = None,
regions: Optional[Sequence[str]] = None,
subscription_id: Optional[str] = None,
tags: Optional[Sequence[CloudAccountAzureTagArgs]] = None,
tenant_id: Optional[str] = None,
updated_at: Optional[str] = None) -> CloudAccountAzure
func GetCloudAccountAzure(ctx *Context, name string, id IDInput, state *CloudAccountAzureState, opts ...ResourceOption) (*CloudAccountAzure, error)
public static CloudAccountAzure Get(string name, Input<string> id, CloudAccountAzureState? state, CustomResourceOptions? opts = null)
public static CloudAccountAzure get(String name, Output<String> id, CloudAccountAzureState state, CustomResourceOptions options)
resources: _: type: vra:CloudAccountAzure get: id: ${id}
- 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.
- Application
Id string - Azure Client Application ID.
- Application
Key string - Azure Client Application Secret Key.
- Cloud
Account stringAzure Id - Created
At string - Date when entity was created. Date and time format is ISO 8601 and UTC.
- Description string
- Human-friendly description.
- Links
List<Cloud
Account Azure Link> - HATEOAS of entity.
- Name string
- Name of Azure cloud account.
- Org
Id string - ID of organization that entity belongs to.
- Owner string
- Email of entity owner.
- Regions List<string>
- Set of region names enabled for the cloud account.
- Subscription
Id string - Azure Subscription ID.
- List<Cloud
Account Azure Tag> - Set of tag keys and values to apply to the cloud account.
Example:
[ { "key" : "vmware", "value": "provider" } ]
- Tenant
Id string - Azure Tenant ID.
- Updated
At string - Date when entity was last updated. Date and time format is ISO 8601 and UTC.
- Application
Id string - Azure Client Application ID.
- Application
Key string - Azure Client Application Secret Key.
- Cloud
Account stringAzure Id - Created
At string - Date when entity was created. Date and time format is ISO 8601 and UTC.
- Description string
- Human-friendly description.
- Links
[]Cloud
Account Azure Link Args - HATEOAS of entity.
- Name string
- Name of Azure cloud account.
- Org
Id string - ID of organization that entity belongs to.
- Owner string
- Email of entity owner.
- Regions []string
- Set of region names enabled for the cloud account.
- Subscription
Id string - Azure Subscription ID.
- []Cloud
Account Azure Tag Args - Set of tag keys and values to apply to the cloud account.
Example:
[ { "key" : "vmware", "value": "provider" } ]
- Tenant
Id string - Azure Tenant ID.
- Updated
At string - Date when entity was last updated. Date and time format is ISO 8601 and UTC.
- application
Id String - Azure Client Application ID.
- application
Key String - Azure Client Application Secret Key.
- cloud
Account StringAzure Id - created
At String - Date when entity was created. Date and time format is ISO 8601 and UTC.
- description String
- Human-friendly description.
- links
List<Cloud
Account Azure Link> - HATEOAS of entity.
- name String
- Name of Azure cloud account.
- org
Id String - ID of organization that entity belongs to.
- owner String
- Email of entity owner.
- regions List<String>
- Set of region names enabled for the cloud account.
- subscription
Id String - Azure Subscription ID.
- List<Cloud
Account Azure Tag> - Set of tag keys and values to apply to the cloud account.
Example:
[ { "key" : "vmware", "value": "provider" } ]
- tenant
Id String - Azure Tenant ID.
- updated
At String - Date when entity was last updated. Date and time format is ISO 8601 and UTC.
- application
Id string - Azure Client Application ID.
- application
Key string - Azure Client Application Secret Key.
- cloud
Account stringAzure Id - created
At string - Date when entity was created. Date and time format is ISO 8601 and UTC.
- description string
- Human-friendly description.
- links
Cloud
Account Azure Link[] - HATEOAS of entity.
- name string
- Name of Azure cloud account.
- org
Id string - ID of organization that entity belongs to.
- owner string
- Email of entity owner.
- regions string[]
- Set of region names enabled for the cloud account.
- subscription
Id string - Azure Subscription ID.
- Cloud
Account Azure Tag[] - Set of tag keys and values to apply to the cloud account.
Example:
[ { "key" : "vmware", "value": "provider" } ]
- tenant
Id string - Azure Tenant ID.
- updated
At string - Date when entity was last updated. Date and time format is ISO 8601 and UTC.
- application_
id str - Azure Client Application ID.
- application_
key str - Azure Client Application Secret Key.
- cloud_
account_ strazure_ id - created_
at str - Date when entity was created. Date and time format is ISO 8601 and UTC.
- description str
- Human-friendly description.
- links
Sequence[Cloud
Account Azure Link Args] - HATEOAS of entity.
- name str
- Name of Azure cloud account.
- org_
id str - ID of organization that entity belongs to.
- owner str
- Email of entity owner.
- regions Sequence[str]
- Set of region names enabled for the cloud account.
- subscription_
id str - Azure Subscription ID.
- Sequence[Cloud
Account Azure Tag Args] - Set of tag keys and values to apply to the cloud account.
Example:
[ { "key" : "vmware", "value": "provider" } ]
- tenant_
id str - Azure Tenant ID.
- updated_
at str - Date when entity was last updated. Date and time format is ISO 8601 and UTC.
- application
Id String - Azure Client Application ID.
- application
Key String - Azure Client Application Secret Key.
- cloud
Account StringAzure Id - created
At String - Date when entity was created. Date and time format is ISO 8601 and UTC.
- description String
- Human-friendly description.
- links List<Property Map>
- HATEOAS of entity.
- name String
- Name of Azure cloud account.
- org
Id String - ID of organization that entity belongs to.
- owner String
- Email of entity owner.
- regions List<String>
- Set of region names enabled for the cloud account.
- subscription
Id String - Azure Subscription ID.
- List<Property Map>
- Set of tag keys and values to apply to the cloud account.
Example:
[ { "key" : "vmware", "value": "provider" } ]
- tenant
Id String - Azure Tenant ID.
- updated
At String - Date when entity was last updated. Date and time format is ISO 8601 and UTC.
Supporting Types
CloudAccountAzureLink, CloudAccountAzureLinkArgs
CloudAccountAzureTag, CloudAccountAzureTagArgs
Import
To import the Azure cloud account, use the ID as in the following example:
$ pulumi import vra:index/cloudAccountAzure:CloudAccountAzure new_azure 05956583-6488-4e7d-84c9-92a7b7219a15`
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- vra vmware/terraform-provider-vra
- License
- Notes
- This Pulumi package is based on the
vra
Terraform Provider.