Configure PowerShell remoting for Azure VMs

Hey scripters, in todays article I want to show you how to configure PowerShell remoting for Azure VMs. Recently I wanted to run the script which will check installed software on all of my Azure VMs. Unfortunately I received following error from each of the machine. I thought that it is only the problem with firewall configuration on Azure VM, so I configure additional rulles to allow connection on port …

How to convert Azure VM to use managed disks

Did you ever hear about Azure managed disks? Do you know how to convert Azure VM to use managed disks? If for both question your answer is no, let me help you to explain what managed disks are and for which purpose they are use. Managed disks are new type of storage which is recommended to be used by Azure Virtual Machines. Managed Disks offer two types of storage options: …

Function to remove old VMWare snapshots

Reffering to my last article about snapshots creation, I want to show you how to remove old VMWare snapshots. Below function will remove snapshots which are older than provided number of days. To work, function requires PowerCLI module to be installed on machine from which you want execute it. NOTE: Be aware that script will remove snapshots from all VMs to which your account has access!! In result you should …

Create Azure VM using Powershell

Create Azure VM using Powershell is simpler than you think. In this article I want to show you how to do it in less than 20 lines of code. Let’s do it 🙂 First of all you must login to Azure Account and select subscription in which you want to create new VM. In next define 3 variables which will be used for storage account name, resource group name and …

Powershell function to create VMWare snapshots

For those who wants automate VMWare snapshots creation, I’ve prepared short Powershell function. Script requires to have PowerCLI (available here https://my.vmware.com/web/vmware/details?downloadGroup=PCLI550&productId=352) installed on machine where it will be run. It’s not too long, but it works. Function can be used in situations when we need to create snapshots for big number of VMs. I hope you will find this script useful and see you in the next article 🙂