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”

“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”

Running Azure Automation runbooks from IFTTT tasks

I recently had an idea (ok lets call it ‘collaboratively came up with while talking to one of the grads in our office) to look at ways that I could trigger runbooks in my Azure Automation account from my phone. The specific issue we were looking to solve in this case was “how can I easily shut down all the VMs in my subscription from my phone if I forget to turn them off”. Now I already have a runbook that was scheduled to shut down the VMs every night at 11pm as a ‘just in case’ but surely there was a better way if I remembered before than to rely on that automation schedule. After a little bit of thought, the idea of create a “do button” from IFTTT (stands for “if this then that”, great little automation site that I recommend you check out if you haven’t used it already) seemed to be the perfect solution for me. So here’s a run through of the solution from start to end. Continue reading “Running Azure Automation runbooks from IFTTT tasks”

Configuring SQL Server AlwaysOn Availability Groups in Azure RM Virtual Machines

This week on a project I came up against the need to set up some AlwaysOn Availability Groups (AG’s) for SQL Server 2014 in an Azure IaaS environment, using v2 (or Resource Manager/ARM) based VMs as opposed to the v1 (or Service Manager/ASM) based ones. I came across varying bits of documentation to do with this, but it either didn’t have the ARM PowerShell cmdlets or it was a mix and match of scripts and UI actions which didn’t help me scripting the deployment, so after working through this, there are a few things that I learned. Continue reading “Configuring SQL Server AlwaysOn Availability Groups in Azure RM Virtual Machines”

Cross server DSC dependency options with Azure Resource Manager templates

One of the topics I have been discussing a little lately around the use of the DSC extension for Azure virtual machines is how to create dependencies for DSC configurations that work between servers.If you’re not familiar with how to use the DSC extension in Azure ARM templates have a read of my previous blog post on the topic. Continue reading “Cross server DSC dependency options with Azure Resource Manager templates”