Creating Virtual Machines (VMs) in Microsoft Azure - AZ-800
What is Covered in Episode 11 of the Microsoft AZ-800 Course?
Introduction to Virtual Machines
- The episode begins with a welcome message and an overview of the previous episode, which discussed cloud concepts.
- Focus shifts to creating virtual machines (VMs) on the Microsoft Azure portal, emphasizing that VMs are examples of Infrastructure as a Service (IaaS).
- Viewers are encouraged to like and subscribe for updates on new content related to Azure.
Navigating the Azure Portal
- The host introduces the Azure portal, assuring viewers that they will cover its features over time.
- Explanation of the navigation menu's evolution from being called "hub" to its current name; it can disappear for convenience on smaller screens.
Accessing Services in Azure
- The navigation menu provides access to various services; if something isn't visible, users can find it under "All Services."
- Commonly used services listed include virtual machines, virtual networks, SQL databases, and Active Directory.
Creating a Virtual Machine
- To create a VM, users must click "Create," leading them to a template for VM creation.
- Users select their subscription type; currently using a trial version with credits available.
Understanding Resource Groups
- First-time users may need to create a resource group; this helps organize components within Azure.
- Resource groups allow users to structure their resources similarly to SharePoint or Active Directory groups.
- Examples include grouping by function (e.g., VMs vs. websites), location (e.g., New York), or project type.
Benefits of Resource Groups
- Organizing resources into groups aids in cost management and tracking expenses associated with specific branches or projects.
Naming Your Virtual Machine
Naming Virtual Machines in Azure
Importance of Naming Conventions
- When naming a virtual machine within an existing company, it's crucial to adhere to any established naming conventions to avoid conflicts.
- If unsure about the naming standards, consult colleagues familiar with the company's guidelines.
Regional Limitations and Data Centers
- Users on trial accounts or promotional codes are often limited to specific regions, such as East US.
- Azure components may be referred to as regions, locations, or data centers; understanding these terms is essential for proper configuration.
Latency and Functionality Considerations
- Selecting a data center close to your location minimizes latency; distance can significantly affect performance.
- Evaluate whether the chosen data center offers the necessary functionality for your needs; not all Microsoft data centers provide identical services.
Cost Variability Across Data Centers
- Each Azure data center has its own pricing structure; it’s important to compare costs alongside latency and functionality before making a selection.
High Availability Options in Azure
Understanding Availability Features
- Azure provides options like availability zones and sets that enhance uptime beyond the default 99.9% guarantee.
- Implementing high availability strategies ensures service continuity during maintenance or outages by distributing resources across multiple server racks.
Operating Systems Available on Azure
Variety of Operating Systems
- Users can install various operating systems on their virtual machines, including non-Windows options like Ubuntu and Red Hat.
Searching for Specific OS Versions
- If desired operating systems (e.g., Windows 10 or 11) are not visible in the initial list, users can search directly using the search bar for more options.
Exploring Extensive Templates
- The dropdown menu reveals numerous operating system templates available for selection, indicating a wide range of choices beyond what is initially displayed.
Control Levels in Cloud Services
Public vs. Private Cloud Control
- In public cloud environments like Azure, users relinquish some control compared to private clouds but retain significant flexibility with Infrastructure as a Service (IaaS).
Choosing Your Operating System
Cloud Virtual Machine Configuration
Choosing Hardware Specifications
- Users can select hardware specifications for their virtual machines, including categories, virtual CPUs, RAM, and hard drive space.
- The cost of the virtual machine is directly related to the resources selected; more resources lead to higher costs.
- Users only pay for what they use; if a high-spec machine is not needed, it can be downgraded or turned off to save costs.
Setting Up User Accounts
- During setup, users must create a main admin account similar to installing Windows on physical machines.
- Password complexity requirements have changed from 8 characters to a minimum of 12 characters with uppercase, lowercase letters, numbers, and symbols since 2018.
Firewall Configuration
- Users can adjust firewall settings during setup; previously all ports were closed by default until manually opened.
- Microsoft now automatically opens port 3389 for Remote Desktop Protocol (RDP), simplifying access to the virtual machine.
Additional Disk Management
- Users can add additional hard drives during setup or mount existing ones from on-premises systems; VHD format is required.
- Dynamically expanding hard drives must be converted to fixed size before uploading them to the cloud environment.
Networking and Final Review
- A default virtual network is created unless specified otherwise; users can link their VM to various networks as needed.
Virtual Machine Setup and Configuration
Reviewing Configurations
- The process of reviewing configurations is initiated, which may require multiple attempts to receive a green tick indicating success.
- Cost analysis shows that running virtual machines in the cloud can be significantly cheaper than maintaining physical servers over time.
Understanding Billing
- Virtual machine costs are typically billed per minute, although they display hourly rates for user convenience.
- The installation of the operating system (Windows 10) on the virtual machine is not instantaneous; it requires time similar to physical installations.
Installation Speed Comparison
- Installing an OS on a cloud-based virtual machine takes approximately 5 to 20 minutes, with current averages around 15 minutes.
- Recent improvements have reduced installation times for cloud VMs to about 2 to 5 minutes, showcasing advancements in technology.
Accessing Resources
- Users can access their newly created resources through various methods, including notifications and direct navigation within the portal.
- After deployment, users may need to refresh their view to see the status change from "creating" to "running."
Navigating the Azure Portal
- The interface features a blade system where options specific to each component (like a VM) are organized into tabs for easy navigation.
- Changes made within this blade only affect the selected virtual machine rather than all machines in the account.
Scaling Virtual Machines
Cloud Computing: Scaling and Firewalls
Cloud Scalability Features
- In cloud environments, users can scale resources up or down easily, unlike on-premises setups where upgrades often lead to permanent changes.
- Each virtual machine (VM) in the cloud has its own firewall settings, similar to physical firewalls used on-premises.
Managing Firewall Settings
- Users can view allowed ports for their VMs and add extra ports as needed; caution is advised when using broad permissions like "allow all."
Virtual Machine Management
- The interface for managing VMs includes familiar controls such as start, stop, and restart buttons that resemble those found in Hyper-V.
- When shutting down a VM from the outside, users have the option to retain their public IP address, which is crucial for maintaining network configurations.
Public IP Address Considerations
- Retaining a public IP incurs a minimal fee; however, not keeping it incurs no cost. This decision impacts server accessibility.
- Changing a public IP can disrupt services if it's configured in firewalls or other security measures.
Connecting to Your Virtual Machine
Remote Desktop Connection Process
- Users can connect to their VMs via Remote Desktop Protocol (RDP), downloading an RDP file through the Azure portal.
- Upon connection initiation, users must enter pre-configured credentials (username and password).
Initial Setup of Virtual Machines
- The first-time startup of a VM may be slow as it goes through initial configuration prompts typical of new installations.
Understanding Azure Portal Integration
Importance of Azure Familiarity
- Modern server courses encompass more than just traditional Windows Server topics; they include significant aspects of the Azure portal.
Subscription Recommendations
Understanding Microsoft Azure Trials and Subscriptions
Overview of Trial Periods
- Users are offered a 50-day trial with $200 credit, which may convert to local currency. The trial ends when either the time or the credit runs out.
Creating a Microsoft Live ID
- To initiate a trial, users need a Microsoft Live ID, which can be created at www.live.com. It's advisable to create a new ID for testing purposes.
Payment Methods for Trials
- A credit card is typically required; however, debit cards are now accepted as well. This is primarily to verify user identity without incurring charges.
- Users might see a temporary charge of one dollar on their statement, but it is usually reversed immediately.
Account Suspension After Trial Expiration
- If the trial expires, Microsoft will not automatically bill users. Instead, accounts are suspended for seven days during which users must decide whether to continue or let it lapse.
- If users choose not to continue within this period, their data will be deleted after seven days.
Importance of Practical Experience
- Engaging with practical exercises in Azure is crucial for understanding and passing exams. Hands-on experience reinforces knowledge significantly more than passive learning.
Supporting Content Creators
- Viewers are encouraged to like and subscribe if they find the content helpful. There’s an option to support through Patreon or PayPal, with benefits including name recognition in videos.
Ethical Considerations in Exam Preparation
- The speaker emphasizes using only authorized study materials that align with Microsoft's objectives and warns against using unauthorized exam questions.
Acknowledgments