» azuread_application_password

Manages a Password associated with an Application within Azure Active Directory. Also can be referred to as Client secrets.

» Example Usage

resource "azuread_application" "example" {
  name = "example"
}

resource "azuread_application_password" "example" {
  application_object_id = azuread_application.example.id
  description           = "My managed password"
  value                 = "VT=uSgbTanZhyz@%nL9Hpd+Tfay_MRV#"
  end_date              = "2099-01-01T01:02:03Z"
}

» Argument Reference

The following arguments are supported:

  • application_object_id - (Required) The Object ID of the Application for which this password should be created. Changing this field forces a new resource to be created.

  • value - (Required) The Password for this Application.

  • description - (Optional) A description for the Password.

  • end_date - (Optional) The End Date which the Password is valid until, formatted as a RFC3339 date string (e.g. 2018-01-01T01:02:03Z). Changing this field forces a new resource to be created.

  • end_date_relative - (Optional) A relative duration for which the Password is valid until, for example 240h (10 days) or 2400h30m. Changing this field forces a new resource to be created.

  • key_id - (Optional) A GUID used to uniquely identify this Password. If not specified a GUID will be created. Changing this field forces a new resource to be created.

  • start_date - (Optional) The Start Date which the Password is valid from, formatted as a RFC3339 date string (e.g. 2018-01-01T01:02:03Z). If this isn't specified, the current date is used. Changing this field forces a new resource to be created.

» Attributes Reference

The following attributes are exported:

  • id - The Key ID for the Password.

» Import

Passwords can be imported using the object id of an Application and the key id of the password, e.g.

terraform import azuread_application_password.test 00000000-0000-0000-0000-000000000000/password/11111111-1111-1111-1111-111111111111