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.
- Requires access to Azure AD to create application.
- Owner required when assigning roles using assignments variable
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"
}
]
}
Usign the assignments
variable it can assign role access to various resources. This will require Owner access to those subscriptions / resources though.