In the previous part of this tutorial I have created a VHD with AlienVault OSSIM. The next step is deployment to the Cloud. I am going to use Azure Classic model because it allows to create your own VM images quite easily.
- The first step is to create a storage account. Go to manage.windowsazure.com and click “+ New” button on the bottom of the page.
- I am going to upload the file via Azure CLI [Download] and Azure PowerShell [Download], however there is also an easier way (see point 3).
Import-AzurePublishSettingsFile –PublishSettingsFile "C:\Users\Usr\Downloads\Azure-sub-6-18-2016-credentials.publishsettings"
Set-AzureStorageBlobContent -Container "container-name" -File "C:\Users\Usr\VirtualBox VMs\ossim-template\ossim-template.vhd" -Blob "ossim-template.vhd" -BlobType Page
- Honestly, using a cloud storage explorer program might save a lot of time. My favorite is CloudXplorer. After installing CloudXplorer, go to manage.windowsazure.com -> Storage. Select your storage account and click MANAGE ACCESS KEYS button. Copy the access key and connect explorer to your account (Accounts -> New -> Azure Blobs Account).
Create new container and upload your VHD as a page blob.
- Wait eternity and a couple minutes to upload 8 GB to the cloud storage…
- At this point, even if you have uploaded VHD via PowerShell, you still need CloudXplorer. Our VHD is only 8 GB – we need a bit more for our root partition. Right click on your VHD and select “Expand virtual disk…”. Recommended size is at least 500-1000 GB, however for lab environment 50 GB may be more than enough.
- Before we start VM deployment, we need a virtual network to place it. Let’s create one.
- At manage.windowsazure.com go to “Virtual machines”. Change from “Instances” to “Images”. Click “+ Create” button.
- At manage.windowsazure.com click “+ New” button. We are going to create new Virtual Machine from gallery.
- Finally, let’s create new instance!
For a small environment size D3 would be fine. It can be changed later! Welcome to cloud flexibility.
- After some time, our instance should be up & running. There are still some things to do – let’s continue in the next part of this tutorial.