Creating and configuring an Azure VM - brian-anderson01/Capstone GitHub Wiki

Creating a VM in Azure

Initial Setup

  • From the Azure portal type virtual machines into the search and select it
  • Once there, choose create in the top left and then choose virtual machine
  • Choose your existing subscription and resource group (or create a new resource group)
  • Name the VM and choose your region and availability
  • Now choose your image from the dropdown or click see all images
  • Once you have picked your image, now you need to choose the specs for the system
  • Click the dropdown for size and choose from the list or see all sizes
  • When clicking see all, you can sort by the number of vCPUs and amount of RAM. This will also show cost per hour or month depending on which you have selected. In general, the B series are the cheaper options.
  • Once you find a size that fits the specs you would like, select it
  • Now you must specify the authentication for SSHing into the admin account, either choose public key or password
  • If you choose password, input the username you would like to log in as and the password
  • If you choose ssh key, input the admin username you want to use, the either generate a new key and name it or choose an existing one
  • Finally, choose how you are going to connect to the VM via SSH or RDP, it will ask if you want to allow the selected inbound ports (22 or 3389) to the public IP address of your VM. If you are connecting from a public computer with no VM then choose this option or you won't be able to connect. If you are using a VPN choose none
  • Click next:disks

Configuring the disks

  • If you would like to add another disk or expand the amount of storage you get you can do so here, click the OS disk size and expand it or leave it as the default if you don't need more room
  • Choose the type you want, Premium SSD is default or you can choose Standard SSD or HDD, depending on your use case
  • Leave the encryption default unless you are setting it up specifically
  • If you want another disk click create and attach a new disk, name it and choose the source type. If it is going to be used for storage choose blob and if it's going to be for snapshots choose snapshot
  • Once your storage is all set, click Next:Networking a the bottom

Configuring Networking

  • Starting off, choose the vnet you want the VM to be on or create a new one
  • Choose a subnet in that network to put the VM in
  • For public IP, if want public access, choose new. If you do not want the VM to be publically available choose none. Note: If you choose none and do not have a VPN, you will not be able to connect to the VM via SSH or RDP
  • For NIC security group choose your level or choose none, this can be changed later if preferred
  • Leave the rest default and click next

Management configuration

  • If you would like to have boot diagnostics choose enable with whatever storage account you would like or disable it. This could be useful for troubleshooting depending on your use
  • If you would like to login with Azure AD accounts check the "Login with Azure AD" box
  • If you want backups of the VM check that box and configure the options that appear then click next
  • For advanced leave everything default unless you are specifically using some functionality there, then click next
  • Add any tags you would like then click next again
  • Finally, Azure will check the configuration for any issues and the price of the VM will be shown. If everything looks good click create.
  • The VM will now begin deploying and will be accessible via SSH or RDP once it is done.