Questions tagged [powershell]

PowerShell is a command line and scripting utility for use with Windows.

Filter by
Sorted by
Tagged with
0
votes
2answers
73 views

Azure Devops Pipeline variables in Powershell

I've tried to figure this out and I can't see why my ipaddress is not getting set. I've checked code samples and they all suggest I am doing everything correct. ip variable defined here: This is my ...
0
votes
1answer
50 views

REST API: create project with powershell returns unspecified internal error

I'm creating a a project with the code below. The response is always an unspecified error. Invoke-RestMethod : {"$id":"1","innerException":null,"message":"...
1
vote
1answer
198 views

Azure Pipeline PowerShell@2 Task can't run 'invoke-build' command as inline script (build PowerShell Module)

I'm trying to build a PowerShell module in an Azure pipeline (dev.azure.com). I've setup an initial pipeline and then building it up incrementally in small steps, because inexplicable errors are ...
1
vote
1answer
142 views

Stop Multiple Windows Service Simultaneously

I have multiple windows service and there are no dependencies between them. I want to stop all the windows services at the same time. I don't want to stop all the services one by one. How can I ...
1
vote
4answers
190 views

Why will my container run in Docker, but will not run in Kubernetes?

Background I have a container that I have defined with an CMD and an ENTRYPOINT in Docker. When I run the following command my container runs with no issues whatsoever. docker run --rm -ti custom-...
2
votes
1answer
1k views

Azure Powershell DSC or Ansible

I wanted to find out what are you using for Desired State Configuration on your end. I am thinking to start introducing Azure Powershell DSC or Ansible for DSC of our on-prem environment and cloud ...
3
votes
1answer
153 views

I'm trying to run `vagrant provision` on PowerShell Window for Ansible playbook

Here is what it replies: Windows is not officially supported for the Ansible Control Machine. Please check https://docs.ansible.com/intro_installation.html#control-machine-requirements What should I ...
1
vote
1answer
231 views

How to pass variables between build/deploy tasks in a TaskGroup in VSTS 16.131.28601.4

I have a multi-configuration web application I'm using parallel deployments, leveraging Task Groups for reusing my deployment code. I've been using Powershell tasks and the ##vso[task.setvariable ...
0
votes
1answer
95 views

Problem with Vagrant : Nothing happens on vagrant up command

Versions Vagrant: 1.9.5 Provider: Virtualbox 5.2.30 Guest: precise32 Host: windows 7 -32bit, build:7600 Powershell: 2.0 Vagrant destroy & up output nothing happens here...just an empty directory ...
1
vote
0answers
968 views

Running a powershell script via Jenkins on a Linux host [closed]

I have a powershell script cloned into my workspace from a bitbucket repository. If I login to the Jenkins server cli I can run it by doing cd /var/lib/jenkins/workspace/powershell pwsh ./psscript....
2
votes
1answer
2k views

Powershell script in jenkins is hanging

I'm building a process to automate deploys using Jenkins and I have an issue getting the code on the server I have a powershell script on the deploy server that all it does is do an hg update command....
8
votes
2answers
525 views

Application to run PowerShell scripts

I've created a number of scripts in PowerShell that require a number of parameters to be manually entered. Unfortunately, until we have our Jenkins server setup to support these additional tasks I ...
3
votes
1answer
366 views

Why is my build script only failing when it is run in a vNext build?

I am running a build process on an on-prem server with TFS 2017 and vNext. The build works, but it takes 20+ minutes. This is an application that does msbuild, ngc, yarn, and karma. I would be totally ...
1
vote
0answers
41 views

VSO Release launch published exe [closed]

I have hosted VSO build agents building our exe and that pipeline setup. I am trying to deploy the produced exe to a dev testing environment. I have a deployment group set up and the files are being ...
5
votes
2answers
3k views

How to automate Powershell's interactive Get-Credential method?

I am trying to write a python script which automates the powershell's Get-Credential method. Here is something i wrote: import subprocess COMMAND_LINE = 'powershell' powershell = subprocess.Popen(...
3
votes
1answer
8k views

Configure Docker to use SSL for a private registry on Windows 10?

Trying to use a customer registry from a Windows 10 system - a native Docker client in PowerShell. PS > docker --version Docker version 17.06.0-ce, build 02c1287 PS > docker pull REPO_URL/...
8
votes
2answers
1k views

Ansible sporadic errors with Windows machines

I'm running into some on and off issues when using windows hosts in my Ansible playbooks. I'm running Ansible 2.3 with pywinrm 0.2.2 installed. I'm using basic authentication with the local ...