custom script extension

Add Custom Script Extension on multiple Azure VMs

Hi Scripters! Today want to share with you my script to add custom script extension on multiple Azure VMs. Recently I was working on a project where one of the requirement was installation of FTP service on 20+ virtual machines already created in Azure. I’ve created a script for FTP service installation on single server, but how to apply it automatically to multiple of them. Decided to add custom script …

Enable backup for all Azure VMs in your subscription

Hey Folks! Today I’ve got for you script which will enable backup for all Azure VMs in your subscription. All admins which setup IaaS environment in cloud, doesn’t matter if this is Azure or Amazon must remember that data from virtual machines should be configured to restore them in any time. In Azure there is a separate service to manage all backups of virtual machines called Recovery Service Vault. You …

Get Azure virtual machines without NSG and ASG assigned

Hi Scripters! Today I’ve got for you awesome script which will generate report with information about Azure virtual machines without NSG and ASG assigned. For non-Azure related people – Network Security Groups and Application Secuirty Groups are Azure network security concepts, which allows to filter/block virtual machines network traffic and easily group them according to ports which should be used by specific type of application. Both NSG and ASG are …

Get Azure logs using PowerShell script

Today I wanted to show you one of the method for getting Azure logs. In this case I was looking for information about start and stop action. Azure logs To connect to Azure resources and be able to check logs you need few things: Azure Credentials Environment TenantID Subscription Resource Group Name Below you can find example for converting your password to secure string and adding it with account ID …

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 🙂