Deploying to AWS Elastic Beanstalk from Visual Studio Team Services

When I set this site up in Elastic Beanstalk in AWS, I was initially using CodeCommit and CodePipeline to manage releases. CodePipeline was super easy to pick up and use as a way to get started. I did want an excuse to get around some of the PowerShell cmdlets for managing AWS though. I came up with the idea of using Visual Studio Team Services for my build and releases. It was an excellent way for me to test out some PowerShell! Continue reading “Deploying to AWS Elastic Beanstalk from Visual Studio Team Services”

Running WordPress on HTTPS in AWS Elastic Beanstalk

After my recent move to AWS, I decided to put my blog into Elastic Beanstalk as a way for me to learn more about the offering. Overall the process was pretty straightforward, and I’m enjoying having the control that comes with a self-hosted WordPress blog too. I did want to make one change though, which was to move the site to run on HTTPS instead of standard HTTP. My logic on this comes from the fact that Google uses HTTPS as a ranking signal, and who doesn’t want their site rated higher in searches? I’ll take you through the steps it took for me to set it all up in this post. Continue reading “Running WordPress on HTTPS in AWS Elastic Beanstalk”

Yo arm-template! Generating ARM templates with Yeoman

A common piece of feedback I get from people who author ARM templates is that the design experience isn’t as great as it could be. There is some tooling in the full version of Visual Studio which helps get you started. But a lot of people don’t install Visual Studio as it seems overkill. After all, it’s just managing the text files that make up your typical ARM file based project. That got me thinking that surely there should be an easier way, and then the idea hit me! I set off to make a set of Yeoman generators for ARM resources. I think what I’ve come up with here will be super useful to a lot of people. Continue reading “Yo arm-template! Generating ARM templates with Yeoman”

Moving Azure VM’s with managed disks to new subscription

One of the things that I’ve come up against recently is a limitation with managed disks. Today it was specifically when it comes to moving virtual machines that use them into a new subscription. In short, it’s not doable – the currently documented limitations of managed disks state that this isn’t possible. However there is a workaround – but it does take a little bit of legwork to do. I’ll run you through the process I followed here though.
Continue reading “Moving Azure VM’s with managed disks to new subscription”

Using the launch.json file in VS code for improved PowerShell debugging

Anyone that has talked to me recently about how I write PowerShell scripts will know that Visual Studio Code is my new one and only! You can write PowerShell scripts in there and hit F5 to have a similar debugging experience to what you would get in PowerShell ISE – but did you know that you can extend that to make it easier to debug and test different scenarios from within VS Code? If the answer to that is no, then read on! Continue reading “Using the launch.json file in VS code for improved PowerShell debugging”