Enable WinRM for new VM's

I am using “azurerm_windows_virtual_machine” instead of “azurerm_virtual_machine”. I have seen some examples here for how to enable WinRM on new VM’s.

Can we have some examples on how to do the same with “azurerm_windows_virtual_machine”? Some of the code and blocks mentioned are not compatible with “azurerm_windows_virtual_machine”.

Thanks