I just converted some of our internal tooling to use Packer. All the Linux builds work well. I’m working on converting our Windows images now. I got past the WinRM hurdle, but this one stumps me. I run an initial “bootstrap” powershell script, that sets up things like git and az cli, which works great. In the second script that I run, I try running the following command:
&az login --service-principal --username “$Env:AZ_CLIENT_ID” --password “$Env:AZ_CLIENT_SECRET” --tenant “$Env:AZ_TENANT_ID”
I’m sure the variables are correct. However, when the provisioner runs that command, I get “ERROR: Encryption failed: [WinError 5] Consider disable encryption”. Does anyone have any idea what I’m doing wrong here?