question

Nibbler avatar image
0 Votes"
Nibbler asked Nibbler commented

Queue PowerShell scripts

Hi all

Is it possible to queue PowerShell scripts in a deployment step in DevOps… so, if you have multiple deployments executing the script, if done at the same time it will fail – but done independent/ one after the other… it will succeed.

windows-server-powershell
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

AlexC-8264 avatar image
0 Votes"
AlexC-8264 answered Nibbler commented

Hi,
well, I'm truly not an expert in DevOps or scripted deployments, but I guess your solution would consist of workflows and/or DSC (desired state configuration).
Please check here, if it is appropriate for you:
https://docs.microsoft.com/en-us/system-center/sma/overview-powershell-workflows?view=sc-sma-2019

I hope this helps somehow.
KR, Alex

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @AlexC-8264

Thanks for your input.

Well, what i`m looking for is if I have multiple deploys running in the same pipeline and are executing the same script, and if done at at the same time, it will fail.

So, the solution would be to have the deploys to be queue until X deploy is done running the script, and the operation that it would be doing... in my case, deleting a service in Azure.

I hope it makes sense :-)

0 Votes 0 ·