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

duplicate azuread_application resources are created when redeploying #200

Closed
diirib opened this issue Jan 13, 2020 · 3 comments · Fixed by #279
Closed

duplicate azuread_application resources are created when redeploying #200

diirib opened this issue Jan 13, 2020 · 3 comments · Fixed by #279

Comments

@diirib
Copy link

diirib commented Jan 13, 2020

When creating an azuread_application resource, we define the display name. If we try to redeploy the same resource, since the applicationId is created automatically and is different from the one deployed the first time, terraform creates a new application with the same name but a different applicationId.

I would expect to at least have a parameter to specify if I want a new resource to be created or I'm just redeploying.

Is the applicationId the only way to check if there's an existing application?

@katbyte
Copy link
Collaborator

katbyte commented Mar 11, 2020

Hi @diirib,

Unfortunately the API works on GUID IDs. For now you can import the application via the app ID. In the future we could add a flag check_name_availiblity/prevent_duplicate_names which checks if the name is in use during creation and fails if it is.

@ghost
Copy link

ghost commented Jul 9, 2020

This has been released in version 0.11.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example:

provider "azuread" {
    version = "~> 0.11.0"
}
# ... other configuration ...

@ghost
Copy link

ghost commented Jul 23, 2020

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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked and limited conversation to collaborators Jul 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants