octopusdeploy.AzureSubscriptionAccount
Explore with Pulumi AI
This resource manages Azure subscription accounts in Octopus Deploy.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as octopusdeploy from "@pulumi/octopusdeploy";
const example = new octopusdeploy.AzureSubscriptionAccount("example", {subscriptionId: "00000000-0000-0000-0000-000000000000"});
import pulumi
import pulumi_octopusdeploy as octopusdeploy
example = octopusdeploy.AzureSubscriptionAccount("example", subscription_id="00000000-0000-0000-0000-000000000000")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/octopusdeploy/octopusdeploy"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := octopusdeploy.NewAzureSubscriptionAccount(ctx, "example", &octopusdeploy.AzureSubscriptionAccountArgs{
SubscriptionId: pulumi.String("00000000-0000-0000-0000-000000000000"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Octopusdeploy = Pulumi.Octopusdeploy;
return await Deployment.RunAsync(() =>
{
var example = new Octopusdeploy.AzureSubscriptionAccount("example", new()
{
SubscriptionId = "00000000-0000-0000-0000-000000000000",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.octopusdeploy.AzureSubscriptionAccount;
import com.pulumi.octopusdeploy.AzureSubscriptionAccountArgs;
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 AzureSubscriptionAccount("example", AzureSubscriptionAccountArgs.builder()
.subscriptionId("00000000-0000-0000-0000-000000000000")
.build());
}
}
resources:
example:
type: octopusdeploy:AzureSubscriptionAccount
properties:
subscriptionId: 00000000-0000-0000-0000-000000000000
Create AzureSubscriptionAccount Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AzureSubscriptionAccount(name: string, args: AzureSubscriptionAccountArgs, opts?: CustomResourceOptions);
@overload
def AzureSubscriptionAccount(resource_name: str,
args: AzureSubscriptionAccountArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AzureSubscriptionAccount(resource_name: str,
opts: Optional[ResourceOptions] = None,
subscription_id: Optional[str] = None,
management_endpoint: Optional[str] = None,
certificate: Optional[str] = None,
certificate_thumbprint: Optional[str] = None,
description: Optional[str] = None,
environments: Optional[Sequence[str]] = None,
azure_environment: Optional[str] = None,
name: Optional[str] = None,
space_id: Optional[str] = None,
storage_endpoint_suffix: Optional[str] = None,
azure_subscription_account_id: Optional[str] = None,
tenant_tags: Optional[Sequence[str]] = None,
tenanted_deployment_participation: Optional[str] = None,
tenants: Optional[Sequence[str]] = None)
func NewAzureSubscriptionAccount(ctx *Context, name string, args AzureSubscriptionAccountArgs, opts ...ResourceOption) (*AzureSubscriptionAccount, error)
public AzureSubscriptionAccount(string name, AzureSubscriptionAccountArgs args, CustomResourceOptions? opts = null)
public AzureSubscriptionAccount(String name, AzureSubscriptionAccountArgs args)
public AzureSubscriptionAccount(String name, AzureSubscriptionAccountArgs args, CustomResourceOptions options)
type: octopusdeploy:AzureSubscriptionAccount
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 AzureSubscriptionAccountArgs
- 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 AzureSubscriptionAccountArgs
- 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 AzureSubscriptionAccountArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AzureSubscriptionAccountArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AzureSubscriptionAccountArgs
- 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 azureSubscriptionAccountResource = new Octopusdeploy.AzureSubscriptionAccount("azureSubscriptionAccountResource", new()
{
SubscriptionId = "string",
ManagementEndpoint = "string",
Certificate = "string",
CertificateThumbprint = "string",
Description = "string",
Environments = new[]
{
"string",
},
AzureEnvironment = "string",
Name = "string",
SpaceId = "string",
StorageEndpointSuffix = "string",
AzureSubscriptionAccountId = "string",
TenantTags = new[]
{
"string",
},
TenantedDeploymentParticipation = "string",
Tenants = new[]
{
"string",
},
});
example, err := octopusdeploy.NewAzureSubscriptionAccount(ctx, "azureSubscriptionAccountResource", &octopusdeploy.AzureSubscriptionAccountArgs{
SubscriptionId: pulumi.String("string"),
ManagementEndpoint: pulumi.String("string"),
Certificate: pulumi.String("string"),
CertificateThumbprint: pulumi.String("string"),
Description: pulumi.String("string"),
Environments: pulumi.StringArray{
pulumi.String("string"),
},
AzureEnvironment: pulumi.String("string"),
Name: pulumi.String("string"),
SpaceId: pulumi.String("string"),
StorageEndpointSuffix: pulumi.String("string"),
AzureSubscriptionAccountId: pulumi.String("string"),
TenantTags: pulumi.StringArray{
pulumi.String("string"),
},
TenantedDeploymentParticipation: pulumi.String("string"),
Tenants: pulumi.StringArray{
pulumi.String("string"),
},
})
var azureSubscriptionAccountResource = new AzureSubscriptionAccount("azureSubscriptionAccountResource", AzureSubscriptionAccountArgs.builder()
.subscriptionId("string")
.managementEndpoint("string")
.certificate("string")
.certificateThumbprint("string")
.description("string")
.environments("string")
.azureEnvironment("string")
.name("string")
.spaceId("string")
.storageEndpointSuffix("string")
.azureSubscriptionAccountId("string")
.tenantTags("string")
.tenantedDeploymentParticipation("string")
.tenants("string")
.build());
azure_subscription_account_resource = octopusdeploy.AzureSubscriptionAccount("azureSubscriptionAccountResource",
subscription_id="string",
management_endpoint="string",
certificate="string",
certificate_thumbprint="string",
description="string",
environments=["string"],
azure_environment="string",
name="string",
space_id="string",
storage_endpoint_suffix="string",
azure_subscription_account_id="string",
tenant_tags=["string"],
tenanted_deployment_participation="string",
tenants=["string"])
const azureSubscriptionAccountResource = new octopusdeploy.AzureSubscriptionAccount("azureSubscriptionAccountResource", {
subscriptionId: "string",
managementEndpoint: "string",
certificate: "string",
certificateThumbprint: "string",
description: "string",
environments: ["string"],
azureEnvironment: "string",
name: "string",
spaceId: "string",
storageEndpointSuffix: "string",
azureSubscriptionAccountId: "string",
tenantTags: ["string"],
tenantedDeploymentParticipation: "string",
tenants: ["string"],
});
type: octopusdeploy:AzureSubscriptionAccount
properties:
azureEnvironment: string
azureSubscriptionAccountId: string
certificate: string
certificateThumbprint: string
description: string
environments:
- string
managementEndpoint: string
name: string
spaceId: string
storageEndpointSuffix: string
subscriptionId: string
tenantTags:
- string
tenantedDeploymentParticipation: string
tenants:
- string
AzureSubscriptionAccount 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 AzureSubscriptionAccount resource accepts the following input properties:
- Subscription
Id string - The subscription ID of this resource.
- Azure
Environment string - The Azure environment associated with this resource. Valid Azure environments are
AzureCloud
,AzureChinaCloud
,AzureGermanCloud
, orAzureUSGovernment
. - Azure
Subscription stringAccount Id - The ID of this resource.
- Certificate string
- Certificate
Thumbprint string - Description string
- The description of this Azure subscription account.
- Environments List<string>
- A list of environment IDs associated with this resource.
- Management
Endpoint string - Name string
- The name of this resource.
- Space
Id string - The space ID associated with this resource.
- Storage
Endpoint stringSuffix - The storage endpoint suffix associated with this Azure subscription account.
- List<string>
- A list of tenant tags associated with this resource.
- Tenanted
Deployment stringParticipation - The tenanted deployment mode of the resource. Valid account types are
Untenanted
,TenantedOrUntenanted
, orTenanted
. - Tenants List<string>
- A list of tenant IDs associated with this resource.
- Subscription
Id string - The subscription ID of this resource.
- Azure
Environment string - The Azure environment associated with this resource. Valid Azure environments are
AzureCloud
,AzureChinaCloud
,AzureGermanCloud
, orAzureUSGovernment
. - Azure
Subscription stringAccount Id - The ID of this resource.
- Certificate string
- Certificate
Thumbprint string - Description string
- The description of this Azure subscription account.
- Environments []string
- A list of environment IDs associated with this resource.
- Management
Endpoint string - Name string
- The name of this resource.
- Space
Id string - The space ID associated with this resource.
- Storage
Endpoint stringSuffix - The storage endpoint suffix associated with this Azure subscription account.
- []string
- A list of tenant tags associated with this resource.
- Tenanted
Deployment stringParticipation - The tenanted deployment mode of the resource. Valid account types are
Untenanted
,TenantedOrUntenanted
, orTenanted
. - Tenants []string
- A list of tenant IDs associated with this resource.
- subscription
Id String - The subscription ID of this resource.
- azure
Environment String - The Azure environment associated with this resource. Valid Azure environments are
AzureCloud
,AzureChinaCloud
,AzureGermanCloud
, orAzureUSGovernment
. - azure
Subscription StringAccount Id - The ID of this resource.
- certificate String
- certificate
Thumbprint String - description String
- The description of this Azure subscription account.
- environments List<String>
- A list of environment IDs associated with this resource.
- management
Endpoint String - name String
- The name of this resource.
- space
Id String - The space ID associated with this resource.
- storage
Endpoint StringSuffix - The storage endpoint suffix associated with this Azure subscription account.
- List<String>
- A list of tenant tags associated with this resource.
- tenanted
Deployment StringParticipation - The tenanted deployment mode of the resource. Valid account types are
Untenanted
,TenantedOrUntenanted
, orTenanted
. - tenants List<String>
- A list of tenant IDs associated with this resource.
- subscription
Id string - The subscription ID of this resource.
- azure
Environment string - The Azure environment associated with this resource. Valid Azure environments are
AzureCloud
,AzureChinaCloud
,AzureGermanCloud
, orAzureUSGovernment
. - azure
Subscription stringAccount Id - The ID of this resource.
- certificate string
- certificate
Thumbprint string - description string
- The description of this Azure subscription account.
- environments string[]
- A list of environment IDs associated with this resource.
- management
Endpoint string - name string
- The name of this resource.
- space
Id string - The space ID associated with this resource.
- storage
Endpoint stringSuffix - The storage endpoint suffix associated with this Azure subscription account.
- string[]
- A list of tenant tags associated with this resource.
- tenanted
Deployment stringParticipation - The tenanted deployment mode of the resource. Valid account types are
Untenanted
,TenantedOrUntenanted
, orTenanted
. - tenants string[]
- A list of tenant IDs associated with this resource.
- subscription_
id str - The subscription ID of this resource.
- azure_
environment str - The Azure environment associated with this resource. Valid Azure environments are
AzureCloud
,AzureChinaCloud
,AzureGermanCloud
, orAzureUSGovernment
. - azure_
subscription_ straccount_ id - The ID of this resource.
- certificate str
- certificate_
thumbprint str - description str
- The description of this Azure subscription account.
- environments Sequence[str]
- A list of environment IDs associated with this resource.
- management_
endpoint str - name str
- The name of this resource.
- space_
id str - The space ID associated with this resource.
- storage_
endpoint_ strsuffix - The storage endpoint suffix associated with this Azure subscription account.
- Sequence[str]
- A list of tenant tags associated with this resource.
- tenanted_
deployment_ strparticipation - The tenanted deployment mode of the resource. Valid account types are
Untenanted
,TenantedOrUntenanted
, orTenanted
. - tenants Sequence[str]
- A list of tenant IDs associated with this resource.
- subscription
Id String - The subscription ID of this resource.
- azure
Environment String - The Azure environment associated with this resource. Valid Azure environments are
AzureCloud
,AzureChinaCloud
,AzureGermanCloud
, orAzureUSGovernment
. - azure
Subscription StringAccount Id - The ID of this resource.
- certificate String
- certificate
Thumbprint String - description String
- The description of this Azure subscription account.
- environments List<String>
- A list of environment IDs associated with this resource.
- management
Endpoint String - name String
- The name of this resource.
- space
Id String - The space ID associated with this resource.
- storage
Endpoint StringSuffix - The storage endpoint suffix associated with this Azure subscription account.
- List<String>
- A list of tenant tags associated with this resource.
- tenanted
Deployment StringParticipation - The tenanted deployment mode of the resource. Valid account types are
Untenanted
,TenantedOrUntenanted
, orTenanted
. - tenants List<String>
- A list of tenant IDs associated with this resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the AzureSubscriptionAccount resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing AzureSubscriptionAccount Resource
Get an existing AzureSubscriptionAccount 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?: AzureSubscriptionAccountState, opts?: CustomResourceOptions): AzureSubscriptionAccount
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
azure_environment: Optional[str] = None,
azure_subscription_account_id: Optional[str] = None,
certificate: Optional[str] = None,
certificate_thumbprint: Optional[str] = None,
description: Optional[str] = None,
environments: Optional[Sequence[str]] = None,
management_endpoint: Optional[str] = None,
name: Optional[str] = None,
space_id: Optional[str] = None,
storage_endpoint_suffix: Optional[str] = None,
subscription_id: Optional[str] = None,
tenant_tags: Optional[Sequence[str]] = None,
tenanted_deployment_participation: Optional[str] = None,
tenants: Optional[Sequence[str]] = None) -> AzureSubscriptionAccount
func GetAzureSubscriptionAccount(ctx *Context, name string, id IDInput, state *AzureSubscriptionAccountState, opts ...ResourceOption) (*AzureSubscriptionAccount, error)
public static AzureSubscriptionAccount Get(string name, Input<string> id, AzureSubscriptionAccountState? state, CustomResourceOptions? opts = null)
public static AzureSubscriptionAccount get(String name, Output<String> id, AzureSubscriptionAccountState state, CustomResourceOptions options)
resources: _: type: octopusdeploy:AzureSubscriptionAccount 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.
- Azure
Environment string - The Azure environment associated with this resource. Valid Azure environments are
AzureCloud
,AzureChinaCloud
,AzureGermanCloud
, orAzureUSGovernment
. - Azure
Subscription stringAccount Id - The ID of this resource.
- Certificate string
- Certificate
Thumbprint string - Description string
- The description of this Azure subscription account.
- Environments List<string>
- A list of environment IDs associated with this resource.
- Management
Endpoint string - Name string
- The name of this resource.
- Space
Id string - The space ID associated with this resource.
- Storage
Endpoint stringSuffix - The storage endpoint suffix associated with this Azure subscription account.
- Subscription
Id string - The subscription ID of this resource.
- List<string>
- A list of tenant tags associated with this resource.
- Tenanted
Deployment stringParticipation - The tenanted deployment mode of the resource. Valid account types are
Untenanted
,TenantedOrUntenanted
, orTenanted
. - Tenants List<string>
- A list of tenant IDs associated with this resource.
- Azure
Environment string - The Azure environment associated with this resource. Valid Azure environments are
AzureCloud
,AzureChinaCloud
,AzureGermanCloud
, orAzureUSGovernment
. - Azure
Subscription stringAccount Id - The ID of this resource.
- Certificate string
- Certificate
Thumbprint string - Description string
- The description of this Azure subscription account.
- Environments []string
- A list of environment IDs associated with this resource.
- Management
Endpoint string - Name string
- The name of this resource.
- Space
Id string - The space ID associated with this resource.
- Storage
Endpoint stringSuffix - The storage endpoint suffix associated with this Azure subscription account.
- Subscription
Id string - The subscription ID of this resource.
- []string
- A list of tenant tags associated with this resource.
- Tenanted
Deployment stringParticipation - The tenanted deployment mode of the resource. Valid account types are
Untenanted
,TenantedOrUntenanted
, orTenanted
. - Tenants []string
- A list of tenant IDs associated with this resource.
- azure
Environment String - The Azure environment associated with this resource. Valid Azure environments are
AzureCloud
,AzureChinaCloud
,AzureGermanCloud
, orAzureUSGovernment
. - azure
Subscription StringAccount Id - The ID of this resource.
- certificate String
- certificate
Thumbprint String - description String
- The description of this Azure subscription account.
- environments List<String>
- A list of environment IDs associated with this resource.
- management
Endpoint String - name String
- The name of this resource.
- space
Id String - The space ID associated with this resource.
- storage
Endpoint StringSuffix - The storage endpoint suffix associated with this Azure subscription account.
- subscription
Id String - The subscription ID of this resource.
- List<String>
- A list of tenant tags associated with this resource.
- tenanted
Deployment StringParticipation - The tenanted deployment mode of the resource. Valid account types are
Untenanted
,TenantedOrUntenanted
, orTenanted
. - tenants List<String>
- A list of tenant IDs associated with this resource.
- azure
Environment string - The Azure environment associated with this resource. Valid Azure environments are
AzureCloud
,AzureChinaCloud
,AzureGermanCloud
, orAzureUSGovernment
. - azure
Subscription stringAccount Id - The ID of this resource.
- certificate string
- certificate
Thumbprint string - description string
- The description of this Azure subscription account.
- environments string[]
- A list of environment IDs associated with this resource.
- management
Endpoint string - name string
- The name of this resource.
- space
Id string - The space ID associated with this resource.
- storage
Endpoint stringSuffix - The storage endpoint suffix associated with this Azure subscription account.
- subscription
Id string - The subscription ID of this resource.
- string[]
- A list of tenant tags associated with this resource.
- tenanted
Deployment stringParticipation - The tenanted deployment mode of the resource. Valid account types are
Untenanted
,TenantedOrUntenanted
, orTenanted
. - tenants string[]
- A list of tenant IDs associated with this resource.
- azure_
environment str - The Azure environment associated with this resource. Valid Azure environments are
AzureCloud
,AzureChinaCloud
,AzureGermanCloud
, orAzureUSGovernment
. - azure_
subscription_ straccount_ id - The ID of this resource.
- certificate str
- certificate_
thumbprint str - description str
- The description of this Azure subscription account.
- environments Sequence[str]
- A list of environment IDs associated with this resource.
- management_
endpoint str - name str
- The name of this resource.
- space_
id str - The space ID associated with this resource.
- storage_
endpoint_ strsuffix - The storage endpoint suffix associated with this Azure subscription account.
- subscription_
id str - The subscription ID of this resource.
- Sequence[str]
- A list of tenant tags associated with this resource.
- tenanted_
deployment_ strparticipation - The tenanted deployment mode of the resource. Valid account types are
Untenanted
,TenantedOrUntenanted
, orTenanted
. - tenants Sequence[str]
- A list of tenant IDs associated with this resource.
- azure
Environment String - The Azure environment associated with this resource. Valid Azure environments are
AzureCloud
,AzureChinaCloud
,AzureGermanCloud
, orAzureUSGovernment
. - azure
Subscription StringAccount Id - The ID of this resource.
- certificate String
- certificate
Thumbprint String - description String
- The description of this Azure subscription account.
- environments List<String>
- A list of environment IDs associated with this resource.
- management
Endpoint String - name String
- The name of this resource.
- space
Id String - The space ID associated with this resource.
- storage
Endpoint StringSuffix - The storage endpoint suffix associated with this Azure subscription account.
- subscription
Id String - The subscription ID of this resource.
- List<String>
- A list of tenant tags associated with this resource.
- tenanted
Deployment StringParticipation - The tenanted deployment mode of the resource. Valid account types are
Untenanted
,TenantedOrUntenanted
, orTenanted
. - tenants List<String>
- A list of tenant IDs associated with this resource.
Import
$ pulumi import octopusdeploy:index/azureSubscriptionAccount:AzureSubscriptionAccount [options] octopusdeploy_azure_subscription_account.<name> <account-id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- octopusdeploy octopusdeploylabs/terraform-provider-octopusdeploy
- License
- Notes
- This Pulumi package is based on the
octopusdeploy
Terraform Provider.