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”

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”

“The provided value for the template parameter is not valid” in ARM template deployments

I’ve come across this one before, but I hit it again today and I wanted to share the details of what happened. Basically the scenario is this, I have an ARM template that I want to deploy and it takes in parameters. The deployment needs to run through PowerShell using the Azure RM PowerShell cmdlets. When I call New-AzureRmResourceGroupDeployment I get the error that says “The provided value for the template parameter is {parameter name} not valid”, and this is where things start getting weird. Continue reading ““The provided value for the template parameter is not valid” in ARM template deployments”