YannickRe / azuredevops-buildagents

Generate self-hosted build agents for Azure DevOps, just like Microsoft does.
MIT License
153 stars 90 forks source link

Waiting for WinRM to become available - Build VM task #78

Open terratest24 opened 9 months ago

terratest24 commented 9 months ago

Hi Yannick,

Thank you for sharing this repo, great stuff !

When using the variables : _BUILD_AGENT_SUBNET_NAME BUILD_AGENT_VNET_NAME BUILD_AGENT_VNET_RESOURCEGROUP

I am seeing "Waiting for WinRM to become available" during the Build VM task.

image

Have you seen this before or know any options here ?

I am wondering if this is because we are not calling the following variable defined in the Runner Images packer file or should the packer image build fine with a private only IP/Isolated VNET ? https://github.com/actions/runner-images/blob/main/images/windows/templates/windows-2022.pkr.hcl

_variable "private_virtual_network_with_publicip" { type = bool default = false }

Many Thanks!

YannickRe commented 9 months ago

@terratest24 The VM should be publicly reachable, is that the case with your own VNET? You can find more info on https://github.com/YannickRe/azuredevops-buildagents/issues/64 and https://github.com/actions/runner-images/issues/7784