-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Conversation
… no identity This API differs from others where the API doesn't accept "Type: None" Works around Azure/azure-rest-api-specs#17649
… when the field has a value Works around the upstream issue Azure/azure-rest-api-specs#17650
A user assigned identity won't have a principal id as this field is only for a System Assigned type
There was a problem hiding this 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 👍
Co-authored-by: jackofallops <[email protected]>
Tests look good 👍 |
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! |
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. |
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
isSystemAssigned,UserAssigned
within this API version. To workaround this version 2.x of the Provider has been updated to support bothSystemAssigned,UserAssigned
andSystemAssigned, UserAssigned
- and in version 3.0 we'll only supportSystemAssigned, 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