Power BI September 4, 2021 · 7 min read

How I use Azure VMs for Power BI development

A practical look at the benefits and downsides of using Azure Virtual Machines for Power BI development -- from cost and flexibility to latency and performance trade-offs.

Gregor Brunner Gregor Brunner
How I use Azure VMs for Power BI development

This is not a technical blog about a feature or trick in Microsoft Power BI. Instead, I want to explain the benefits and downsides of using Azure VMs instead of regular hardware, particularly relevant for Power BI users.

What is an Azure Virtual Machine?

An Azure VM is a virtual computer that is highly flexible in its scaling (processing power, storage etc.) and at the same time offers everything a normal computer has to offer.

Key configurable elements when deploying an Azure VM include:

  • Operating system (Windows server or client)
  • Location (Azure data center, IP address)
  • Hardware specs (vCPUs, RAM, storage)

Benefits of Using a VM for Power BI

1) No Hardware Purchase Required

You can access the VM via Remote Desktop Connection from any device — Mac, Windows machine, or tablet.

2) Cost-Effective

I use a B4ms configuration (4 vCPUs and 16GB RAM) costing approximately 15-25 EUR monthly when in use. Storage adds roughly the same amount. Virtual network services add additional costs. Overall budget: 30-40 EUR monthly per VM. This compares favorably to purchasing a 1,500 EUR laptop. F3 Office licenses or higher eliminate Windows licensing costs.

3) Flexibility

One VM can serve each major client project. VMs can be positioned in the client’s region with static IPs, eliminating VPN requirements. This enables work from anywhere while maintaining consistent connectivity.

4) Security Benefits

All client data remains on the VM, preventing data mixing between projects. When the project ends, you can be 100% sure that you will destroy all the data your client gave you.

Three security layers protect access:

  • Login credentials with IP address and port
  • Restriction to specific IP addresses
  • Complete shutdown when not in use

5) Team Collaboration

Accessing coworkers’ or employees’ machines fosters cooperation.

6) Performance Relief

Processing occurs on the VM rather than local hardware, keeping laptops cool and enabling multitasking during data transformations and refreshes.

7) Remote Work Essential

This is an absolute must for remote teams.

8) Reliability

VMs remain operational despite power outages or disasters, ensuring work persistence.

9) Slow Internet Tolerance

VMs handle data transfers and updates efficiently, with software downloads remaining fast despite slow internet connections.

10) Easy Upgrades

You can scale to larger hardware configurations at any time.

11) Automatic Logins

Credentials for Teams, Power BI, and Outlook are stored on the VM and automatically populate upon startup.

12) Quick Setup

Deployment takes approximately 5 minutes.

Downsides of Using a VM

1) Hardware Dependency

You still need hardware and may spend more than before, particularly for solo practitioners.

2) Performance Limitations

Virtual CPUs operate at approximately half the speed of physical CPUs, so a 4-core vCPU effectively functions as a 2-core processor.

3) Virtual Memory Constraints

VM memory differs from physical memory. I encountered memory overflow errors with large Power BI datasets despite having 16GB RAM, requiring external transformations.

4) Internet Latency

Working on a VM introduces noticeable delay based on internet connection quality and geographic distance from the VM’s region.

5) Azure Learning Curve

Mastering Azure’s technical aspects — VM sizes, regions, storage configurations — presents initial challenges. Microsoft could improve user-friendliness here.

6) Financial Mistakes

You may waste money through improper VM deployment or forgetting to deallocate (rather than merely shutting down) machines. However, new users receive 200 EUR free credit during the first month.

7) Image Management Complexity

Creating updated VM images for new deployments proves difficult without including client data. I struggle with maintaining current software versions across fresh VM instances.

8) Offline Accessibility Issues

Complete internet outages prevent VM access.

9) Meeting Challenges

VM microphone access presents difficulties during video conferences, requiring workarounds using phones or laptops simultaneously.

10) Idle Project Costs

Storage costs continue even for inactive projects, representing approximately 20 EUR monthly without active benefit, potentially motivating timely project closure.

11) Unsuitability for Certain Use Cases

Some clients require proprietary hardware usage.

Final Assessment

After months of experience, I think it was a good decision and I am continuing to rely on this technology. I think everyone should give it a shot.

I particularly recommend Azure VMs for Mac users working within the Microsoft ecosystem where native Power BI versions don’t exist — VMs may outperform local virtualization software.