Category: Technical Knowledge Base

Just another User's blog Site

Assign Tags for virtual machines provided in an input file

Automation | VM Tags Creation Overview Tagcreation.ps1 is a PowerShell script to create tags for all VMs provided in the input csv, Azure tag is an important feature that helps you to identify the deviation and make them standard. Also you can make use of tags in the Azure automation runbook to customise many automation…
Read more

Attach Data disks for all VMs provided in the input file

Automation | VM Disk Attachment Overview Disk_attach.ps1 is a PowerShell script to attach data disks for all VMs provided in the input csv. The following guide assumes that the user has basic knowledge of using Windows and PowerShell. Although some familiarity with the Azure Portal would be beneficial, it is absolutely not necessary, as a…
Read more

PowerShell script to expand an Azure VM OS disk size

This script helps to expand an Azure VM OS disk size.   We normally can do this from the Azure Portal after we shut down the VM.  However, some of the VMs running custom VHD based out of Windows Server 2003,  we are not able to find the option to specify os disk size even…
Read more

Create a VM from existing VHD file

A tricky task with creating an Azure ARM Virtual machine specially from an existing VHD.   We had immense trouble getting this right for a project, until we managed to find the right script to be used for the purpose. There are 2 scenarios in which you will create a Virtual Machine from a VHD…
Read more

PowerShell to create and assign Tags to Azure ARM Virtual Machines

A script we have developed for creation of the tags for azure VM.   We use an input file to update the tags and as a test, I had done it with upto 7 tags, however, you can have a maximum of 15 tags assigned to the resources in Azure. This script however, is used to…
Read more

Powershell script to deploy virtual machine with multiple vNIC in Azure ARM

We had a requirement from one of the teams to deploy a virtual machine with multiple NIC associated with a single Virtual Machine.  The Azure portal does not provide any option to either associate a NIC ( Network Interface Card) to a Virtual Machine nor does it allow us to associate or create a Virtual…
Read more

Network Security Groups (NSGs) and Rules Implementation Guide

We were asked to come up with a guide on how to create NSG rule as part of the implementation for a client.   This will include a script used to set these instead of creating them via the Azure Portal. One of the many documents we had to come up but was useful. [embeddoc…
Read more

Script to Delete Azure ARM Virtual Machine

We had a request to create a script which will take care of deleting a Virtual Machine from Azure subscription and perform the clean up of all the associated objects as a deleting the virtual machine from the azure portal will remove the VM object alone and does not delete the disks, vNICs, etc. We…
Read more

Migrating a SQL Server database to Azure SQL PaaS

ver Migrating a SQL Server database to Azure SQL PaaS Microsoft SQL Server and Azure SQL PaaS service are compatible with each other, meaning that a database can be moved from a SQL server running on a physical or virtual machine to Azure SQL service and vice versa. Prerequisites and Constraints However, there are some…
Read more

Azure Internal Load Balancer Implementation Guide

We had to create this guide after having multitude efforts to get a simple iLB (Internal Load Balancer) in Azure ARM for setting up the ADFS (Active Directory Federation Services) servers to connect and work via a load-balanced IP in Azure ARM.   The tricky part was to get this working as it should, because…
Read more