I have an issue with building an image in Azure with custom winrm_username and winrm_password.
Below you can find my code:
{ "variables": {
"ssh_user": "Administrator",
"ssh_pass": "!_Qwerty11Qwerty",
"winrm_user": "Administrator",
"winrm_password": "!_Qwerty11Qwerty",
"location": "East US",
"ssh_password":""
}, "builders": [ {
"name": "windows-2019",
"type": "azure-arm",
"client_id": "{{user `client_id`}}",
"client_secret": "{{user `client_secret`}}",
"subscription_id": "{{user `subscription_id`}}",
"os_type": "Windows",
"image_publisher": "MicrosoftWindowsServer",
"image_offer": "WindowsServer",
"image_sku": "2019-Datacenter",
"communicator": "winrm",
"winrm_use_ssl": "true",
"winrm_insecure": "true",
"winrm_timeout": "3m",
"winrm_username": "{{user `winrm_user`}}",
"winrm_password": "{{user `winrm_password`}}",
"location": "{{user `location`}}",
"vm_size": "Standard_D2_v2", }],
"provisioners": []
}
Instead of specified by me winrm_username and password, in debug mode I can see next: windows-2019 output will be in this color.
==> windows-2019: Running builder ...
==> windows-2019: Getting tokens using client secret
windows-2019: Creating Azure Resource Manager (ARM) client ...
==> windows-2019: WARNING: Zone resiliency may not be supported in East US, checkout the docs at https://docs.microsoft.com/en-us/azure/availability-zones/
windows-2019: temp admin user: 'packer'
windows-2019: temp admin password: 'aMyOIb8UCCCRIClm5IUdIJD5h7XpKQfT'
Packer version: 1.4.4
Could you please let me know, how can I use custom winrm_username and winrm_password in Azure during image building?
Regards, Ihor
I have an issue with building an image in Azure with custom winrm_username and winrm_password.
Below you can find my code:
Instead of specified by me winrm_username and password, in debug mode I can see next: windows-2019 output will be in this color.
Packer version: 1.4.4
Could you please let me know, how can I use custom winrm_username and winrm_password in Azure during image building?
Regards, Ihor