-
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
API of iothub/mgmt upgraded to 2021-03-31 #13324
Conversation
Thanks for this PR @ramondeklein, but it looks like there are some test failures, specifically the ones for the iothub consumer group resource Passing tests
Failing tests
|
@stephybun This will have probably to do with the change in the name property. I'll take a look later this week and will push a fix when all test-cases work fine again. Thanks for pointing out... |
@katbyte I have updated this pull-request, so it now also sends the name. But there seems to be an issue in the 2021-03-03-preview API that prevents this call from succeeding. I have filed an issue with the Microsoft Azure SDK for Go team (Azure/azure-sdk-for-go#15545) with details what's wrong. This needs to be fixed, before we can upgrade to this new API. I'll will monitor the SDK issue and comment when it has been fixed an this PR can continue. |
SDK will be fixed in the next release and we will need to upgrade to 2021-03-31 by then (source). |
@katbyte The API has now been upgraded to the non-preview 2021-03-31 version to fix the SDK issue (Azure/azure-sdk-for-go#15545). Everything compiles and all unit tests are passing. |
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.
Thanks @ramondeklein - LGTM 🏗️
This functionality has been released in v2.78.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. |
This PR upgrades the IOT-hub management API to 2021-03-03-preview to allow the creation of
DeviceConnectionStateEvents
routes (#12477 and #12985). No new features have been added that might have be added in this API, but the creation ofDeviceConnectionStateEvents
routes now works fine.Some remarks about this PR:
github.com/Azure/azure-sdk-for-go/services/iothub/mgmt/2020-03-01/devices
has been upgraded github.com/Azure/azure-sdk-for-go/services/preview/iothub/mgmt/2021-03-03-preview/devices
(therefore a lot of changes in thevendor
folder).IotHubResourceClient.CreateEventHubConsumerGroup()
now requires adevices.EventHubConsumerGroupBodyDescription
structure containing aName
property. However, this isn't documented at all (link) and it property is optional, so we won't use it.internal/services/iothub/iothub_route_resource.go
contained the hard-coded string"DeviceConnectionStateEvents"
, which can now be replaced with the proper enumerationdevices.RoutingSourceDeviceConnectionStateEvents
.