Skip to content

Terraform module to create an application in Azure AD.

License

Notifications You must be signed in to change notification settings

avinor/terraform-azuread-application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AzureAD Application

A general module to create an Azure AD application and optionally assign it roles. It will create a service principal associated with the application and create a password for application.

Requirements

  • Requires access to Azure AD to create application.
  • Owner required when assigning roles using assignments variable

Usage

module  "simple" {
    source  = "avinor/application/azuread"
    version = "3.0.2"

    name = "simple"
}

Assigning roles for application:

module "simple" {
    source  = "avinor/application/azuread"
    version = "3.0.2"

    name          = "simple"
    redirect_uris = ["https://simple.example.com/"]
    end_date      = "2022-01-01T01:02:03Z"

    assignments = [
        {
            scope = "/subscriptions/xxxx"
            role_definition_name = "Contributor"
        }
    ]
}

Assignments

Usign the assignments variable it can assign role access to various resources. This will require Owner access to those subscriptions / resources though.