Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

applicationTemplateId field is missing in azuread_application #458

Closed
padma33 opened this issue Jun 9, 2021 · 3 comments · Fixed by #554
Closed

applicationTemplateId field is missing in azuread_application #458

padma33 opened this issue Jun 9, 2021 · 3 comments · Fixed by #554

Comments

@padma33
Copy link

padma33 commented Jun 9, 2021

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritise this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritise the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform (and AzureAD Provider) Version

Affected Resource(s)

  • azuread_XXXXX

Terraform Configuration Files

resource "azuread_application" "azuread-application-list" {
  name                       = random_string.globalrandom1.result
  homepage                   = "valid_url"
  available_to_other_tenants = false
  application_template_id = "ID_AWS"
  

}

Debug Output

Unable to provide application_template_id while trying to create enterprise application in azure portal with AWS app type
Below is the error that i received on terraform apply
Error: Unsupported argument

│ on azure-role-definition.tf line 27, in resource "azuread_service_principal" "azuread-service-principal":
│ 27: applicationTemplateId = "xxxx-xxxx-xxxx-xxxx"

│ An argument named "applicationTemplateId" is not expected here.

Panic Output

Expected Behavior

It should be supporting applicationTemplateId field which is a mandatory param while creating azure Active directory Service Principal in Azure portal via terraform

Actual Behavior

applicationTemplateId field is not identified by terraform

Steps to Reproduce

Create Enterprise application with AWS template in Active directory via terraform
Below is my terraform file
resource "azuread_application" "azuread-application-list" {
name = random_string.globalrandom1.result
homepage = "valid_url"
available_to_other_tenants = false
application_template_id = "ID_AWS"

}

resource "azuread_service_principal" "azuread-service-principal" {
application_id = azuread_application.azuread-application-list.application_id
}

  1. terraform apply

Important Factoids

References

  • #0000
@manicminer
Copy link
Member

Hi @padma33, thanks for requesting this feature! Although I have not yet looked into this in depth, this appears to be a combination of the attribute you requested on the azuread_application resource, application_template_id and another operation/resource for instantiating gallery applications.

We will be able to look at adding this functionality once we have completed our current transition to Microsoft Graph and the provider has reached the next major version (v2). This work is underway right now and you can track progress in #323.

API refs:

@github-actions
Copy link

This functionality has been released in v2.2.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@github-actions
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants