Add Azure Antimalware Extension to a VM Scale Set

If you’re running a Windows Server 2016 base image, ignore this post because we’ve built Windows Defender in. However, if you’re running Server 2012R2, for example, and wish to apply the Microsoft Antimalware Extension to an existing VM Scale Set, here is a PowerShell script to do it: # Add the Microsoft Antimalware Extension to…


How to Use PowerShell DSC to Prepare a Data Drive on an Azure VM

Introduction I was asked how to automate formatting a data drive on an Azure VM. The drive had been provisioned already when the infrastructure was created via ARM script, however the disk was raw. I developed this solution with Azure PowerShell Desired State Configuration (DSC), Azure PowerShell 1.0 (newest release as of April 2016), and…


How to Convert a VMWare VMDK to Hyper-V VHD

A customer, who is a VMWare shop, gave me a VMDK file of one of their VMs for development purposes. I don’t have VMWare, but I do have Hyper-V on my dev boxes, so I needed to convert the VMDK virtual disk to a format I could connect to a Hyper-V VM. Microsoft offers a…

25

C# Code to Zip Files and Upload to Azure Storage

If you need code to zip some files into an archive and upload it to Azure blob storage, here is a sample for you. Once the data is in Azure Storage, you could use the WebJobs SDK to trigger your Azure application to work on it (for example, ETL into Azure SQL Database). Create a…

2

Script to Perform Azure SQL Premium Failover

** I believe this post is now out of date due to some recent work by the product team, though I have not had the time to try their work yet. Please see this article, it looks to me like there is now a single cmdlet to failover now. My post below was a year before…

2

Error: Proxy Authentication Required When Installing Azure PowerShell Cmdlets

Problem Background Recently I ran into an installation error with a customer attempting to install the Windows Azure PowerShell Cmdlets. These cmdlets are a CodePlex project that add a tremendous amount of functionality to PowerShell for managing Windows Azure. For more information, see the project homepage: http://wappowershell.codeplex.com/. Note: This is a CodePlex project, not a…