-
Notifications
You must be signed in to change notification settings - Fork 444
Fix winrm listeners data type
#4388
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
Conversation
Hey @coolhome,
the construct template definitely is. It's essentially just code we parked when initially migrating all modules from ARM to Bicep. In the future setup with AVM, it would be considered a pattern.
I think the reason we did not outright delete it was that it contains logic to generate x amount of VM names for the deploying person.
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.
I do want to mention that this looks like it meant to be a type WinRMConfiguration but in actuality its WinRMListener. Maybe the solution is to remove the listener mapping and allow users to pass the WinRMConfiguration type?
@AlexanderSehr yah I just noticed that as well. I have core.autocrlf=false and I think this is the root cause.
image
This is not really a solution but a way to see the differences without the newline issue.
Let me know if you want to re-create the PR. I am also happy with whatever.
Closing since its now implemented in Azure/bicep-registry-modules#717 for AVM.
Hey @coolhome, may I ask you to re-open the PR? I think for VMSS this is still very much relevant, isn't it? This module isn't migrated yet / started.
TheMarcosP
commented
Jun 2, 2025
h
Hey @rahlan, I take it it's save to say you don't have this on your radar these days.
Could you please check if the contribution is already implemented in the VM/VMSS module and if not ideally consider to add it?
Description
winRM is passed to listeners, which is an array and not an object. I was not able to perform set-module on the virtual machine construct, that template is broken.
Pipeline references
Type of Change
Checklist