Getting started with Azure and VMs

Signing up

final screen in the sign up

First VM

Basics

create vm, basics
suggested images
images filtered by OS: Ubuntu
marketplace for images, filtered by ubunu os and free price

Disks

Networking

Management

Advanced

Tags

Review + create

$ ssh-keygen -b 4096 -f ~/.ssh/azvm_rsa -C "this is a comment"
$ cat ~/.ssh/azvm_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDGIkn6R4DzIreHQhLRoggZAgjE9thz9r9KNc8OxG/gs3qsL9TX57bRoqorhjDsTQ7C/WyykGswHZGUuF9eVCIkSsUvkXaOyebgoFGQRp1NE+jLO6QjjCmYznVPZPkL4cL1rxLfVxNyy8y/qfDKjOWA3OUdOdM/zsvckb3SsRbj/wQiZcUbj/sQ+NrtYKC9Tx3GpCIF1L5nDzkpZH43ZDSj+anVEWSTF3Pwg5UuxAz49nCOB6QU9Lxr9z2Lmmql2wdbOcbq9rbDWiyuvTvucaEMEWJyqaJ611qobe63yTKfZqUdscppZgRtegq8a1l2hhNVTQ1Ilhmn/qYyIQldGBkcCpQmkmckGAOAvjDuYD9rZNSh2jAdFV29BU1dtECgoquqQKNQOXgp/hJDpsHbJlAqdfLNdA6Asen+VI6dMQNmV9GIj4O3E5nQHWHM4lxGNpX1kacU2rTYt3YFsBU5ZJXPx5TcK0QNoJ0en4OsdyvFwXkOeZzh7nmrInAgHt6cSyUrFcTv6K99ZpWi2jc9cRLVtVEDcnCUha6p94a+gKGkSbVW0u48ctPXyxtBh1NQPnPEoqpiYU90k/pDKVqlNzL9dx2FIHS/yvyubZ1pQvDS+aP8Wc5nDzF5UqOMJJ6xVqCHd/3iv/6prkE8CJ2wQujWowQ3DbB2K+GWw5X8UPG00Q== this is a comment
"adminPublicKey": {
"value": null
}
"adminPublicKey": {
"type": "SecureString"
}
  • network interface
  • public IP address
  • virtual network
  • NSG

Utilising this node

ssh azureuser@13.87.78.42 -i ~/.ssh/azvm_rsa

Performance test

real	0m54.301s
user 0m15.339s
sys 0m4.033s
real	0m39.659s
user 0m15.308s
sys 0m4.317s
Need to get 111 MB of archives.
After this operation, 487 MB of additional disk space will be used.

kubeadm init

kubeadm init
  • need 2 CPU cores
  • need 1700MB RAM
...
[etcd] Creating static Pod manifest for local etcd in "/etc/kubernetes/manifests"
[wait-control-plane] Waiting for the kubelet to boot up the control plane as static Pods from directory "/etc/kubernetes/manifests". This can take up to 4m0s
[kubelet-check] Initial timeout of 40s passed.
Unfortunately, an error has occurred:
timed out waiting for the condition
This error is likely caused by:
- The kubelet is not running
- The kubelet is unhealthy due to a misconfiguration of the node in some way (required cgroups disabled)
If you are on a systemd-powered system, you can try to troubleshoot the error with the following commands:
- 'systemctl status kubelet'
- 'journalctl -xeu kubelet'
...

Clean up

Reflections

kubeadm init --ignore-preflight-errors=NumCPU

Cost Analysis

Accumulated Costs

--

--

--

Finding a balance between quality and agility.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

What’s GraphQL ? — Answers to common questions 💬 .️

How to delete multiple local Git branches from Sourcetree?

Wreath | TryHackMe | Task by Task

Machine Learning with Docker and Kubernetes: Install a Cluster from Scratch

Argo goes to CNCF Incubator…

CS373 SPRING 2022: John Mackie

Introduction Into Elm (Pt.3)

A Story about FFmpeg on Android. Part II: Integration.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Leon Brown

Leon Brown

Finding a balance between quality and agility.

More from Medium

How to Azure — Introduction-1

Deploy Custom Domains And SSL using App Service Managed Certificate through ARM Template

Easy way to use Azure Application Gateway for an Intranet Application

Deploy a VM in Azure