[AVM Module Issue]: Enhance documentation and input validation of Intune-enrollment property #4126
Open
1 task done
Labels
Class: Resource Module 📦
This is a resource module
Type: AVM 🅰️ ✌️ Ⓜ️
This is an AVM related issue
Type: Bug 🐛
Something isn't working
Check for previous/existing GitHub issues
Issue Type?
Bug
Module Name
avm/res/compute/virtual-machine
(Optional) Module Version
0.11.0
Description
I was assisting in a scenario where there was issues getting AVD session hosts enrolled into Intune when deploying them using Bicep.
After testing the Bicep-template being used (which leverages the res/compute/virtual-machine module), I found that the mdmId-property was not specified at the correct location - which is this:
It was defined like this:
The invalid syntax did not produce any errors, but the Intune-enrollment simply didn`t work.
Looking at the documentation for the module, the syntax which was being leveraged seemed correct:
extensionAadJoinConfig
However, looking at the code for the module, I noticed that the setting needs to be defined inside of a settings-block.
Any thoughts on how we could enhance the user experience?
In addition to updating the documentation, would leveraging user defined types for input validation be an option?
(Optional) Correlation Id
No response
The text was updated successfully, but these errors were encountered: