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

azuread_application: revert #355 but retain tests, must retain default application owner at create time #366

Merged
merged 1 commit into from
Nov 26, 2020

Conversation

manicminer
Copy link
Contributor

@manicminer manicminer commented Nov 26, 2020

Reverts #355

Whilst we want to enable application owners to be empty at create time, this cannot be done whilst also having the ability to retain the default owner assigned by Azure AD.

With this fix, the following applies:

  • Default application owner is retained at create time
  • Default owner can be overridden with one or more specified owners
  • Owners cannot be forced empty at create time
  • Owners can be forced empty on subsequent applies, with the caveat that Terraform must detect a config change

Fixes #365

@manicminer manicminer requested a review from a team November 26, 2020 10:22
@ghost ghost added the size/XS label Nov 26, 2020
@manicminer manicminer added this to the v1.1.1 milestone Nov 26, 2020
Copy link
Member

@jackofallops jackofallops left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @manicminer - LGTM 👍

@manicminer
Copy link
Contributor Author

Test results:

Screenshot 2020-11-26 at 11 19 38

@manicminer
Copy link
Contributor Author

Linters passing locally

@manicminer manicminer merged commit 9ce327a into master Nov 26, 2020
@manicminer manicminer deleted the bug/application-default-owner branch November 26, 2020 11:31
manicminer added a commit that referenced this pull request Nov 26, 2020
@ghost
Copy link

ghost commented Nov 26, 2020

This has been released in version 1.1.1 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 = "~> 1.1.1"
}
# ... other configuration ...

@ghost
Copy link

ghost commented Dec 26, 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 as resolved and limited conversation to collaborators Dec 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The default owner of azuread_service_principal is not the owner who runs terraform apply in v1.1.0
2 participants