Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add environment to Pipeline stuck in "connecting to server"

I'm trying to add a resource to the environment tab in the Pipeline of azure Devops, but the Powershell is stuck in "connecting to the server". Am i missing something?

The powershell is generated by AzureDevOps when i click in "Add Resource" and the resource is a windows virtual machine.

enter image description here

like image 247
Bino Avatar asked Mar 06 '20 10:03

Bino


People also ask

How do you add environment to Azure pipeline?

Create an environmentSign in to your organization: https://dev.azure.com/{yourorganization} and select your project. Select Pipelines > Environments > Create environment. Enter information for the environment, and then select Create. Resources can be added to an existing environment later.

Is it possible to connect Azure pipelines to on premise servers?

Within Azure Pipelines, what we wanted to do was create a deployment group, and then register the server we want to deploy to as a target within that deployment group. This will allow us to deploy directly to an on premise server.

How do you add a demand to a build pipeline?

To add a single demand to your YAML build pipeline, add the demands: line to the pool section. Or if you need to add multiple demands, add one per line. Checking for the existence of a capability (exists) and checking for a specific string in a capability (equals) are the only two supported operations for demands.


1 Answers

This kind of issue may occur when using PowerShell ISE...

Please ran the same in a regular PS elevated prompt and check if it works.

Also make sure you have run the copied script from an administrator PowerShell command prompt on each of the target VMs that you want to register with this environment.

More detail steps, kindly follow our official tutorial here-- Virtual machine resource creation

like image 172
PatrickLu-MSFT Avatar answered Sep 22 '22 03:09

PatrickLu-MSFT