Getting Started with Microsoft Azure: A Complete Guide from Subscription to Configuration

Introduction

Microsoft Azure is one of the world’s leading cloud computing platforms, offering a vast array of services for businesses and developers. Whether you’re a beginner looking to explore cloud computing or an experienced professional setting up enterprise infrastructure, this comprehensive guide will walk you through purchasing an Azure subscription, initial setup, and key configurations with hands-on labs.

Understanding Azure Subscriptions

Before diving into the purchase process, it’s important to understand what an Azure subscription is and the different types available.

An Azure subscription is a logical container that holds your Azure resources and services. It serves as a billing boundary and access control mechanism. Think of it as your account that determines what Azure services you can use, how much you can spend, and who has access to your resources.

Types of Azure Subscriptions

Free Account The Azure Free Account is perfect for beginners and includes $200 in credits for the first 30 days, plus 12 months of popular free services. This option allows you to explore Azure without any upfront cost and includes access to over 25 services that are always free.

Pay-As-You-Go This subscription model charges you only for the resources you use, with no upfront commitments. It’s ideal for individuals, small businesses, or projects with variable workloads. You pay monthly based on your actual usage.

Enterprise Agreement (EA) Designed for large organizations, the Enterprise Agreement provides volume discounts and centralized billing. It typically requires a minimum commitment and offers additional enterprise features like reserved instances and hybrid benefits.

Cloud Solution Provider (CSP) This model allows you to purchase Azure services through a Microsoft partner. It’s often used by organizations that want additional support and management services from their partner.

How to Purchase an Azure Subscription

Step 1: Create a Microsoft Account

If you don’t already have a Microsoft account, you’ll need to create one. Visit the Microsoft account creation page and provide your email address, create a password, and verify your identity.

Step 2: Navigate to the Azure Portal

Go to the Azure portal at portal.azure.com and click on “Start free” or “Pay as you go” depending on your preference.

Step 3: Complete the Registration Process

You’ll need to provide several pieces of information during registration including your personal or business details, phone number for verification, and a valid credit card for identity verification (even for free accounts).

For free accounts, Microsoft requires a credit card for verification purposes, but you won’t be charged unless you upgrade to a paid subscription or exceed your free tier limits.

Step 4: Choose Your Subscription Type

Select the subscription type that best fits your needs. Most users start with either the Free Account to explore Azure or the Pay-As-You-Go model for production workloads.

Step 5: Accept Terms and Complete Setup

Review and accept the Azure subscription agreement and privacy statement, then complete your account setup.

Initial Azure Portal Configuration

Once your subscription is active, you’ll want to configure several key settings to optimize your Azure experience.

Setting Up Billing Alerts

One of the first things you should do is set up billing alerts to monitor your spending and avoid unexpected charges.

Navigate to the Cost Management + Billing section in the Azure portal. Here you can create budgets and set up alerts that notify you when your spending approaches certain thresholds. Set up alerts at different levels, such as 50%, 80%, and 90% of your budget to give yourself time to react.

Configuring Resource Groups

Resource groups are containers that hold related Azure resources. They help you organize and manage your resources effectively. Create resource groups based on your project structure, environment (development, testing, production), or department.

Setting Up Azure Active Directory

Azure Active Directory (Azure AD) is Microsoft’s cloud-based identity and access management service. Even if you’re working alone, it’s worth understanding how Azure AD works, as it’s fundamental to Azure security.

Configure basic settings like your organization’s domain name, set up multi-factor authentication for enhanced security, and understand the difference between users, groups, and service principals.

Hands-On Lab 1: Creating Your First Virtual Machine

Let’s start with a practical lab that demonstrates core Azure concepts while creating a virtual machine.

Prerequisites

  • Active Azure subscription
  • Access to the Azure portal

Lab Steps

Step 1: Create a Resource Group In the Azure portal, search for “Resource groups” and click “Create.” Name your resource group “rg-lab1-vm” and select a region close to your location. This resource group will contain all resources related to this lab.

Step 2: Create a Virtual Network Before creating a VM, you need a virtual network. Search for “Virtual networks” and click “Create.” Name it “vnet-lab1” and place it in your resource group. Use the default address space (10.0.0.0/16) and create a default subnet (10.0.0.0/24).

Step 3: Create the Virtual Machine Search for “Virtual machines” and click “Create,” then “Azure virtual machine.” Configure the following settings:

  • Subscription: Your active subscription
  • Resource group: rg-lab1-vm
  • Virtual machine name: vm-lab1-web
  • Region: Same as your resource group
  • Image: Ubuntu Server 20.04 LTS
  • Size: Standard_B1s (1 vcpu, 1 GB memory)
  • Authentication: SSH public key
  • Username: azureuser

Generate a new key pair when prompted and download the private key file.

Step 4: Configure Networking Ensure your VM is placed in the virtual network you created earlier. Create a new public IP address to access your VM from the internet.

Step 5: Review and Create Review all settings and click “Create.” The deployment typically takes 3-5 minutes.

Lab Verification

Once deployed, you can connect to your VM using SSH. If you’re on Windows, you can use Windows Subsystem for Linux, PowerShell, or PuTTY. On macOS or Linux, use the terminal with the SSH command provided in the Azure portal.

This lab demonstrates several key Azure concepts including resource organization, networking, and compute services.

Hands-On Lab 2: Setting Up Azure Storage

Storage is fundamental to most cloud applications. In this lab, you’ll create and configure an Azure Storage Account.

Lab Steps

Step 1: Create a Storage Account Search for “Storage accounts” in the Azure portal and click “Create.” Configure these settings:

  • Resource group: Create a new one called “rg-lab2-storage”
  • Storage account name: Choose a globally unique name (e.g., “storagelab2yourinitials”)
  • Region: Same as your previous labs
  • Performance: Standard
  • Redundancy: Locally-redundant storage (LRS)

Step 2: Explore Storage Services Once created, explore the different storage services available including Blob containers for unstructured data, File shares for SMB file shares, Queues for messaging, and Tables for NoSQL data.

Step 3: Create a Blob Container In your storage account, navigate to “Containers” and create a new container called “documents” with public access level set to “Private.”

Step 4: Upload and Manage Files Upload a test file to your container and explore the properties, metadata, and access controls available.

Understanding Storage Tiers

Azure Storage offers different access tiers to optimize costs based on how frequently you access your data. Hot tier is for frequently accessed data, Cool tier for infrequently accessed data (stored for at least 30 days), and Archive tier for rarely accessed data (stored for at least 180 days).

Hands-On Lab 3: Implementing Basic Security

Security should be a primary concern in any cloud deployment. This lab covers fundamental security configurations.

Lab Steps

Step 1: Configure Network Security Groups Network Security Groups (NSGs) act as virtual firewalls for your Azure resources. Navigate to your VM from Lab 1 and examine its associated NSG. Notice the default rules that allow SSH (port 22) and deny all other inbound traffic.

Create a custom rule to allow HTTP traffic (port 80) for a web server you’ll install later.

Step 2: Enable Azure Defender Navigate to “Security Center” in the Azure portal and explore the security recommendations. Enable Azure Defender for your subscription to get advanced threat protection (note this may incur additional costs).

Step 3: Implement Role-Based Access Control (RBAC) Create a custom role that has read-only access to your resource groups. Navigate to “Access control (IAM)” on one of your resource groups and explore the built-in roles available.

Step 4: Configure Key Vault Create an Azure Key Vault to securely store secrets, keys, and certificates. This service is essential for managing sensitive information in your applications.

Advanced Configuration Topics

Monitoring and Logging

Azure Monitor is the comprehensive monitoring solution for Azure resources. It collects telemetry data from your resources and provides insights into their performance and availability.

Set up Log Analytics workspaces to centralize your log data, create custom dashboards to visualize important metrics, and configure alerts for critical events. Application Insights, a feature of Azure Monitor, provides deep application performance monitoring for your web applications.

Cost Management

Effective cost management is crucial for any Azure deployment. Use Azure Cost Management tools to track spending, identify cost optimization opportunities, and set up budgets and alerts.

Consider implementing resource tagging strategies to better track costs by project, department, or environment. Reserved instances can provide significant cost savings for predictable workloads, while Azure Hybrid Benefit can reduce costs if you have existing Windows Server or SQL Server licenses.

Backup and Disaster Recovery

Azure Backup provides a simple, secure, and cost-effective solution to back up your data. Configure backup policies for your virtual machines, databases, and file shares.

For disaster recovery, Azure Site Recovery can replicate workloads running on physical and virtual machines from a primary site to a secondary location.

Best Practices for Azure Management

Resource Organization

Develop a consistent naming convention for your resources that includes information about the environment, resource type, and purpose. Use resource groups to logically organize related resources and apply consistent tags across your resources for better management and cost tracking.

Security Best Practices

Implement the principle of least privilege by granting users and applications only the minimum permissions necessary. Enable multi-factor authentication for all user accounts and regularly review and audit access permissions.

Use Azure Policy to enforce organizational standards and assess compliance at scale. This service allows you to create, assign, and manage policies that enforce rules over your resources.

Performance Optimization

Right-size your virtual machines based on actual usage patterns rather than peak requirements. Use Azure Advisor recommendations to identify optimization opportunities across performance, security, reliability, and cost.

Implement auto-scaling for applications that experience variable demand to ensure optimal performance while controlling costs.

Troubleshooting Common Issues

Connectivity Problems

If you can’t connect to your virtual machines, check that the Network Security Group rules allow the required ports, verify that the VM is running and has been properly provisioned, and ensure you’re using the correct authentication method and credentials.

Billing and Cost Issues

Unexpected charges often result from resources left running when not needed, choosing inappropriately sized resources, or data transfer costs. Regularly review your billing dashboard and set up cost alerts to avoid surprises.

Permission and Access Issues

Azure’s role-based access control system can be complex. If users can’t access resources, verify that they have the appropriate role assignments at the correct scope (subscription, resource group, or resource level).

Next Steps and Further Learning

This guide provides a foundation for working with Azure, but there’s much more to explore. Consider pursuing Azure certifications such as Azure Fundamentals (AZ-900) or Azure Administrator Associate (AZ-104) to deepen your knowledge.

Explore specific Azure services relevant to your use cases, such as Azure App Service for web applications, Azure SQL Database for managed databases, or Azure Kubernetes Service for container orchestration.

The Azure documentation and Microsoft Learn platform provide extensive free training resources to continue your Azure journey.

Conclusion

Microsoft Azure offers a powerful and flexible cloud computing platform that can scale with your needs. By following this guide, you’ve learned how to purchase a subscription, navigate the Azure portal, and implement basic configurations through hands-on labs.

Remember that cloud computing is an ongoing learning process. Start small, experiment with different services, and gradually build more complex solutions as your confidence and expertise grow. The key to success with Azure is understanding its core concepts and then applying them consistently across your projects.

Whether you’re building simple websites or complex enterprise applications, Azure provides the tools and services you need to succeed in the cloud.

Share: