In this post, we’ll explore how we can leverage desired state configuration feature of PowerShell to define the desired configuration of Azure virtual machine. Up to this point, we’d explored how to define the OS/Size/Storage/Network and other related configuration using Get-AzureVM and associated cmdlets. What if one can go a bit further, and also define server configuration at the same time.
Do note that we’ll need to have PowerShell version 4.0 or greater on the client machine to use related commandsRead More »
The virtual machine location is the Azure region the virtual machine will be created in. The location of the virtual machine also determines the location requirement of the underlying storage, and if specified the virtual network. The virtual network and storage account must reside in the same location as the virtual machine.
The service management API enforces this requirement as well. Attempting to create a virtual machine with the storage account or the virtual network in a remote region will result in an error.Read More »
Windows Server 2016 is available for evaluation beginning today and will be on the October price list. Volume licensing customers will be able to download fully licensed software at General Availability in mid-October.
If you are looking to create Azure virtual machine using PowerShell, you have same two options as in classic Azure management portal. To start with, you need to first authenticate to Azure using PowerShell:
In the output, you can see current storage account associated with your subscription. If the CurrentStorageAccountName is empty, you’ll need to associate an storage account with your subscription. To do this, use Set-AzureSubscription cmdlet Read More »
When you are going to create an Azure VM, you have two options:
Create Quick VM. This allows you to create VMs very quickly with only basic details such as DNS name, administrator account username and password, vm location, etc. However you cannot create VM based on image and specify other details etc.
Create VM from gallery. You can use this to specify VM configuration in detail, including storage account, service names, etc.