Remove Passwords or Other Text from VSTS Git

Saturday, 18. November 2017

In a perfect world no one would ever store usernames and passwords in code.  We are on in a perfect world and I myself make mistakes and in the past I have created scripts that required passwords in them and I accidentally pushed the code to VSTS with the password entered.  So I had to figure out how to remove that from the history of the file.  I could have deleted the project and created a new one but I would have lost all my history of commits which I did not want to do.  Here is how I found to remove text from commit history.

Read more »

Enable Secure PowerShell Remoting

Monday, 6. November 2017

Working with a lot of VMs in Azure it has be come more essential to be able to run my scripts on many VMs at a time.  The first step in doing this is to enable remote PowerShell and keep it secure.  Below is the script that I use to enable remote PowerShell and generate a cert to use for encrypting the communication.

Read more »

Visual Studio Code with Visual Studio Team Services (VSTS)

Sunday, 5. November 2017

I have been doing a ton of PowerShell scripts lately and I was wanting to find a way to tie into a version control system.  Originally I wanted to do something like GitHub but since I want to do a free option GitHub was out as everything is public on their free option.  So I looked at Visual Studio Team Services (VSTS).  They offer 5 users for free and the repositories can be setup as either git or TFS.  So VSTS was it.

My next challenge was PowerShell ISE.  I was wanting to interrelate VSTS into ISE but I did not find a solution that I liked but I did stuble across Visual Studio Code.  VS Code is pretty neat.  It has a ton of addons and can support many languages including PowerShell.  Also there is an addon for VSTS which is nice.

Read more »