Azure
Subscription
Section titled “Subscription”Azure Subscription
resource "azure_subscription" "name" { ...}
Attributes
Section titled “Attributes”Attribute | Description |
---|---|
Regions | The regions infrastructure can be provisioned into.
|
Services | The services to allow access to.
|
Tags | Tags to add to the subscription.
|
key = “value” | |
} | |
Users | Users that will be created within the subscription.
|
roles = [ |
"Owner"
] } | |
ServicePrincipals service_principal
type: []block
ServicePrincipal
Service Principals that will be created within the subscription.
service_principal “admin” {
roles = [
“Owner”
]
}
|
| TenantID tenant_id
type: string
SubscriptionID subscription_id
type: string
Computed Attributes
Section titled “Computed Attributes”These attributes are computed when the config is parsed and applied, and are
therefore only known at parsetime or runtime.
Attribute | Description |
---|---|
Meta ID | The full ID of the resource e.g.
|
resource “container” “ubuntu” { | |
… | |
} |
// the resulting id will be resource.container.ubuntu | |
Meta Type meta.type
string
The type of the resource.
This taken from the type label of the resource definition.
| |// given the following resource resource “container” “ubuntu” { … }
// the resulting type will be container
Meta Name meta.name
string
The name of the resource.
This taken from the name label of the resource definition.
|// given the following resource resource “container” “ubuntu” { … }
// the resulting name will be ubuntu
\
Azure User
resource "azure_subscription" "name" {user "name" { ...}}
Attributes
Section titled “Attributes”Attribute | Description |
---|---|
Name | The username of the user.
|
… | |
} | |
Roles | The roles that will be assigned to the user.
|
UserID | Output parameters |
Username | |
Password |
Computed Attributes
Section titled “Computed Attributes”These attributes are computed when the config is parsed and applied, and are
therefore only known at parsetime or runtime.
\
ServicePrincipal
Section titled “ServicePrincipal”Azure Service Principal
resource "azure_subscription" "name" {service_principal "name" { ...}}
Attributes
Section titled “Attributes”Attribute | Description |
---|---|
Name | The name of the service principal.
|
… | |
} | |
Roles | The roles that will be assigned to the service principal.
|
ServicePrincipalID | Output parameters |
AppID | |
Password |
Computed Attributes
Section titled “Computed Attributes”These attributes are computed when the config is parsed and applied, and are
therefore only known at parsetime or runtime.