Instruqt Labs (beta)
  • Instruqt
  • Getting started
    • Setting up Version Control
    • Install Instruqt CLI
    • Creating your first lab
    • Configuration basics
    • Exploring the lab configuration
    • Adding your first chapter
    • Configuring sandboxes
    • Adding quizzes
    • Adding tasks and gating content
    • Finishing up
  • Documentation
    • Writing Lab Content
      • Project Structure
      • Markdown and Components
    • Integrations
      • Version Control
    • Lab reference
      • Content
        • Lab
        • Page
        • Activities
          • Task
          • Quiz
            • Multiple Choice
            • Single Choice
            • Text Answer
            • Numeric Answer
        • Layout
        • Tabs
          • Terminal
          • Service
          • Editor
          • External Website
          • Note
      • Sandbox
        • Containers
          • Container
          • Sidecar Container
        • Kubernetes
          • Cluster
          • Config
          • Helm
        • Nomad
          • Cluster
          • Job
        • Networking
          • Network
          • Ingress
        • Cloud Accounts
          • AWS
          • Azure
          • Google Cloud
        • Terraform
        • Template
        • Exec
        • Copy
        • Certificates
          • Root
          • Leaf
        • Random
          • Number
          • ID
          • UUID
          • Password
          • Creature
      • Functions
    • Tools
      • Instruqt CLI
    • Glossary
Powered by GitBook
On this page
  • Subscription
  • User
  • ServicePrincipal
Edit on GitHub
Export as PDF
  1. Documentation
  2. Lab reference
  3. Sandbox
  4. Cloud Accounts

Azure

Subscription

Azure Subscription


resource "azure_subscription" "name" {
  ...
}

Attributes

Attribute
Description

Regions regions type: []string

The regions infrastructure can be provisioned into.

Services services type: []string

The services to allow access to.

Tags tags type: map[string]string

Tags to add to the subscription.

Users that will be created within the subscription.

Service Principals that will be created within the subscription.

TenantID tenant_id type: string

Output parameters

SubscriptionID subscription_id type: string

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 meta.id string

The full ID of the resource e.g. `resource.type.name`. This is computed from the full resource path:

Meta Type meta.type string

The type of the resource. This taken from the type label of the resource definition.

Meta Name meta.name string

The name of the resource. This taken from the name label of the resource definition.


User

Azure User


resource "azure_subscription" "name" {
user "name" {
  ...
}
}

Attributes

Attribute
Description

Name name required type: string

The username of the user.

Roles roles type: []string

The roles that will be assigned to the user.

UserID user_id type: string

Output parameters

Username username type: string

Password password type: string

Computed Attributes

These attributes are computed when the config is parsed and applied, and are therefore only known at parsetime or runtime.


ServicePrincipal

Azure Service Principal


resource "azure_subscription" "name" {
service_principal "name" {
  ...
}
}

Attributes

Attribute
Description

Name name required type: string

The name of the service principal.

Roles roles type: []string

The roles that will be assigned to the service principal.

ServicePrincipalID service_principal_id type: string

Output parameters

AppID app_id type: string

Password password type: string

Computed Attributes

These attributes are computed when the config is parsed and applied, and are therefore only known at parsetime or runtime.

PreviousAWSNextGoogle Cloud

Last updated 1 month ago

Users user type: []block

ServicePrincipals service_principal type: []block

regions = ["westeurope"]
services = ["Microsoft.Compute"]
tags = {
  key = "value"
}
user "admin" {
  roles = [
    "Owner"
  ]
}
service_principal "admin" {
  roles = [
    "Owner"
  ]
}
// given the following resource
resource "container" "ubuntu" {
  ...
}

// the resulting id will be
resource.container.ubuntu
// given the following resource
resource "container" "ubuntu" {
  ...
}

// the resulting type will be
container
// given the following resource
resource "container" "ubuntu" {
  ...
}

// the resulting name will be
ubuntu
user "username" {
  ...
}
roles = ["Owner"]
service_principal "name" {
  ...
}
roles = ["Owner"]
User
ServicePrincipal