I lost my job in February. The community support has been overwhelmingly positive. Very early on I had a number of colleagues reach out to me confident that my experience will land me a job fast. It did, thankfully.
In the meantime, I had applied to a remote position for which I was super-qualified but I didn't have Azure experience, or really any Microsoft Cloud experience beyond around 2012.
So today I launched a free Azure account to kick the tires. This is my effort to pay it forward to the community or otherwise showcase my competency to a prospective employer.
Ultimately the goal was to create a Kali box from an Azure Debian Image, which I achieved.
Microsoft will prompt you to select a login for Azure portal. If you don't have a Microsoft account you'll be prompted to create one. You may want to create a Github account if you don't have one.
Navigate to https://portal.azure.com to login.
You'll be prompted to provide profile information for your Azure account.
You need to provide a credit card for account verification. You have not chosen to be billed and can still take advantage of a free account trial period.
Azure will present you with training modules to get started.
You can create resources using the portal or cli.
You will need to create a resource group first
az group create --name PLW-AZURE2 --location westus3
You can do this also in the portal.
When creating a VM you first need to create the ssh-key which is used to access the host as azureuser.
ssh-keygen -t rsa -b 4096 -C "Comment"
The home page will present options to create resources.
You can select an option top create a resource such as a Virtual Machine.
Select your free Azure Subscription, Region, Availability Zone, instance size and OS Image.
I selected Ubuntu on x64 in a physically separated region within the US West region, where I am. I started with a standard D2s size, which is about 70 dollars / month if I keep it running, but I've since switched this to a DS1_v2 with 1vCPU and 3.5 GB of RAM.
B1ls with 1 vcpu and only a half gig of memory is 4 dollars / month.
However, this size does not support Spot Discount which saves cost by allowing Microsoft to evict your host when costs or capacity limits are exceeded.
Click "See all sizes" and enable a filter for monthly cost to compare price.
In any case I entered a maximum price of 5 dollars. I read of Troy Hunt's recent nightmares with cost control for Cloud Flare and I'd rather not add a huge cloud bill to my unemployment situation.
The alternative is to build these with the CLI. First you need to install it. It does not install happily on Kali linux, so I built a container image for this.
docker build -f tools/Dockerfile ./tools -t azure-cli
docker run --rm -it azure-cli
docker$ az configure
docker$ az login
docker$ az vm list-sizes westus3
Let's create the VM as Debian so I can convert it into a Kali Server
docker$
az vm create --location westus3 \
--name plw-cli-vm \
--resource-group PLW-AZURE \
--image Debian11 --size Standard_B1ls \
--ssh-key-values /root/id_rsa.pub
ssh -i ~/.ssh/id_rsa [email protected]
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
Here are some quick and handy azure cli commands. For more detail see the Azure CLI Readme
az vm show --resource-group PLW-AZURE --name plw-vm --show-details
az vm stop --resource-group PLW-AZURE --name plw-vm
az vm deallocate --resource-group PLW-AZURE --name plw-vm
az ssh vm --resource-group PLW-AZURE --name plw-vm