Skip to content

Latest commit

 

History

History
151 lines (121 loc) · 2.98 KB

azuread_service_principal_password.md

File metadata and controls

151 lines (121 loc) · 2.98 KB

azuread_service_principal_password

back

Index

Terraform

terraform {
  required_providers {
    azuread = ">= 1.4.0"
  }
}

top

Example Usage

module "azuread_service_principal_password" {
  source = "./modules/azuread/r/azuread_service_principal_password"

  # description - (optional) is a type of string
  description = null
  # end_date - (optional) is a type of string
  end_date = null
  # end_date_relative - (optional) is a type of string
  end_date_relative = null
  # key_id - (optional) is a type of string
  key_id = null
  # service_principal_id - (required) is a type of string
  service_principal_id = null
  # start_date - (optional) is a type of string
  start_date = null
  # value - (required) is a type of string
  value = null
}

top

Variables

variable "description" {
  description = "(optional)"
  type        = string
  default     = null
}

variable "end_date" {
  description = "(optional)"
  type        = string
  default     = null
}

variable "end_date_relative" {
  description = "(optional)"
  type        = string
  default     = null
}

variable "key_id" {
  description = "(optional)"
  type        = string
  default     = null
}

variable "service_principal_id" {
  description = "(required)"
  type        = string
}

variable "start_date" {
  description = "(optional)"
  type        = string
  default     = null
}

variable "value" {
  description = "(required)"
  type        = string
}

top

Resource

resource "azuread_service_principal_password" "this" {
  # description - (optional) is a type of string
  description = var.description
  # end_date - (optional) is a type of string
  end_date = var.end_date
  # end_date_relative - (optional) is a type of string
  end_date_relative = var.end_date_relative
  # key_id - (optional) is a type of string
  key_id = var.key_id
  # service_principal_id - (required) is a type of string
  service_principal_id = var.service_principal_id
  # start_date - (optional) is a type of string
  start_date = var.start_date
  # value - (required) is a type of string
  value = var.value
}

top

Outputs

output "description" {
  description = "returns a string"
  value       = azuread_service_principal_password.this.description
}

output "end_date" {
  description = "returns a string"
  value       = azuread_service_principal_password.this.end_date
}

output "id" {
  description = "returns a string"
  value       = azuread_service_principal_password.this.id
}

output "key_id" {
  description = "returns a string"
  value       = azuread_service_principal_password.this.key_id
}

output "start_date" {
  description = "returns a string"
  value       = azuread_service_principal_password.this.start_date
}

output "this" {
  value = azuread_service_principal_password.this
}

top