This article was written using chatGPT.
To create an Azure Linux virtual machine (VM), you can follow these steps:
- Log in to the Azure portal at https://portal.azure.com/.
- Click on "Virtual machines" in the left-hand menu.
- Click on the "Create" button to create a new VM.
- Select Azure virtual machine.
- In the "Basics" tab, fill out the following information:
- Subscription: Select the subscription you want to use.
- Resource group: Select an existing resource group or create a new one.
- Virtual machine name: Enter a name for the virtual machine.
- Region: Select the region where you want to deploy the virtual machine. Make sure this region also has the resources this VM will need. See?Resource Group, Step 7 for more details.
- Availability options: Select the availability option that best suits your needs. You can choose from options such as availability zones and availability sets. For this demo, no infrastructure redundancy required.
- Image: Select the image that you want to use. I am using a Linux OS for this demo.
- Size: Select the size of the VM that you want to create.
- For "Authentication type", select Password.
- Enter the username and password that you want to use to log in to the VM.
- For "Inbound port rules", select NONE. We will use a previously created Network Security Group to allow traffic discussed later.
- Under "Disks", select the disk type that you want to use for the virtual machine. You can choose between a standard hard disk drive (HDD) or a solid-state drive (SSD). For demo, choose standard SSD. Since we are not doing Zone Availability, we can select the "locally-redundant storage" version. Leave the rest at default.
- Under "Networking", configure the following settings:
- Virtual network: Select the virtual network that the virtual machine should be connected to.
- Subnet: Select the subnet that the virtual machine should use.
- Public IP address: Select "Create new" to create a new public IP address for the virtual machine or select "None" if you do not need a public IP address. For this demo, I am choosing NONE so I can demonstrate how to attach a public IP address to a vNIC.
- Network security group (NSG): Select an existing network security group (by choosing Advanced) or create a new one (by choosing None) to control the inbound and outbound traffic for the virtual machine.
- Under "Management", configure the following settings:
- Leave Microsoft Defender for Cloud, Identity and Azure AD in default for this demo (depending on subscription plan, Microsoft Defender for Cloud may or may not be cover). These topics are beyond the scope of this article.
- Auto-shutdown: Select "On" if you want to enable auto-shutdown for the virtual machine. I am de-selecting this feature as I may be working well pass the auto-shutdown time window.
- Under "Monitoring", leave everything at default.
- Under "Advanced", leave everything at default.
- Review your settings and click on the "Review + create" button.
- Review your settings and click on the "Create" button to create the new virtual machine.
Once the virtual machine is created, you can attach a public IP address by stopping the VM and going to the vNIC created in this process.
Access your new Linux VM by going to the Help section and console in.
- Start your VM.
- Go to Console.
- Log in once the console connects.