So it is quite interesting. Unlike my previous posts if you don't want to setup your machine for azure by download either python or powershell sdk or any cli locally then there is a quicker and better way.
Here is exactly what it takes to deploy a VM on azure.
4. Now let us deploy a llinux vm from an ubuntu image
image is UbuntuLTS
VM name is dummyUbuntu
group name is linuxVms
You are done! :)
Here is exactly what it takes to deploy a VM on azure.
- Create an azure account if you haven't already with pay as you go model https://signup.azure.com/ you pay for what you use. so no worried. Use it like a lab, where you delete stuff once you are done.
- Launch the online azure cli. You can either use powershell or bash. Whichever you love. https://shell.azure.com/?prompt=True
- So first I want to create a resource group.
az group create -n linuxVms -l westusThis btw is azure cli, not azure powershell syntax. Here I am creating a group callled linuxVms and the location of that is at the west us datacenter of azure.
4. Now let us deploy a llinux vm from an ubuntu image
az vm create -g linuxVms -n dummyUbuntu -i UbuntuLTS --generate-ssh-keysSo we are creating a VM and the
image is UbuntuLTS
VM name is dummyUbuntu
group name is linuxVms
You are done! :)
No comments:
Post a Comment