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

identity: working around the use of legacy identity types #15243

Merged
merged 6 commits into from
Feb 3, 2022

Conversation

tombuildsstuff
Copy link
Contributor

The nightly tests detected a a regression in the Storage Account and Stream Analytics resources from #15207, where the Identity types used in these API's don't match the behaviours from other APIs.

In the case of Storage Account that's because the API is using Common Types v3 rather than v4, meaning that SystemAssigned, UserAssigned is SystemAssigned,UserAssigned within this API version. To workaround this version 2.x of the Provider has been updated to support both SystemAssigned,UserAssigned and SystemAssigned, UserAssigned - and in version 3.0 we'll only support SystemAssigned, UserAssigned (transforming internally to make these consistent as a part of #15187).
In addition there's an API issue when submitting an empty list of UserAssignedIdentities to the API, which returns and error rather than ignoring them, which this works around and is tracked in the upstream issue: Azure/azure-rest-api-specs#17650

In the case of Stream Analytics the API doesn't support sending None as a type, which I've opened an issue to track here: Azure/azure-rest-api-specs#17649

A user assigned identity won't have a principal id as this field is only for a System Assigned type
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.

One minor doc observation, otherwise LGTM 👍

website/docs/r/storage_account.html.markdown Outdated Show resolved Hide resolved
@tombuildsstuff
Copy link
Contributor Author

Tests look good 👍

@tombuildsstuff tombuildsstuff merged commit cadbba5 into main Feb 3, 2022
@tombuildsstuff tombuildsstuff deleted the b/identity branch February 3, 2022 16:41
@github-actions
Copy link

github-actions bot commented Feb 4, 2022

This functionality has been released in v2.95.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

github-actions bot commented Mar 7, 2022

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, 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 Mar 7, 2022
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.

2 participants