Deploying a NixOS VM on Microsoft Azure

Today we are excited to announce the ability to provision a NixOS VM on Azure. NixOS is a Linux distribution that uses a declarative approach to configure your system. You can read more about NixOS on .

We will use the Azure CLI to provision a NixOS VM.

You can install the latest Azure CLI here

To get started follow the steps outlined in this github repository.

The first step is to create a storage account in Azure and upload the NixOS vhd which can be downloaded here. The VHD is about 2GB in size and if you are on a slow network as I was when I was uploading it at home, it could take up to 10 mins for the upload to complete.

Screen Shot 2016-07-21 at 10.38.23 PM The URI of the uploaded vhd is of the format https://<storage -account-name><storage-container-name>/<vhd-file-name>.vhd which on my case is

Once the upload is complete, you can use the $azure vm create command to provision a VM.

Screen Shot 2016-07-21 at 10.39.21 PMOnce the VM is created, you can view FQDN of the created VM by using the $azure vm show command as shown below.

Screen Shot 2016-07-22 at 8.55.18 PM

You can the SSH into the machine using the command $ ssh username@FQDN as shown below. Once you are logged in, you can view the status of the agent by typing in $ status waagent as shown below.

Screen Shot 2016-07-22 at 8.55.43 PM

This is our first step towards enabling NixOS on Azure and we hope that you will find it useful. Given that this is still in beta, please file any issues here