I’m currently learning packer and terraform, something i noticed was that Azure and AWS appear to utilize two different winrm accounts. AWS utilizes Administrator and Azure utilizes an account called packer. Is that by design? This seems to cause an issue when i try to use elevated credentials for a provisioner in a multiple builder script. You can only specify one account for the elevation. And from what i have been researching there doesnt appear to be a way to create a conditional provisioner based on the way json works.
So how do people get around this? Is there a better way to handle it? A big benefit of packer from what i can see is incorporating multiple builders in the same script. But how do you do this with windows templates?