Open vasdee opened 1 year ago
@vasdee You mean we need to add a module in order to set the parent device of a target iot device, right?
Feels like it would be nicer to have it all in one, but just now looking at the existing az cli for it, it appears to be a separate call. I'd be happy with either, the less I have to fall back to the az cli within ansible, the better
SUMMARY
When creating an iot device in iothub via azure_rm_iotdevice, there is currently no way to specify the parent device (which has been a feature since 1.2 of iotedge/hub)
Currently we need to fall back to the CLI to get this functionality
Having the parent information available in
azure_rm_iotdevice_info
would be very handy as well.ISSUE TYPE
COMPONENT NAME
azure_rm_iotdevice - ability to specify the parent azure_rm_iotdevice_info - ability to retrieve the parent device
ADDITIONAL INFORMATION
It would remove the need to fall back to the az cli to set the parent.
Something like the following would be very handy